NEW
Font size
WorksheetsFriday
Total questions: 25
Worksheet time: 20mins
1
2
No Limit
Depends on Computer
Operator
Function
Macro
None of These
What is the Output?
20
0
Undefined reference to i
Linking Error
What will be the output of the following?
Compilation Error
0
TechNinjas2
TechNinjas211
Give the Output!
Compilation Error
Runtime Error
__0
__30
What will be the output of the following code?
0
15
Undefined i
Any other Compiler Error
What will pe printed on the screen?
10
20
30
Compilation Error
How many times will the loop run?
5 Times
4 Times
2 Times
1 Time
What will be the Output?
320
60
160
64
Printed infinite times
Prints 1 time only
Nothing is printed
Error
55
54
1
0
Hello is printed 5 times
Compilation Error
Hello is printed 2 times
Hello is printed 3 times
Compilation Error
Runtime Error
Nothing is printed
Hello is printed infinite times
When C Language was invented?
1972
1970
1978
1979
What is storage class for variable A in below code?
void main()
{
int A;
A = 10;
printf("%d", A);
}
extern
auto
register
static
Yes
No
Depends on Compiler
Yes, but RunTime Error
The element will be set to 0.
The compiler would report an error.
The program may crash if some important data gets overwritten.
The array size would appropriately grow.
Guess the output of the following program ?
#include<stdio.h>
int main()
{
int a = 100, b = 200, c = 300;
if(!a >= 500)
b = 300;
c = 400;
printf("%d,%d,%d",a, b, c);
return 0;
}
100,200,400
100,200,300
100,300,400
100,300,300
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32668
-32768 to 32767
C was Primarily developed as?
System Programming Language
General Purpose Language
Data Processing Language
None of the above
53 65
65 65
065 65
Syntax Error
0
1
2
3
A C variable cannot start with ?
A number
A special symbol other than underscore
Both, a number as well as underscore
An alphabet
5
6
7
8
216−1
215−1
216
215
