Mod 2 Test

Mod 2 Test

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Python Functions

Python Functions

12th Grade

15 Qs

Python Basics Quiz 1

Python Basics Quiz 1

8th Grade - University

15 Qs

uCertify JavaScript Chapter 5

uCertify JavaScript Chapter 5

9th - 12th Grade

20 Qs

CS Edexcel Unit 6 Parts 4-5 - Iteration

CS Edexcel Unit 6 Parts 4-5 - Iteration

9th - 10th Grade

16 Qs

Selection in Python

Selection in Python

1st - 9th Grade

15 Qs

Flow of Control

Flow of Control

11th - 12th Grade

18 Qs

Python Final Exam

Python Final Exam

9th Grade

21 Qs

GCSE Computer Science - Programming Keywords

GCSE Computer Science - Programming Keywords

9th - 12th Grade

15 Qs

Mod 2 Test

Mod 2 Test

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Scott Freeman

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

y = 2 + 3 * 5.

print(Y)

error

25.

17

17.0

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code if the user enters two lines containing 2 and 4 respectively?

x = input()

y= input()

print (x +y)

2

24

4

6

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The 0o prefix means that the numbers after it is denoted as:

binary

decimal

hexadecimal

octal

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The print() function can outpur values of:

just one argument

not more than five arguments

any number of arguments (excluding zero)

any number of arguments (including zero)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The meaning of the keyword parameter is determined by:

Its positions within the argument list

its value

the argument's name specified along with its value

its connection with existing variables

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following variable names are illegal?

select two

True

true

TRUE

and

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following snippet (code) if the user enters two lines containing 2 and 4 respectively?

x = int(input())

y = int(input())

x = x//y

y= y//x

print(y)

4.0

error

2.0

8.0

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?