Python Programming 1: print, strings, variables, casting

Python Programming 1: print, strings, variables, casting

9th Grade

15 Qs

quiz-placeholder

Similar activities

Python

Python

3rd - 10th Grade

10 Qs

Начала программирования на языке Паскаль

Начала программирования на языке Паскаль

8th - 11th Grade

15 Qs

Python Year 9 Quiz

Python Year 9 Quiz

8th - 10th Grade

19 Qs

Keyboard Quiz

Keyboard Quiz

9th Grade

20 Qs

Word Processing Lessons 3 and 4 Review

Word Processing Lessons 3 and 4 Review

KG - University

20 Qs

Python Testing

Python Testing

9th - 12th Grade

10 Qs

Ôn tập kỳ 2 tin 6

Ôn tập kỳ 2 tin 6

1st - 12th Grade

15 Qs

Python Programming 1: print, strings, variables, casting

Python Programming 1: print, strings, variables, casting

Assessment

Quiz

Computers

9th Grade

Practice Problem

Medium

Created by

Ezra Teh

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the correct file extension for Python files?

.py

.pt

.python

.pyt

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

True or False: Indentation in Python is for readability only.

True

False

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a correct way to declare a Python variable?

int x = 5

x = 5

5 = x

declare x = 5

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which is NOT a legal variable name in Python?

my_var

myVar

2myvar

my_var2

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

True or False: Variable names are not case-sensitive in Python.

True

False

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Consider the following code: print('Hello', 'World'). What will be the printed result?

HelloWorld

Hello,World

Hello World

'Hello' 'World'

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which is NOT a legal numeric data type in Python?

int

float

double

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?