Python Variables

Python Variables

7th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

REVIEW QUIZ

REVIEW QUIZ

7th Grade

15 Qs

مراجعة التدريبات العملية للوحدة الثالثة/أ : بدرية عقيلي

مراجعة التدريبات العملية للوحدة الثالثة/أ : بدرية عقيلي

1st - 10th Grade

10 Qs

SHORTCUT PADA KEYBOARD

SHORTCUT PADA KEYBOARD

10th - 12th Grade

10 Qs

Sumatif Harian 3

Sumatif Harian 3

7th Grade

12 Qs

latihan

latihan

9th Grade

10 Qs

IT- Revision

IT- Revision

9th Grade

10 Qs

Layouting

Layouting

7th Grade

10 Qs

OCR GCSE CS - 2.1 ERL sorts and searches

OCR GCSE CS - 2.1 ERL sorts and searches

10th - 11th Grade

9 Qs

Python Variables

Python Variables

Assessment

Quiz

Computers

7th - 12th Grade

Practice Problem

Hard

Created by

Janelle Yearwood

Used 91+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of data is the following?: X = "195.67"

Float

String

Boolean

integer

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of variable is the following?: Y = False

Float

String

Integer

Boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following Python program print?

X = "Hello World!"

Y = "I can code "

Z = " In Python"

print( X + Y + Z)

Hello World! I can code In Python

Hello World!I can code In Python

Hello World! I can codeIn Python

Hello World!I can code In Python

Answer explanation

There is a space after the word "code" and before the word "In".

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Variables have three things:

Numeric, string, Boolean

Integer, float, string

name, type, value

function, value, name

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When you want to print something to the screen you should use

The keyboard to type it

The computer Display

A monitor

a print statement

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print("Python " * 3); will print out what

Python 3 Python 3 Python 3

Python Python Python

PythonPythonPython

Python*3 Python*3 Python*3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one to the following Python programs will not run?

num = 4

greeting = "Hello"

print(num + greeting)

grade = 98.7

letterGrade = "A+"

print(str(grade) + letterGrade

studentNum =80

print("studentNum")

print("Hello World!")

Answer explanation

You cannot concatenate a string and an integer. the integer must be converted to a string.

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?