NEW
Font size
WorksheetsFlutter_Q5
Total questions: 10
Worksheet time: 8mins
main(){ h1(); }
h1() =>"hi"+"text";
What is the output of this code?
hi text
error
hi
No Output
Null
main(){ sum(2,5,2); }
int sum ({x,y,z}) {print(x+y+z);}
What is the output of this code?
9
x+y+z
null
error
main() { sum(x:2,z:"5",y:8); }
sum ({x,y,String z}) {print(x+y);}
What is the output of this code?
error
10
null
can we pass to a function an argument string list only?
true
false
can we put a lamda function in variable?
true
false
main(){ print(div(12,3) );}
var div = (x,y)=>x/y;
What is the output of this code?
error
4
null
none from above
can we pass a function as an argument in another function?
true
false
line 1 main()
line 2 { human h1=new human();
line 3 human h2=human();}
line 4 class human{var name;}
Is there an error?
Yes at line 3
Yes at line 2
Yes at line 4
No error
is there an error in making a function inside class?
yes there is an error
no there is no error
can we make a function inside a class its name same as the class name?
true
false
