wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Flutter_Q2

Total questions: 22

Worksheet time: 16mins

Name
Class
Date
1.

where can we use break?

a)

if statement

b)

ternary condition

c)

while loop

d)

for loop

e)

switch statement

2.

what does continue do?

a)

go out of loop

b)

skip iteration

c)

go to a function

d)

call a method

3.

void main() { print(new Random().nextInt(50) );}

what is miss in this code?

(a)  

4.

from what we can read input from user?

a)

cin>>;

b)

console.readline();

c)

readlinesync();

d)

stdin.readlinesync();

5.

what library is used to read from user?

a)

dart:math

b)

dart:io

c)

dart:html

d)

dart:isolate

6.

what is the output of this code?

print(DateTime.daysPerWeek);

(a)  

7.

var x=55;

print(x.iseven);

what is the output of this code?

(a)  

8.

var x=12.34;

print(x.floor());

what is the output of this code?

a)

13

b)

12

c)

12.5

9.

var x=12.34;

print(x.ceil());

what is the output of this code?

(a)  

10.

var x=12.34;

print(x.round());

what is the output of this code?

(a)  

11.

var text="TeXt";

print(text.touppercase());

what is the output?

a)

text

b)

tExT

c)

TEXT

d)

TeXt

12.

var text="TeXt";

print("text.tolowercase()");

what is the output?

(a)  

13.

var text="a-b-c-d";

print(text.split("-"));

a)

[a,b,c,d]

b)

abcd

c)

text.split("-")

14.

var text=" a b c d ";

print("text.trim()");

(a)  

15.

print(new Random().nextInt(15));

what is the range of the output?

a)

from 1 to 15

b)

from 0 to 14

c)

from 0 to 15

d)

from 1 to 14

16.

print(25.remainder(5));

is equivalent to?

a)

print(25/5);

b)

print(25%5);

c)

print(25*5);

d)

print(0);

17.

var x=-15.5;

print(x.abs());

what is the output of this code?

a)

15

b)

15.5

c)

-15

d)

-15.5

18.

var x=15.5;

print(x.abs()+"5");

what is the output of this code?

(a)  

19.

var x=-15.5;

print(x.abs().toString()+"5");

what is the output of this code?

(a)  

20.

print(-50.abs()+5);

what is the output of this code?

a)

55

b)

-45

c)

45

d)

50.5

21.

var x =-50;

print(x.abs()+5);

what is the output of this code?

a)

55

b)

-45

c)

50.5

d)

-50.5

22.

print((-50).abs()+5);

what is the output of this code?

(a)