Test week 6

Test week 6

9th - 12th Grade

45 Qs

quiz-placeholder

Similar activities

Strings in python - Test

Strings in python - Test

11th Grade

50 Qs

Computer Quiz - Kelab Komputer / ICT

Computer Quiz - Kelab Komputer / ICT

3rd - 10th Grade

45 Qs

PYTHON Quiz 2 LPU SUMMER SCHOOL

PYTHON Quiz 2 LPU SUMMER SCHOOL

9th - 12th Grade

41 Qs

Binary & Data Represenation

Binary & Data Represenation

7th - 9th Grade

49 Qs

Midterm prep 10 gr

Midterm prep 10 gr

10th Grade - University

45 Qs

Year 8 Alternative EOT 2 Quiz

Year 8 Alternative EOT 2 Quiz

9th - 12th Grade

40 Qs

Python Basics Set 1

Python Basics Set 1

9th - 10th Grade

40 Qs

python basics by vaishali

python basics by vaishali

11th Grade

50 Qs

Test week 6

Test week 6

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Lê Sang

Used 11+ times

FREE Resource

45 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the expected output of the following code

2 1

3 1

3 3

3 4

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the expected output of the following code

abcd

dbce

edcb

dcea

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The following code produces runtime error

Argument type for func() is indeterminate

Return type for func() is indeterminate

Unsupported operand types for '+'

main() arguments is not supported

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is expected output of the following code?

[3, 4, 20]

[10, 20, 4]

[]

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is expected output of the following code

[3, 4, 20, 10, 30]

[3, 4, 20, 10, 30, 15]

[]

An error will be thrown

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Does the following code have errors during execution? If so, what it is?

No, the code doesn't have errors

Yes, unidentified syntax (semicolon)

Yes, integer cannot add with float

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the expected output of the following code?

15

20

30

128

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?