Search Header Logo

flutter oop part1 quiz

Authored by Mina Romany

Professional Development

Professional Development

Used 1+ times

flutter oop part1 quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

void main(){

var x= hh();print(9);var y =hh.fromy();}

class hh{hh(){print(10);}

hh.fromy(){print(11);}}

what is the output?

10

9

11

9

10

10

11

11

11

9

11

11

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

can the class have a function of its name?

false

true

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

main(){var ob1=Car().color;}

class Car{String color='red';}

what is ob1 data type?

Car

var

dynamic

String

none of these

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

class Home{}

main() {

var x=Home();var y=Home();

print(identical(x, y));

}

what is the output?

true

false

error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

class Home{Home();}

main() {

var x=Home();var y=Home();

print(identical(x, y));

}

what is the output?

true

false

error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

class Home{ Home();}

main() {

var x=const Home();var y=const Home();

print(identical(x, y));

}

what is the output?

true

false

error

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?