No student devices needed. Know more
42 questions
Who is Father of C Language
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
C Language is developed at ___________?
AT & T's Bell Laboratories of USA in 1972
AT & T's Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
C programs are converted into machine language with the help of
An Editor
A compiler
An operating system
None of these.
Which one of the following is not a valid identifier?
_examveda
1examveda
exam_veda
examveda1
Which is the only function all C programs must contain?
start()
system()
printf()
main()
Which of the following is not a correct variable type?
float
real
int
char
int main()
{
int a = 10, b = 25;
a = b++ + a++;
b = ++b + ++a;
printf("%d %d n", a, b);
}
36 64
35 62
36 63
30 28
int main ()
{
int x = 24, y = 39, z = 45;
z = x + y;
y = z - y;
x = z - y;
printf ("%d %d %d", x, y, z);
}
24 39 63
39 24 63
24 39 45
39 24 45
A name having a few letters, numbers and special character _(underscore) is called
keywords
reserved keywords
tokens
identifiers
All keywords in C are in
lowercase letters
uppercase letters
sentence case letters
none of the mentioned
Who is the Father of C Language
Dr. E.F. Codd
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
C language developed at
AT&T Bell Laboratory
MIT University
Stanford Lab
Haward University
----------------- are used in C programming to manipulate the data at bit level
Logical operator
Bitwise operator
Additional operators
None of the above
What is the extension of C program?
.cpp
.py
.c
.java
Switch case should have at most -------- default label
1
2
3
None of these
do-while loop performs the test at the ------------- of the loop
top
bottom
middle
None of these
Final step of the for loop is ----------------------------
Incrementing
decrementing
Both
Incrementing / decrementing
---------- and ------------ are the two frequent operations on arrays.
Searching and sorting
Decrementing and decrementing
Searching and incrementing
none of these
We can initialize a two-dimensional array in the form of ---------
Searching
increment
matrix
none of these
int main ()
{
int x = 24, y = 39, z = 45;
printf ("%d %d %d", y, x, z);
}
24 39 45
39 24 45
45 39 24
39 45 24
Which symbol terminates a C statement?
.
;
,
}
What does \n do?
creates a tab
goes to a new line
sounds the computer's alarm.
prints a double quote mark
For the following float number 1.234500, what would be the output for %.3f in a printf statement?
1.234500
1.2345
1.23
123.4500
What type of variable does the %s conversion character stand for?
character
integer
floating point
string
What type of variable does the %d conversion character stand for?
string
integer
character
floating point
It is the smallest storage capacity unit of a computer
Nibble
Bit
Byte
Kilobyte
In C Programming, default type of any real value is ___________________.
Which of the declaration is correct?
int char;
char int;
double DOUBLE;
float double;
What is the output of the above code snippet?
100 50
100 200
300 200
300 50
The minimum number of temporary variables needed to swap the contents of two variables is
1
2
3
0
Array is a collection of
Library function pow() belongs to which header file?
mathio.h
math.h
square.h
stdio.h
Libray function getch() belongs to which header file?
stdio.h
conio.h
stdlib.h
stdlibio.h
Who developed the C programming language?
Bjarne Stroustrup
James Gosling
Dennis Ritchie
Ray Boyce
Which of the following is not a correct variable type?
float
real
int
char
Every C Program Statement must be terminated with a
.
#
;
!
#include<stdio.h>
int main()
{
function();
return 0;
}
void function()
{
printf("Function in C is awesome");
}
Function in C is awesome
No output
Runtime Error
Compilation Error
What will be the output of the C program?
#include<stdio.h>
a()
{
printf("Function");
}
b()
{
printf("Function in C");
}
c()
{
printf("C function");
}
main()
{
int (*ptr[3])();
ptr[0] = a;
ptr[1] = b;
ptr[2] = c;
ptr[2]();
return 0;
}
Function
Function in C
C Function
None of the above
What will be the output of the C program?
#include<stdio.h>
int main(){
printf("%p",main);
return 0;
}
Address
Compilation Error
Garbage Value
Runtime Error
What is the output?
72 72 72
72 110 48
Compilation error
No output
What will be the output of the C program?
#include<stdio.h>
int main()
{
char *ptr;
char string[] = "learn C from techninjas";
ptr = string;
ptr += 6;
printf("%s",ptr);
return 0;
}
Compilation Error
Runtime Error
from techninjas
C from techninjas
Explore all questions with a free account