NEW
Font size
WorksheetsGITAM Quiz
Total questions: 15
Worksheet time: 8mins
What is the correct syntax to output"Hello world"in c ?
Printf("Hello World");
echo ("Hello world");
Cout<< "Hello World";
Print ("Hello world");
Which of the following is a valid variable name in c ?
Int
1 value
Value_1
Value -1
What is the size of int on a typical
32-bit system ?
2 bytes
4 bytes
8 bytes
Depends on the computer
What is the output of the following code?
Int a=5;
Printf("%d",a++);
5
6
Error
Undefined
Which of the following is a loop construct in c ?
Repeat
Loop
For
Foreach
Which header file is required for
Printf () function
Conio.h
Math.h
Studio.h
Stdlib.h
What will this code print?
Int x=10;
Int y=20;
Printf ("%d",x > y );
10
20
1
0
Who is known as the father of the computer?
Alan Turing
Charles Babbage
Tim Berners- Lee
Bill Gates
Who is known as the father of the C
Programming Language?
Charles Babbage
James gosling
Dennis ritchie
Bjarne stroustrup
Which symbol is used to include header
Files in c ?
#
@
$
%
What will 5/2 give in c?
2.5
2
3
Error
Which loop guarantees at least one execution?
For
While
Do-while
None
What does the following function return?
Int fun () {
Static int num =0;
Return ++num;
}
If fun () is called three times what is the last return value?
1
2
3
0
Which operator is used to get the address of a variable?
*
&
@
#
What does size of ( char ) return in c ( on most systems)?
0
1
2
Depends on the character
