NEW
Font size
S
M
L
XL
WorksheetsLevel 1 - week 1
Total questions: 8
Worksheet time: 2mins
Name
Class
Date
1.
What is my name? (just seeing if you are awake or not)
a)
Fatema
b)
Arwa
c)
Mariam
d)
who cares
2.
If we want to print on the console,
we use
cin << "Welcome to NU ICPC ";
a)
False
b)
True
3.
If I want to execute a block of statements n number of times, which looping
method will be the most suitable?
a)
switch case
b)
while loop
c)
for loop
d)
do while
4.
what will be the output
a)
21
b)
23
c)
22
d)
20
5.
what is this formula for?
a)
Geometric series
b)
Arithmetic series
6.
if I have an integer variable that can hold up to 1e9, which data type is most suitable
a)
char
b)
int
c)
long long
7.
If I have an integer variable that can hold up to 1e10, what is the most suitable d
data type
a)
int
b)
long long
c)
char
8.
(a+b)%m is equivalent to
a)
(a%m + b)%m
b)
(a + b%m)%m
c)
(a%m)+(b%m)%m
Reset
