Font size
WorksheetsFlutter_Q2
Total questions: 22
Worksheet time: 16mins
where can we use break?
if statement
ternary condition
while loop
for loop
switch statement
what does continue do?
go out of loop
skip iteration
go to a function
call a method
void main() { print(new Random().nextInt(50) );}
what is miss in this code?
(a)
from what we can read input from user?
cin>>;
console.readline();
readlinesync();
stdin.readlinesync();
what library is used to read from user?
dart:math
dart:io
dart:html
dart:isolate
what is the output of this code?
print(DateTime.daysPerWeek);
(a)
var x=55;
print(x.iseven);
what is the output of this code?
(a)
var x=12.34;
print(x.floor());
what is the output of this code?
13
12
12.5
var x=12.34;
print(x.ceil());
what is the output of this code?
(a)
var x=12.34;
print(x.round());
what is the output of this code?
(a)
var text="TeXt";
print(text.touppercase());
what is the output?
text
tExT
TEXT
TeXt
var text="TeXt";
print("text.tolowercase()");
what is the output?
(a)
var text="a-b-c-d";
print(text.split("-"));
[a,b,c,d]
abcd
text.split("-")
var text=" a b c d ";
print("text.trim()");
(a)
print(new Random().nextInt(15));
what is the range of the output?
from 1 to 15
from 0 to 14
from 0 to 15
from 1 to 14
print(25.remainder(5));
is equivalent to?
print(25/5);
print(25%5);
print(25*5);
print(0);
var x=-15.5;
print(x.abs());
what is the output of this code?
15
15.5
-15
-15.5
var x=15.5;
print(x.abs()+"5");
what is the output of this code?
(a)
var x=-15.5;
print(x.abs().toString()+"5");
what is the output of this code?
(a)
print(-50.abs()+5);
what is the output of this code?
55
-45
45
50.5
var x =-50;
print(x.abs()+5);
what is the output of this code?
55
-45
50.5
-50.5
print((-50).abs()+5);
what is the output of this code?
(a)
