Technical Test | Synoriq | Campus Recruitment Drive

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Astateofchaos
A
Astateofchaos
Community Contributor
Quizzes Created: 1 | Total Attempts: 431
Questions: 15 | Attempts: 431

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

    Correct Answer
    D. Both B and C
    Explanation
    The correct answer is both B and C. The function should be defined as int f(int a, int b) because the return type is missing. Additionally, there is a redeclaration of the variable "a" within the function, which is not allowed.

    Rate this question:

  • 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

    Correct Answer
    B. 1, 2, 3, 4,
    Explanation
    The given code defines a function called "fun" that takes an integer "n" and an array "arr" as parameters. Inside the function, a pointer variable "p" is declared and initialized to 0. Then, a loop is executed where the variable "i" is incremented by 1 on each iteration until it is greater than "n". In each iteration, the value at the memory location pointed by "p" is assigned to the element at index "i" of the array "arr". Finally, in the main function, the "fun" function is called with arguments 4 and "arr". After the function call, a loop is executed to print the elements of the array "arr". Therefore, the output will be 1, 2, 3, 4.

    Rate this question:

  • 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

    Correct Answer
    C. Green aqua other
    Explanation
    The given code snippet uses a switch statement to check the value of the variable "color". Since the value of "color" is 2, it matches with the case 2 and the code block under it is executed. Therefore, the output will be "green". However, there are no break statements after each case, so the code will continue to execute the code blocks under the subsequent cases as well. As a result, the output will be "green aqua other".

    Rate this question:

  • 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

    Correct Answer
    D. 6
    Explanation
    The code defines a structure named "node" with three integer variables: a, b, and c. It then creates an instance of the structure named "num" with the values 3, 5, and 6 assigned to its variables.

    Next, a pointer named "ptr" is created and assigned the address of the "num" instance.

    The printf statement is used to print the value at a specific memory location. The expression *((int*)ptr + 1 + (3-2)) is used to calculate the memory location.

    Here, ptr is cast to a pointer to an int and then incremented by 1. The expression (3-2) evaluates to 1. So, the final expression becomes *((int*)ptr + 1 + 1), which points to the second int variable in the structure.

    Therefore, the value printed is 6.

    Rate this question:

  • 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

    Correct Answer
    D. 8
    Explanation
    The code snippet is using the sizeof() function to determine the size of a void pointer. In this case, the size of a void pointer is 8 bytes because the code is compiled using a 64-bit compiler. In a 64-bit system, the size of a pointer is typically 8 bytes.

    Rate this question:

  • 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

    Correct Answer
    C. O(N+M)time, O(1) space
    Explanation
    The given code snippet includes two for loops, one iterating N times and the other iterating M times. Inside each loop, the variable a is incremented by the random number generated by the rand() function. Similarly, the variable b is incremented by the random number generated in the second for loop.

    Since the two for loops are independent and not nested, the time complexity of the code is O(N+M). This is because the time taken to execute the first loop is proportional to N, and the time taken to execute the second loop is proportional to M.

    The space complexity of the code is O(1) because the variables a and b are the only additional space used, and they do not depend on the size of N or M.

    Rate this question:

  • 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

    Correct Answer
    B. (N+1)/ 2
    Explanation
    In a sequential search, the algorithm starts searching from the beginning of the list and compares each element with the target element until a match is found or the end of the list is reached. The formula (N+1)/2 represents the average number of comparisons required in a sequential search. This formula takes into account that, on average, the target element is likely to be found in the middle of the list. Therefore, the number of comparisons needed is half of the total number of elements (N), plus one.

    Rate this question:

  • 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”;

    Correct Answer
    B. Char name[6]= { ‘I’, ‘N’, ‘D’, ‘I’, ‘A’, ‘\0’};
    Explanation
    The correct answer is "char name[6]= { ‘I’, ‘N’, ‘D’, ‘I’, ‘A’, ‘\0’};". This is the correct syntax for storing the word "INDIA" in a character array in C programming. The array is declared as "name" with a size of 6, which is enough to store the characters of the word "INDIA" plus the null character '\0' at the end to indicate the end of the string. Each character is enclosed in single quotes and separated by commas.

    Rate this question:

  • 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

    Correct Answer
    D. Logo design
    Explanation
    A style sheet is used to define the visual appearance of a website or document. It includes specifications for elements such as font, colors, and layout. While type face (font), CMYK colors, and RGB colors are all commonly included in a style sheet to determine the visual aspects of text and graphics, logo design is not typically included in a style sheet. Logo design refers to the creation of a unique symbol or graphic that represents a brand or organization, and is usually separate from the overall visual design specifications of a website or document.

    Rate this question:

  • 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

    Correct Answer
    C. 72 ppi
    Explanation
    The resolution that is commonly used while creating a website mockup in Adobe Photoshop is 72 ppi. This is because web graphics are typically displayed on screens with a standard resolution of 72 pixels per inch. Using a higher resolution such as 300 ppi or 150 ppi would result in larger file sizes and slower loading times, without any noticeable improvement in image quality on screen. Therefore, it is recommended to use a resolution of 72 ppi for web design mockups.

    Rate this question:

  • 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

    Correct Answer
    B. Human Interface Guidelines
    Explanation
    The correct answer is "Human Interface Guidelines." This is the name of the design language standards as described by Apple. These guidelines provide developers with recommendations and best practices for creating user interfaces that are consistent and intuitive across Apple devices. They cover various aspects such as layout, typography, color, and interaction patterns to ensure a cohesive and user-friendly experience for Apple users.

    Rate this question:

  • 12. 

    Which of the following is not a relational database?

    • A.

      Sqlite

    • B.

      Oracle

    • C.

      MySQL

    • D.

      MongoDB

    • E.

      None of the above

    Correct Answer
    B. Oracle
    Explanation
    Oracle is not a relational database because it is actually a hybrid database that combines elements of both relational and object-oriented databases. While it does support relational database management system (RDBMS) functionality, it also includes features for managing complex data types and structures, making it more versatile than a traditional relational database.

    Rate this question:

  • 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

    Correct Answer
    C. Outer Join
    Explanation
    An outer join returns all the records from both tables, including the unmatched records. Therefore, it has the potential to return the maximum number of records compared to other join types.

    Rate this question:

  • 14. 

    Which command is used to give privileges to database users in RDBMS:

    • A.

      GRANT

    • B.

      GIVE

    • C.

      PRIVILEGE

    • D.

      None of these

    Correct Answer
    A. GRANT
    Explanation
    The command used to give privileges to database users in RDBMS is GRANT. This command allows the database administrator to grant specific privileges such as SELECT, INSERT, UPDATE, DELETE, etc., to users or user groups. It is an essential command for managing user access and permissions in a relational database management system.

    Rate this question:

  • 15. 

    Which is a CSS framework just like Bootstrap?

    • A.

      Django

    • B.

      Foundation

    • C.

      Ruby

    • D.

      Font Awesome

    Correct Answer
    B. Foundation
    Explanation
    Foundation is a CSS framework similar to Bootstrap. It provides a collection of pre-designed and pre-built components, such as grids, buttons, forms, and navigation, that can be easily customized and used to create responsive and visually appealing websites. Like Bootstrap, Foundation also offers a responsive grid system, responsive typography, and a variety of UI components that help streamline the web development process and ensure consistent design across different devices and screen sizes.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Nov 25, 2018
    Quiz Created by
    Astateofchaos
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.