wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Flutter_Q3

Total questions: 29

Worksheet time: 25mins

Name
Class
Date
1.

which one is wrong?

a)

var l =[2,4];

b)

List l=[2,4];

c)

List l=new List(2);

d)

list l =[2,4];

e)

no one is wrong

2.

var l = [2,4,6,8];

print(l[2]);

what is the output of this code?

(a)  

3.

var l = [2,4,6,8];

print(l.index of (2));

what is the output of this code?

(a)  

4.

var l = [2,4,6,8];

print(l.elementAt(2));

what is the output of this code?

(a)  

5.

var l = [2,4,6,8];

print(l.reversed);

what is the output of this code?

a)

(4,2,8,6)

b)

(6,4,2,8)

c)

(8,6,4,2)

d)

(8,2,6,4)

6.

var l = [2,4,6,8]; l[0]=100

print(l[0]);

what is the output of this code?

(a)  

7.

var l = [2,4,6,8]; l.add(200);

what is the index of 200?

(a)  

8.

var l = [2,4,6,8]; l.replaceRange(3, 4, 18);

what is the output of this code?

(a)  

9.

var l = [2,4,6,8]; l.replaceRange(2, 3, [18]);

print(l[2]);

what is the output of this code?

a)

6

b)

4

c)

0

d)

18

10.

can list change to set?

a)

true

b)

false

11.

var x =new List(2,2); x=[[2,4],[2,8]] ;

print (x);

what is the output of this code?

a)

[[2,4],[2,8]]

b)

[[2,8],[2,4]]

c)

2,4,2,8

d)

Error

e)

all is wrong

12.

var x =[[2,4,6]],[2,8,9]]; print(x[3]);

what is the output of this code?

(a)  

13.

var x =[[2,4,6]],[2,8,9]]; print(x[0]);

what is the output of this code?

a)

2

b)

Error

c)

[2,4,6]

d)

[2,2]

14.

var x =[[2,4,6]],[2,8,9]]; print(x[0][2]);

what is the output of this code?

(a)  

15.

Can set change to list?

a)

True

b)

False

16.

var y=[2,4,8]; var t={6,4,9};

print(t.intersection(y));

what is the output of this code?

(a)  

17.

var n ={2,4,6}; var o={4,8,6};

print(n.difference(o));

what is the output of this code?

(a)  

18.

var n ={2,4,6}; var o={4,8,6};

print(o.difference(n));

what is the output of this code?

(a)  

19.

var p ={[2,4],6,8};print(p);

what is the output of this code?

a)

Error

b)

{[2,4],6,8}

c)

2,4,6,8

d)

{2,4,6,8}

20.

var p ={[2,4],6,8};print(p.elementAt(0));

what is the output of this code?

(a)  

21.

var p ={[2,4]}; for (var x in p ){print(x[0]);}

what is the output of this code?

(a)  

22.

var p ={[2,4],6}; for (var x in p ){print(x[0]);}

what is the output of this code?

(a)  

23.

var p ={[2,4],6,8,9}; print(p.length);

what is the output of this code?

(a)  

24.

var i = {5,8,7,6}; print(i.contains(5));

what is the output of this code?

(a)  

25.

var m={12,6,8,6,7};print(m.removeAll({6}));

what is the output of this code?

(a)  

26.

var m={12,6,8,6,7};print(m.isNotEmpty);

what is the output of this code?

(a)  

27.

var m={12,6,8,6,7}; m.clear(); print(m.isNotEmpty);

what is the output of this code?

(a)  

28.

var t ={12,7,9}; t.addAll({15,5,6}); print(t);

what is the output of this code?

(a)  

29.

var m ={15,12,9}; m.addAll({9,7,15}); print(m);

what is the output of this code?

(a)