Python Programming 1: print, strings, variables, casting

Python Programming 1: print, strings, variables, casting

9th Grade

15 Qs

quiz-placeholder

Similar activities

Python Iteration

Python Iteration

10th Grade

17 Qs

Python Unit 6 Sequences Quiz

Python Unit 6 Sequences Quiz

9th - 12th Grade

20 Qs

Data Science (Quiz in Python)

Data Science (Quiz in Python)

11th Grade

20 Qs

String Manipulation 2

String Manipulation 2

10th Grade

17 Qs

Progamação

Progamação

10th Grade - Professional Development

10 Qs

Python function output based KVRDSO lucknow

Python function output based KVRDSO lucknow

11th - 12th Grade

11 Qs

Python String

Python String

12th Grade

20 Qs

Python Variables

Python Variables

7th - 12th Grade

10 Qs

Python Programming 1: print, strings, variables, casting

Python Programming 1: print, strings, variables, casting

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Ezra Teh

Used 2+ times

FREE Resource

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

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?