Technical Test | Synoriq | Campus Recruitment Drive

15 Questions | Total Attempts: 394

SettingsSettingsSettings
Technical Test | Synoriq | Campus Recruitment Drive - Quiz

.


Questions and Answers
  • 1. 
    Find the error: f(int a, int b) {     int a,     a=20;     return a; }  
    • A. 

      Missing parentheses in return statement

    • B. 

      The function should be defined as int f(int a, int b)

    • C. 

      Redeclaration of a

    • D. 

      Both B and C

    • E. 

      None of the above

  • 2. 
    #include int main() {     void fun(int, int[]);     int arr[]= {1, 2, 3, 4};     int i;     fun (4, arr);     for(i= 0; i<4; i++)     printf(“%d,”, arr[i]);     return 0; } void fun(int n, int arr[]) {    int *p=0;    int i=0;    while(i++
    • A. 

      2, 3, 4, 5

    • B. 

      1, 2, 3, 4,

    • C. 

      0, 1, 2, 3

    • D. 

      3, 2,1, 0

  • 3. 
    Int main() {    int color=2;    switch(color)    {       case 0 : printf(“black”);       case 1 : printf(“blue”);       case 2 : printf(“green”);       case 3 : printf(“aqua”);       case 4 : printf(“other”);    }    return 0; }
    • A. 

      Green

    • B. 

      Black blue green aqua other

    • C. 

      Green aqua other

    • D. 

      Other

    • E. 

      None of the above

  • 4. 
    #include int main() {    struct node    {       int a, b, c;    };    struct node num = {3, 5, 6};    struct node *ptr = & num;    printf("%d\n", *((int*)ptr + 1 + (3-2)));    return 0; }
    • A. 

      3

    • B. 

      5

    • C. 

      Compilation Error

    • D. 

      6

  • 5. 
    #include //Assuming int size is 4 bytes //64 bit compiler int main() {    printf("%d", sizeof(void *));    return 0; }  
    • A. 

      1

    • B. 

      Run Time Error

    • C. 

      Compilation Error

    • D. 

      8

  • 6. 
    Int a=0, b=0; for(i=0; i<N; i++) {     a= a+rand(); } for(j=0; j<M; j++) {      b= b+rand(); }
    • A. 

      O(N*M)time, O(1) space

    • B. 

      O(N+M)time, O(N+M) space

    • C. 

      O(N+M)time, O(1) space

    • D. 

      O(N*M)time, O(N+M) space

  • 7. 
    The number of comparisons done by sequential search is
    • A. 

      (N/2) +1

    • B. 

      (N+1)/ 2

    • C. 

      (N-1)/ 2

    • D. 

      (N-2)/ 2

  • 8. 
    In C programming, if we need to store word “INDIA” then syntax is as below:
    • A. 

      Char name[6]= { ‘I’, ‘N’, ‘D’, ‘I’, ‘A’};

    • B. 

      Char name[6]= { ‘I’, ‘N’, ‘D’, ‘I’, ‘A’, ‘\0’};

    • C. 

      Char name[6]= { “I”, “N”, “D”, “I”, “A”};

    • D. 

      Name= “INDIA”;

  • 9. 
    Which of the following is not included in a style sheet?
    • A. 

      Type face (font)

    • B. 

      CMYK colors

    • C. 

      RGB colors

    • D. 

      Logo design

    • E. 

      None of the above

  • 10. 
    What resolution do you keep while creating a website mockup in Adobe Photoshop?
    • A. 

      300 ppi

    • B. 

      150 ppi

    • C. 

      72 ppi

    • D. 

      100 ppi

  • 11. 
    What is the name of design language standards as described by Apple?
    • A. 

      Neon

    • B. 

      Human Interface Guidelines

    • C. 

      Fluent Design System

    • D. 

      Material Design

  • 12. 
    Which of the following is not a relational database?
    • A. 

      Sqlite

    • B. 

      Oracle

    • C. 

      MySQL

    • D. 

      MongoDB

    • E. 

      None of the above

  • 13. 
    In general which of these joins will return the maximum number of records?
    • A. 

      Right Join

    • B. 

      Inner Join

    • C. 

      Outer Join

    • D. 

      Left Join

  • 14. 
    Which command is used to give privileges to database users in RDBMS:
    • A. 

      GRANT

    • B. 

      GIVE

    • C. 

      PRIVILEGE

    • D. 

      None of these

  • 15. 
    Which is a CSS framework just like Bootstrap?
    • A. 

      Django

    • B. 

      Foundation

    • C. 

      Ruby

    • D. 

      Font Awesome

Back to Top Back to top