Welcome to Your Quiz: Aptitude Test C Programming For Intermediate Students​

Name Email
1.

Who calls to the function main()

(Visited 39 times, 1 visits today)
2.

What do the following declaration signify?
char **argv

(Visited 39 times, 1 visits today)
3.

What is (void*)0?

(Visited 39 times, 1 visits today)
4.

Which of the following is TRUE about argv?

(Visited 39 times, 1 visits today)
5.

Can we write a function that takes a variable argument list and passes the list to another function?

(Visited 39 times, 1 visits today)
6.

Which of the following cannot be checked in a switch-case statement?

(Visited 39 times, 1 visits today)
7.

The size of a structure can be determined by
i. size of variable name
ii. size of (struct tag)

(Visited 39 times, 1 visits today)
8.

In C all functions except main() can be called recursively.

(Visited 39 times, 1 visits today)
9.

The function that calls itself for its processing is known as.

(Visited 39 times, 1 visits today)
10.

Can you use the fprintf() to display the output on the screen?

(Visited 39 times, 1 visits today)
11.

What are the types of linkages?

(Visited 39 times, 1 visits today)
12.

Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?

(Visited 39 times, 1 visits today)
13.

Which of the statements is correct about the program?
#include <stdio.h>
int main()
{
int i=10;
int *j=&i;
return 0;
}

(Visited 39 times, 1 visits today)
14.

In C, if you pass an array as an argument to a function, what actually gets passed?

(Visited 39 times, 1 visits today)
15.

The library function used to find the last occurrence of a character in a string is

(Visited 39 times, 1 visits today)
16.

In the following code what is 'P' ?
typedef char *charp;
const charp P;

(Visited 39 times, 1 visits today)
17.

The ________ operator is true only when both the operands are true.

(Visited 39 times, 1 visits today)
18.

What is the result of 16>>2?

(Visited 39 times, 1 visits today)
19.

What will be the output of the program ?
#include<stdio.h>
#include<string.h>
int main()
{
char str1[20] = "Hello", str2[20] = " World";
printf("%s\n", strcpy(str2, strcat(str1, str2)));
return 0;
}

(Visited 39 times, 1 visits today)
20.

What will be the output of the program ?
#include<stdio.h>
int main()
{
int x, y, z;
x=y=z=1;
z = ++x || ++y && ++z;
printf("x=%d, y=%d, z=%d\n", x, y, z);
return 0;
}

(Visited 39 times, 1 visits today)

Thank You for Submitting your response for Quiz

Aptitude Test C Programming For Intermediate Students​

Please click on View Result Button to see the Result.



(Visited 39 times, 1 visits today)
Show Buttons
Hide Buttons