Python Programming 1: print, strings, variables, casting

Python Programming 1: print, strings, variables, casting

9th Grade

15 Qs

quiz-placeholder

Similar activities

Python Basics

Python Basics

KG - University

16 Qs

[Python for all] Quiz 3 - Strings

[Python for all] Quiz 3 - Strings

University

10 Qs

Python Basics

Python Basics

KG - University

15 Qs

Functions in Python

Functions in Python

9th - 12th Grade

16 Qs

Project-Stem Unit 1 python coding

Project-Stem Unit 1 python coding

9th - 12th Grade

12 Qs

Basics of programming - Quiz - 01

Basics of programming - Quiz - 01

University - Professional Development

20 Qs

Season 4 #Spaic Python Weekly Quiz

Season 4 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

Python Chapter

Python Chapter

9th - 12th Grade

20 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 1+ 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?