Aptitude Test C Programming For Advanced Students​

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. In c language, if a function return type is not explicitly defined then it defaults to what data type?
3. Which of the following range is a valid long double (Turbo C in 16 bit DOS OS) ?
4. Which of the following is the correct order of evaluation for the below expression?
z = x + y * z / 4 % 2 - 1
5. Who calls to the function main()
6. In C, if you pass an array as an argument to a function, what actually gets passed?
7. Is it possible to run program without main() function?
8. While calling the fprintf() function in the format string conversion specifier %s can be used to write a character string in capital letters.
9. 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);
}
10. 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;
}
11. Which is not a string function?
12. What should be the output:
void main()

    int a = 10/3;
    printf("%d",a); 
}
13. How many main() function we can have in our project?
14. Can we write a function that takes a variable argument list and passes the list to another function?
15. In the following code what is 'P' ?
typedef char *charp;
const charp P;
16. Can you use the fprintf() to display the output on the screen?
17.

Smallest element of array's index is called

18. What should be the output:
void main()
{
    int a = 10.5;
    printf("%d",a);
}
19. The ________ operator is true only when both the operands are true.
20. What is the result of 16>>2?
21. The maximum combined length of the command-line arguments including the spaces between adjacent arguments is
22. 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;
}
23. What is output of below program?
void main()
{
const int a = 10;
printf("%d",++a);
}
24. Which of the following cannot be checked in a switch-case statement?
25. What are the types of linkages?
26. How many times newtum.com is printed?
void main()
{
int a = 0;
while(a++ < 5-++a)
printf("newtum.com");
}
27. In C all functions except main() can be called recursively.
28. The difference between variable declaration and variable definition is
29. Which of the following is true?
30. 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;
}
31. 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;
}
32. Which address does a pointer to an array store:
33. The function that calls itself for its processing is known as.
34. What do the following declaration signify?
char **argv
35. Which of this is used to skip one iteration:
36. What is output of below program?
#include<stdio.h>
int main()
{
    if(printf("C programming is "))
    {   
        printf("Easy");
    }
    else
    {
        printf("Hard");
    }
    return 0;
}
37. 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;
}
38. What is (void*)0?
39. Array passed as an argument to a function is interpreted as
40. 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;
}
41. What do the following declaration signify?

char *arr[10];
42. The library function used to find the last occurrence of a character in a string is
43. The size of a structure can be determined by
i. size of variable name
ii. size of (struct tag)
44. What is the maximum number of dimensions an array in C may have ?
45. Which of the following is TRUE about argv?
46. Find output : 
void main()

    int a = printf ("newtum.com");
    printf("%d", a);
}
47. Which of the following is executed by Preprocess?
48. 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;
}
49. Which of the following is true?
50. Which of the statements is correct about the program?
#include <stdio.h>
int main()
{
int i=10;
int *j=&i;
return 0;
}
51. Find output : 
main()
{
     int x = 10;
{
  int x = 0;
   printf("%d",x);
}
}
52. Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
53. In a class, except 18 all are above 50 years. 15 are below 50 years of age. How many people are there

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