Font size
WorksheetsFlutter_Q1
Total questions: 21
Worksheet time: 9mins
what is the output of this code?
int x =5.2;
print(x);
5
5.2
Error
5.0
var x = 14.9;
what is the type of variable x?
Boolean
String
Int
double
Fill the gaps.
___Declaring an integer
and printing it___
int x = 42;
print(x);
//.........//
<----...................----->
/*............*/
?-------------?
what is the output of this code?
const R = 3.1;
R=5;
print(R);
3.1
5
Error
3
which one print 10?
int num =9;
print ("the number is $num + 1");
int num =9;
print ("the number is ${num + 1}");
int num =9;
print ("the number is num +1");
int num =9;
print ("the number is " + (num +1));
var a ="4";
var b ="2";
print(a+b);
what is the output of this code?
(a)
Which operator is used to determine the remainder?
*
/
%
+
var a = 9;
var b = 5;
print("a>b");
what is the output of this code?
true
Error
a>b
9>5
var a = 9;
var b = 5;
print(a>b && 4>7);
what is the output of this code?
9>5 && 4>7
a>b && 4>7
false
Error
var a = 9;
a++;
++a;
print(a--);
what is the output?
(a)
what is the output of this code?
var name="ali";
var out = name??"ahmed";
print(out);
name
ahmed
ali
Error
what is the output of this code?
var a =15;
var b = 12;
a>b ? print(a):print(b);
(a)
Type casting is when you assign a value of one data type to another type.
False
True
Which operator can be used to compare two values?
==
=
><
<>
How do you start writing an if statement ?
if x>y {
if x > y then:
if (x > y)
if x > y:
How do you start writing a while loop?
while (x > y)
while x > y:
x > y while {
while x > y {
Dart is an open source programming language developed by ......?
Microsoft
Oracle
what is the alternative of x=x+5?
x=+5;
x=y+5;
x+=5;
5=+x;
if you initialize a variable as var,once assigned type cannot change?
true
false
Var x = 9 as double; print (x);
What is the output of this code?
(a)
Var x = 9.0 as double; print (x);
What is the output of this code?
(a)
