Aptitude Test C Programming For Intermediate Students​

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

Name Email
1. Which of the following is TRUE about argv?
2. The size of a structure can be determined by
i. size of variable name
ii. size of (struct tag)
3. The ________ operator is true only when both the operands are true.
4. Can we write a function that takes a variable argument list and passes the list to another function?
5. In the following code what is 'P' ?
typedef char *charp;
const charp P;
6. Who calls to the function main()
7. The function that calls itself for its processing is known as.
8. The library function used to find the last occurrence of a character in a string is
9. 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;
}
10. What is the result of 16>>2?
11. What are the types of linkages?
12. Which of the statements is correct about the program?
#include <stdio.h>
int main()
{
int i=10;
int *j=&i;
return 0;
}
13. What do the following declaration signify?
char **argv
14. 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;
}
15. In C all functions except main() can be called recursively.
16. Which of the following cannot be checked in a switch-case statement?
17. Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
18. What is (void*)0?
19. In C, if you pass an array as an argument to a function, what actually gets passed?
20. Can you use the fprintf() to display the output on the screen?

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 42 times, 1 visits today)