NEW
Font size
WorksheetsC Programming Quiz
Total questions: 16
Worksheet time: 8mins
Which of the following is a valid C data type?
number
real
int
digit
Which data type is used to store a single character?
int
char
float
double
What is the size of char in C?
2 bytes
4 bytes
8 bytes
1 byte
Which data type stores large decimal values?
float
int
double
char
Why is C called a “middle-level language”?
Only supports high level features
Only supports hardware programming
Supports both low-level and high-level programming
Runs only on Linux
Which is NOT an advantage of C?
Fast execution
Portable
Automatic garbage collection
Structured programming
Who developed C language?
James Gosling
Dennis Ritchie
Bjarne Stroustrup
Guido van Rossum
Which symbol ends a C statement?
:
,
;
.
Which data type is used to store decimal values?
int
char
float
void
What is the size of int (usually)?
1 byte
2 bytes
4 bytes
8 bytes
Which keyword is used to define a constant?
const
define
static
final
Which operator is used to get remainder?
/
%
*
+
What is a function?
Variable
Loop
Block of reusable code
Operator
Main function in C is:
Optional
Cannot return value
Entry point of program
Loop
Which symbol is used for pointer?
#
*
&
%
Which header file is needed for printf()?
stdlib.h
math.h
stdio.h
string.h
