Technical Test | Synoriq | Campus Recruitment Drive

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Astateofchaos
A
Astateofchaos
Community Contributor
Quizzes Created: 1 | Total Attempts: 434
| Attempts: 434 | Questions: 15
Please wait...
Question 1 / 15
0 %
0/100
Score 0/100
1. Which command is used to give privileges to database users in RDBMS:

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.

Submit
Please wait...
About This Quiz
Technical Test | Synoriq | Campus Recruitment Drive - Quiz

This technical test for Synoriq's campus recruitment includes C programming challenges, focusing on syntax errors, array manipulations, memory sizes, and algorithm efficiency.

2. The number of comparisons done by sequential search is

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.

Submit
3. #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++

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.

Submit
4. What is the name of design language standards as described by Apple?

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.

Submit
5. In general which of these joins will return the maximum number of records?

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.

Submit
6. Find the error: f(int a, int b) {     int a,     a=20;     return a; }  

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.

Submit
7. 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; }

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".

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

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.

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

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.

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

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.

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

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.

Submit
12. #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; }

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.

Submit
13. What resolution do you keep while creating a website mockup in Adobe Photoshop?

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.

Submit
14. Which is a CSS framework just like Bootstrap?

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.

Submit
15. Which of the following is not a relational database?

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.

Submit
View My Results

Quiz Review Timeline (Updated): Mar 21, 2023 +

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
Cancel
  • All
    All (15)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which command is used to give privileges to database users in RDBMS:
The number of comparisons done by sequential search is
#include ...
What is the name of design language standards as described by Apple?
In general which of these joins will return the maximum number of...
Find the error:...
Int main()...
In C programming, if we need to store word “INDIA” then syntax is...
Which of the following is not included in a style sheet?
Int a=0, b=0;...
#include...
#include...
What resolution do you keep while creating a website mockup in Adobe...
Which is a CSS framework just like Bootstrap?
Which of the following is not a relational database?
Alert!

Advertisement