NEW
Font size
S
M
L
XL
WorksheetsFlutter_Q1 G4
Total questions: 8
Worksheet time: 4mins
Name
Class
Date
1.
Var x = 9 as double; print (x);
What is the output of this code?
a)
9
b)
Error
c)
x
d)
9.0
2.
Var x = 9.0 as double; print (x);
What is the output of this code?
a)
9
b)
9.0
c)
Error
d)
x
3.
var a = 9;
a++;
++a;
print(a--);
what is the output?
a)
9
b)
10
c)
11
d)
8
4.
what is the output of this code?
var name="ali";
var out = name??"ahmed";
print(out);
a)
ali
b)
ahmed
c)
name
d)
No Output
5.
what is the output of this code?
var a =15;
var b = 12;
a>b ? print(b):print(a);
a)
a
b)
b
c)
12
d)
15
e)
Error
6.
How do you start writing an if statement ?
a)
if x>y {
b)
if x > y then:
c)
if x > y:
d)
if (x > y)
7.
what is the alternative of x=x+5?
a)
x=+5;
b)
x=y+5;
c)
5=+x;
d)
x+=5;
8.
var i=9;
print(i.toDouble);
print(i);
what is the output of this code?
a)
9
9.0
b)
9.0
9.0
c)
9.0
9
d)
No Output
Reset
