NEW
Font size
WorksheetsQUIZ 1: REVIEW ON C
Total questions: 15
Worksheet time: 8mins
What punctuation is used to signal the beginning and end of code blocks?
{ and }
-> and <-
BEGIN and END
( and )
Who is known as the founder of C language?
James Gosling
Martin Richard
Dennis Ritchie
BillGates
Which punctuation ends most lines of code?
.
(period)
;
(semicolon)
:
(colon)
,
(comma)
C language is:
High level language
Middle level language
Low Level Language
Undefined Language
Which of the following is true about C?
Platform independent
Machine Independent
High level language
Which of the following is a correct comment?
*/Comment /
**Comment**
/*Comment*/
{Comment}
Which of the following is not a correct variable type?
Float
Real
Int
Double
What is the only function that all C programs must contain?
start()
system()
main()
program()
What is the correct value to return to the operating system upon the successful completion of a program?
-1
1
0
The program does not return a value
Which of the following is the correct operator to compare two variables?
:=
=
Equal
==
Which of the following functions is used to display a message on the screen?
print()
scan()
printf()
scanf()
The following are examples of combined operators except:
*=
>=
/=
+=
Which of the following is not a reserved word in C language?
for
goto
switch
awhile
In flowchart, what symbol/shape indicates a decision?
diamond
arrow lines
small circe
rectangle
You are tasked to create a program that will determine if the grade of the student is passed or failed. 75 is the passing score. What will be the condition?
if(grade>75)
if(grade>=75)
if(grade==75)
if(grade<75)
