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

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

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