NEW
Font size
WorksheetsByteBattle 2.0
Total questions: 30
Worksheet time: 23mins
I am a three-digit number. My second-digit is four times bigger than the third digit and my first digit is three less than the second digit. What number am I?
148
154
141
None of these
What will be the output if a variable x is assigned the value 10 and then printed?
10
x
error
not defined
Which of the following is a correct comment?
*/ Comments */
** Comment **
/* Comment */
{ Comment }
What does <= mean?
less than
greater than
less than or equal to
greater than or equal to
The format identifier ‘%i’ is also used for _____ data type.
char
int
float
double
Who invented C programming language ?
Ken Thompson
James Gosling
Dennis Ritchie
James Thompson
Which data type is used to store whole numbers in C?
char
double
int
float
What is the purpose of the printf function in C?
To read user input
To print text on the screen
To declare variables
To create loops
In C, what symbol is used for a single-line comment?
Used by computer programmers to develop software programs, scripts and other set of instructions for computer to execute.
Body Language
Programming language
Basic Language
Colloquial Language
The set of rules that defines the combinations of symbols and forms of the code.
Virus
Syntax
Error
Bug
What is the output of (5%2)?
If you have a mathematical expression x *y + y *x where x = 3 and y = 2, what is the result?
What will be the output if you perform floor division of 7 by 3?
Operator % in C Language is called.?
Percentage Operator
Quotient Operator
Modulus
Division
int a = 3.5 + 4.5;
a = 0
a = 7
a = 8.0
a = 8
The size of character variable in c
2 byte
5 byte
8 byte
1 byte
Pickup odd one out
a=a+1;
a+=1
a++
a=+1
What will be the output if you perform ceil division of 7 by 3?
C is a
Low level language
Assembly language
Medium level language
High level language
Which punctuation ends most of the lines of C code?
.
;
,
" "
Which of the following print format code is used to print float value?
%d
%f
%c
%i
What is the extension of a C program?
.cpp
.c
.cp
.f
What will be the output if you print a string "Hello" followed by a space and then another string "World"?
Hello_World
What will be the output of the following C code?
Its not zero
Its zero
Run time error
None
Rhombus shaped box in a flow chart is called-----
Input box
Decision box
Processing box
Start box
A single command is called a statement.
True
False
