Python Programming 1: print, strings, variables, casting

Python Programming 1: print, strings, variables, casting

9th Grade

15 Qs

quiz-placeholder

Similar activities

Mobile app development principles

Mobile app development principles

10th Grade

17 Qs

Post Test #4 - Python Fundamental #3

Post Test #4 - Python Fundamental #3

University

10 Qs

Security and Ethics

Security and Ethics

9th - 12th Grade

17 Qs

ロジックテスト (Đề kiểm tra năng lực IT)

ロジックテスト (Đề kiểm tra năng lực IT)

University

12 Qs

ICT Unit-2

ICT Unit-2

University

20 Qs

Coding Quiz

Coding Quiz

6th - 10th Grade

15 Qs

Kuis Pemrograman Dasar

Kuis Pemrograman Dasar

University

20 Qs

BÀI TẬP T7 - KHỞI ĐỘNG

BÀI TẬP T7 - KHỞI ĐỘNG

10th - 12th Grade

10 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?