Unit 3: Basic Python & Console Interaction

Unit 3: Basic Python & Console Interaction

9th - 12th Grade

21 Qs

quiz-placeholder

Similar activities

Kiểm Tra Môn Tin Học 10

Kiểm Tra Môn Tin Học 10

10th Grade - University

17 Qs

Desenvolvimento sis 2tri

Desenvolvimento sis 2tri

12th Grade - University

20 Qs

Programming Foundations Practice Quiz

Programming Foundations Practice Quiz

11th Grade

20 Qs

Python Coding Fundamentals

Python Coding Fundamentals

9th Grade

18 Qs

кэгэ информатика

кэгэ информатика

11th Grade

19 Qs

Simulasi Pra  Ujian SMT 1 Py

Simulasi Pra Ujian SMT 1 Py

10th Grade

20 Qs

quiz1B1

quiz1B1

7th Grade - University

20 Qs

Tes Formatif Python

Tes Formatif Python

11th Grade

20 Qs

Unit 3: Basic Python & Console Interaction

Unit 3: Basic Python & Console Interaction

Assessment

Quiz

Information Technology (IT)

9th - 12th Grade

Medium

Created by

Jennifer Brockman

Used 68+ times

FREE Resource

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the final result of the expression 10 + 4 * 5

50
20
30
14

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the final result of the expression 8 / 3 + 6

7.5
8.6667
10
5.3333

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the print statement below that will cause an error. Assume that num has the value 6, and name has the value George.

print(name + ":" )

print(num)

print(name + " wants " + "num " + "candies")

print(name + ": " + str(num))

print(name + ": " + num)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the statements below will cause an error?

y = "yes" * 6

y = "yes" + 10

y = "yes" + "yes"

y = ("a"*4)+"b"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following program print?

<class 'str'>

<class 'int'>

<class 'float'>

The program crashes & doesn't print anything.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose you have a variable defined num = "4". What is the variable type of num?

int

float

str

number

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the option that correctly prints out the variable(s).


Media Image
Media Image
Media Image
Media Image

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?