Font size
WorksheetsFlutter_Q3
Total questions: 29
Worksheet time: 25mins
which one is wrong?
var l =[2,4];
List l=[2,4];
List l=new List(2);
list l =[2,4];
no one is wrong
var l = [2,4,6,8];
print(l[2]);
what is the output of this code?
(a)
var l = [2,4,6,8];
print(l.index of (2));
what is the output of this code?
(a)
var l = [2,4,6,8];
print(l.elementAt(2));
what is the output of this code?
(a)
var l = [2,4,6,8];
print(l.reversed);
what is the output of this code?
(4,2,8,6)
(6,4,2,8)
(8,6,4,2)
(8,2,6,4)
var l = [2,4,6,8]; l[0]=100
print(l[0]);
what is the output of this code?
(a)
var l = [2,4,6,8]; l.add(200);
what is the index of 200?
(a)
var l = [2,4,6,8]; l.replaceRange(3, 4, 18);
what is the output of this code?
(a)
var l = [2,4,6,8]; l.replaceRange(2, 3, [18]);
print(l[2]);
what is the output of this code?
6
4
0
18
can list change to set?
true
false
var x =new List(2,2); x=[[2,4],[2,8]] ;
print (x);
what is the output of this code?
[[2,4],[2,8]]
[[2,8],[2,4]]
2,4,2,8
Error
all is wrong
var x =[[2,4,6]],[2,8,9]]; print(x[3]);
what is the output of this code?
(a)
var x =[[2,4,6]],[2,8,9]]; print(x[0]);
what is the output of this code?
2
Error
[2,4,6]
[2,2]
var x =[[2,4,6]],[2,8,9]]; print(x[0][2]);
what is the output of this code?
(a)
Can set change to list?
True
False
var y=[2,4,8]; var t={6,4,9};
print(t.intersection(y));
what is the output of this code?
(a)
var n ={2,4,6}; var o={4,8,6};
print(n.difference(o));
what is the output of this code?
(a)
var n ={2,4,6}; var o={4,8,6};
print(o.difference(n));
what is the output of this code?
(a)
var p ={[2,4],6,8};print(p);
what is the output of this code?
Error
{[2,4],6,8}
2,4,6,8
{2,4,6,8}
var p ={[2,4],6,8};print(p.elementAt(0));
what is the output of this code?
(a)
var p ={[2,4]}; for (var x in p ){print(x[0]);}
what is the output of this code?
(a)
var p ={[2,4],6}; for (var x in p ){print(x[0]);}
what is the output of this code?
(a)
var p ={[2,4],6,8,9}; print(p.length);
what is the output of this code?
(a)
var i = {5,8,7,6}; print(i.contains(5));
what is the output of this code?
(a)
var m={12,6,8,6,7};print(m.removeAll({6}));
what is the output of this code?
(a)
var m={12,6,8,6,7};print(m.isNotEmpty);
what is the output of this code?
(a)
var m={12,6,8,6,7}; m.clear(); print(m.isNotEmpty);
what is the output of this code?
(a)
var t ={12,7,9}; t.addAll({15,5,6}); print(t);
what is the output of this code?
(a)
var m ={15,12,9}; m.addAll({9,7,15}); print(m);
what is the output of this code?
(a)
