Basic Python and Console Interaction Quiz

Basic Python and Console Interaction Quiz

11th Grade

20 Qs

quiz-placeholder

Similar activities

Scratch Pre-knowledge

Scratch Pre-knowledge

3rd Grade - University

15 Qs

ICT Quiz 1

ICT Quiz 1

9th - 12th Grade

20 Qs

Première quiz 1

Première quiz 1

11th Grade

20 Qs

Тест по основам Python(intro1)

Тест по основам Python(intro1)

9th - 12th Grade

20 Qs

WJEC ICT - Chapter 2 - The Internet

WJEC ICT - Chapter 2 - The Internet

10th Grade - University

17 Qs

XML dan Java

XML dan Java

11th Grade

15 Qs

Финал ЛШ по информатике - квиз | Розыгрыш доступа

Финал ЛШ по информатике - квиз | Розыгрыш доступа

11th Grade

19 Qs

Understanding Loops in C Programming

Understanding Loops in C Programming

1st Grade - University

15 Qs

Basic Python and Console Interaction Quiz

Basic Python and Console Interaction Quiz

Assessment

Quiz

Information Technology (IT)

11th Grade

Practice Problem

Hard

Created by

Tarra Jackson

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the final result of the expression 4 + 5 * 3?

27

12

21

19

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the final result of the expression 7 / 2 + 6?

0

9.5

9

0.875

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 "Isabella".

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?

ans = "hi" * 8

ans = "hi" + 9

ans = "hi" + "hi" + "hi"

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

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following program print? a = "hi" b = 4 c = a * b print(type(c))

<class 'str'>

<class 'int'>

<class 'float'>

The program crashes and doesn’t print anything.

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

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

x = "codehs"

print(int(x))

num = 8

print("num")

name = "Alyx"

age = 32

print(name + " is " + age)

language = "Python"

print("I'm learning " + language)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What kind of data does a float variable contain?

Whole numbers

Words

Numbers that can have decimal components

A float is not a Python variable type

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?