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

Name Email
1. Which is not a string function?
2. The difference between variable declaration and variable definition is
3. Can you use the fprintf() to display the output on the screen?
4. What should be the output:
void main()
{
    int a = 10.5;
    printf("%d",a);
}
5. Find output : 
void main()

    int a = printf ("newtum.com");
    printf("%d", a);
}
6. What do the following declaration signify?
char **argv
7. While calling the fprintf() function in the format string conversion specifier %s can be used to write a character string in capital letters.
8. Which of the following is true?
9. What is the result of 16>>2?
10. Find output : 
main()
{
     int x = 10;
{
  int x = 0;
   printf("%d",x);
}
}
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 is true?
13. The ________ operator is true only when both the operands are true.
14. Which of this is used to skip one iteration:
15. What do the following declaration signify?

char *arr[10];
16. Which of the following range is a valid long double (Turbo C in 16 bit DOS OS) ?
17. What is output of below program?
void main()
{
const int a = 10;
printf("%d",++a);
}
18. Which of the following is TRUE about argv?
19. What are the types of linkages?
20. What is output of below program?
#include<stdio.h>
int main()
{
    if(printf("C programming is "))
    {   
        printf("Easy");
    }
    else
    {
        printf("Hard");
    }
    return 0;
}
21. Which of the following is executed by Preprocess?
22. What is output of below program?
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
    char temp[20];
    gcvt(23.45, 3, temp);
    printf("%s", temp);
    return 0;
}
23. How many times newtum.com is printed?
void main()
{
int a = 0;
while(a++ < 5-++a)
printf("newtum.com");
}
24. Can we write a function that takes a variable argument list and passes the list to another function?
25. What is output of below program?
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
    char temp[20];
    gcvt(23.45,2, temp);
    printf("%s", temp);
    return 0;
}
26. Which of the following is the correct order of evaluation for the below expression?
z = x + y * z / 4 % 2 - 1
27. What is output of below program?
#include <stdio.h>
int main()
{
int a = 10;
printf("%d", a);
int a = 20;
printf("%d",a);
return 0;
}
28. Who calls to the function main()
29. Which of the following cannot be checked in a switch-case statement?
30. Which address does a pointer to an array store:
31. What is output of below program?
#include <stdio.h>
char * f();
char a = 'a';
int main(int argc, char *argv[])
{
char *temp = f();
printf("%%", temp);
return 0;
}
char *f()

return &a;
}
32. Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
33. Array passed as an argument to a function is interpreted as
34. The function that calls itself for its processing is known as.
35. In the following code what is 'P' ?
typedef char *charp;
const charp P;
36.

Smallest element of array's index is called

37. The size of a structure can be determined by
i. size of variable name
ii. size of (struct tag)
38. What is output of below program?
#include <stdio.h>
int main(int argc, char *argv[]) {
char str1 [] = "newtum" ;
int a = 10;
char str2[12] ;
sprintf (str2, "%s-%d", str1, a) ;
printf ( "%s", str2 ) ; 
return 0;
}
39. In a class, except 18 all are above 50 years. 15 are below 50 years of age. How many people are there
40. Array passed as an argument to a function is interpreted as
41. How many main() function we can have in our project?
42. In C all functions except main() can be called recursively.
43. Is it possible to run program without main() function?
44. In C, if you pass an array as an argument to a function, what actually gets passed?
45. What is output of below program?
void main()
{
int i,j,count;
count=0;
for(i=0; i<5; i++);

for(j=0;j<5;j++);
{
    count++;
}
}
printf("%d",count);
}
46. The library function used to find the last occurrence of a character in a string is
47. The maximum combined length of the command-line arguments including the spaces between adjacent arguments is
48. Which of the statements is correct about the program?
#include <stdio.h>
int main()
{
int i=10;
int *j=&i;
return 0;
}
49. What is (void*)0?
50. What is the maximum number of dimensions an array in C may have ?
51. 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;
}
52. What should be the output:
void main()

    int a = 10/3;
    printf("%d",a); 
}
53. In c language, if a function return type is not explicitly defined then it defaults to what data type?

Thank You for Submitting your response for Quiz

Aptitude Test C Programming For Advanced Students​

Please click on View Result Button to see the Result.



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