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

Name Email
1. Array passed as an argument to a function is interpreted as
2. Array passed as an argument to a function is interpreted as
3. Can you use the fprintf() to display the output on the screen?
4. How many times newtum.com is printed?
void main()
{
int a = 0;
while(a++ < 5-++a)
printf("newtum.com");
}
5. What are the types of linkages?
6. In a class, except 18 all are above 50 years. 15 are below 50 years of age. How many people are there
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 statements is correct about the program?
#include <stdio.h>
int main()
{
int i=10;
int *j=&i;
return 0;
}
9. Find output : 
void main()

    int a = printf ("newtum.com");
    printf("%d", a);
}
10. Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
11. What is output of below program?
#include<stdio.h>
int main()
{
    if(printf("C programming is "))
    {   
        printf("Easy");
    }
    else
    {
        printf("Hard");
    }
    return 0;
}
12. In C, if you pass an array as an argument to a function, what actually gets passed?
13. Find output : 
main()
{
     int x = 10;
{
  int x = 0;
   printf("%d",x);
}
}
14. What should be the output:
void main()

    int a = 10/3;
    printf("%d",a); 
}
15. How many main() function we can have in our project?
16. The library function used to find the last occurrence of a character in a string is
17. Which of the following range is a valid long double (Turbo C in 16 bit DOS OS) ?
18. What is output of below program?
void main()
{
const int a = 10;
printf("%d",++a);
}
19. Which address does a pointer to an array store:
20. What is the maximum number of dimensions an array in C may have ?
21. 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;
}
22. In the following code what is 'P' ?
typedef char *charp;
const charp P;
23. What is the result of 16>>2?
24. Which of the following is true?
25. In C all functions except main() can be called recursively.
26. What do the following declaration signify?

char *arr[10];
27. The difference between variable declaration and variable definition is
28. 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;
}
29. The maximum combined length of the command-line arguments including the spaces between adjacent arguments is
30. What is (void*)0?
31. The size of a structure can be determined by
i. size of variable name
ii. size of (struct tag)
32. Which of the following cannot be checked in a switch-case statement?
33.

Smallest element of array's index is called

34. Which of this is used to skip one iteration:
35. Which of the following is TRUE about argv?
36. 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;
}
37. Is it possible to run program without main() function?
38. What do the following declaration signify?
char **argv
39. 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);
}
40. Which of the following is executed by Preprocess?
41. The ________ operator is true only when both the operands are true.
42. Can we write a function that takes a variable argument list and passes the list to another function?
43. What should be the output:
void main()
{
    int a = 10.5;
    printf("%d",a);
}
44. Which of the following is the correct order of evaluation for the below expression?
z = x + y * z / 4 % 2 - 1
45. Who calls to the function main()
46. The function that calls itself for its processing is known as.
47. 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;
}
48. 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;
}
49. In c language, if a function return type is not explicitly defined then it defaults to what data type?
50. 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;
}
51. Which of the following is true?
52. 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;
}
53. Which is not a string function?

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