Search Header Logo

quiz 5

Authored by Mina Romany

Professional Development

Professional Development

Used 1+ times

quiz 5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where cannot we use break?

switch statment

while loop

for loop

if statment

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what does Continue do?

Go Out of the scope

stop the loop

skip iteration

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List<int> l1=[1,2,3];

List<String> l2=['a',...l1,'b','c'];

print(l2)

['a',1,2,3,'b','c']

['a',[1,2,3],'b','c']

null

error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if(3>8) print('hello');

print('dart');

hello

dart

dart

hello

none of these

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print('hello');

if(12>8) print('dart');

hello

dart

hello

dart

none of these

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

String name='ahmed';

assert(name == 'Ahmed');

print('the end...');

exception

the end...

ahmed

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int i=8+2; switch(i){ case 1:case 2: print('hello'); break; case 8:case 9: default: print('hi'); break; }

hello

hi

hi

hello

no output

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?

Discover more resources for Professional Development