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

Name Email
1.

Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?

(Visited 22 times, 1 visits today)
2.

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;
}

(Visited 22 times, 1 visits today)
3.

Who calls to the function main()

(Visited 22 times, 1 visits today)
4.

In c language, if a function return type is not explicitly defined then it defaults to what data type?

(Visited 22 times, 1 visits today)
5.

Which of the following is TRUE about argv?

(Visited 22 times, 1 visits today)
6.

The ________ operator is true only when both the operands are true.

(Visited 22 times, 1 visits today)
7.

Which of the statements is correct about the program?
#include <stdio.h>
int main()
{
int i=10;
int *j=&i;
return 0;
}

(Visited 22 times, 1 visits today)
8.

Which of this is used to skip one iteration:

(Visited 22 times, 1 visits today)
9.

Which of the following range is a valid long double (Turbo C in 16 bit DOS OS) ?

(Visited 22 times, 1 visits today)
10.

The maximum combined length of the command-line arguments including the spaces between adjacent arguments is

(Visited 22 times, 1 visits today)
11.

The function that calls itself for its processing is known as.

(Visited 22 times, 1 visits today)
12.

The difference between variable declaration and variable definition is

(Visited 22 times, 1 visits today)
13.

In C, if you pass an array as an argument to a function, what actually gets passed?

(Visited 22 times, 1 visits today)
14.

What should be the output:
void main()

    int a = 10/3;
    printf("%d",a); 
}

(Visited 22 times, 1 visits today)
15.

What should be the output:
void main()
{
    int a = 10.5;
    printf("%d",a);
}

(Visited 22 times, 1 visits today)
16.

Array passed as an argument to a function is interpreted as

(Visited 22 times, 1 visits today)
17.

Which address does a pointer to an array store:

(Visited 22 times, 1 visits today)
18.

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;
}

(Visited 22 times, 1 visits today)
19.

Can you use the fprintf() to display the output on the screen?

(Visited 22 times, 1 visits today)
20.

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);
}

(Visited 22 times, 1 visits today)
21.

The size of a structure can be determined by
i. size of variable name
ii. size of (struct tag)

(Visited 22 times, 1 visits today)
22.

How many main() function we can have in our project?

(Visited 22 times, 1 visits today)
23.

Is it possible to run program without main() function?

(Visited 22 times, 1 visits today)
24.

In C all functions except main() can be called recursively.

(Visited 22 times, 1 visits today)
25.

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;
}

(Visited 22 times, 1 visits today)
26.

Which is not a string function?

(Visited 22 times, 1 visits today)
27.

Which of the following is true?

(Visited 22 times, 1 visits today)
28.

Which of the following is the correct order of evaluation for the below expression?
z = x + y * z / 4 % 2 – 1

(Visited 22 times, 1 visits today)
29.

Which of the following is true?

(Visited 22 times, 1 visits today)
30.

In the following code what is 'P' ?
typedef char *charp;
const charp P;

(Visited 22 times, 1 visits today)
31.

What do the following declaration signify?

char *arr[10];

(Visited 22 times, 1 visits today)
32.

The library function used to find the last occurrence of a character in a string is

(Visited 22 times, 1 visits today)
33.

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;
}

(Visited 22 times, 1 visits today)
34.

While calling the fprintf() function in the format string conversion specifier %s can be used to write a character string in capital letters.

(Visited 22 times, 1 visits today)
35.

What is output of below program?
#include<stdio.h>
int main()
{
    if(printf("C programming is "))
    {   
        printf("Easy");
    }
    else
    {
        printf("Hard");
    }
    return 0;
}

(Visited 22 times, 1 visits today)
36.

Which of the following is executed by Preprocess?

(Visited 22 times, 1 visits today)
37.

What are the types of linkages?

(Visited 22 times, 1 visits today)
38.

How many times newtum.com is printed?
void main()
{
int a = 0;
while(a++ < 5-++a)
printf("newtum.com");
}

(Visited 22 times, 1 visits today)
39.

Smallest element of array's index is called

(Visited 22 times, 1 visits today)
40.

Can we write a function that takes a variable argument list and passes the list to another function?

(Visited 22 times, 1 visits today)
41.

Array passed as an argument to a function is interpreted as

(Visited 22 times, 1 visits today)
42.

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;
}

(Visited 22 times, 1 visits today)
43.

What do the following declaration signify?
char **argv

(Visited 22 times, 1 visits today)
44.

What is the result of 16>>2?

(Visited 22 times, 1 visits today)
45.

What is the maximum number of dimensions an array in C may have ?

(Visited 22 times, 1 visits today)
46.

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;
}

(Visited 22 times, 1 visits today)
47.

What is (void*)0?

(Visited 22 times, 1 visits today)
48.

In a class, except 18 all are above 50 years. 15 are below 50 years of age. How many people are there

(Visited 22 times, 1 visits today)
49.

Find output : 
main()
{
     int x = 10;
{
  int x = 0;
   printf("%d",x);
}
}

(Visited 22 times, 1 visits today)
50.

Which of the following cannot be checked in a switch-case statement?

(Visited 22 times, 1 visits today)
51.

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;
}

(Visited 22 times, 1 visits today)
52.

Find output : 
void main()

    int a = printf ("newtum.com");
    printf("%d", a);
}

(Visited 22 times, 1 visits today)
53.

What is output of below program?
void main()
{
const int a = 10;
printf("%d",++a);
}

(Visited 22 times, 1 visits today)

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 22 times, 1 visits today)
Show Buttons
Hide Buttons