Worksheetscomputer 12
Total questions: 11
Worksheet time: 8mins
Name
Class
Date
1.
int x;
int y;
int z;
x=3;
y=4;
z = ++x * y++;
cout<< z;
a)
12
b)
16
c)
20
d)
0
2.
Which operator has the lowest priority?
a)
++
b)
%
c)
+
d)
||
3.
int main()
{
int a = 25%10;
cout<< a;
return 0;
}
a)
5
b)
2
c)
2.5
d)
5.5
4.
!= is the example of ____________________ operator.
a)
Relational
b)
Logical
c)
Assignment
d)
Conditional
5.
SDLC stands for...
a)
System development life cycle.
b)
Software development litigation cycle.
c)
System development life conditions.
d)
Software development life cycle.
6.
What stage comes after the design stage?
a)
Testing
b)
Implementation
c)
Specification requirements
d)
Evolution
7.
Which command moves the shown text to the next line?
a)
\t
b)
\n
c)
\r
d)
\s
8.
What is the alternative for x = x + 5?
a)
x += 5;
b)
x -= 4;
c)
x = y + 5;
d)
x=+5
9.
Which of the following is a correct comment?
a)
A. */ Comments */
b)
B. ** Comments **
c)
C./* Comments */
d)
D. { Comment }
10.
Which of the following is not a correct variable type?
a)
A. float
b)
B. real
c)
C. int
d)
D. double
11.
What does this flowchart symbol represent?
a)
data input / output
b)
start / end
c)
decision
d)
wait
100 %
