Python Programming 1: print, strings, variables, casting

Python Programming 1: print, strings, variables, casting

9th Grade

15 Qs

quiz-placeholder

Similar activities

CS100||MsWord

CS100||MsWord

University

10 Qs

Numpy-1

Numpy-1

9th - 12th Grade

10 Qs

Test on Python Function

Test on Python Function

11th - 12th Grade

12 Qs

Trắc nghiệm bài 12 tin học 11

Trắc nghiệm bài 12 tin học 11

11th Grade

10 Qs

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

Word 2016 Lesson 1

Word 2016 Lesson 1

9th - 12th Grade

10 Qs

Clase de Computación: Excel

Clase de Computación: Excel

11th Grade

12 Qs

Pengenalan Aplikasi Blender

Pengenalan Aplikasi Blender

11th Grade

13 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

Create a free account and access millions of resources

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?