Python-Basic

Python-Basic

3rd Grade - University

15 Qs

quiz-placeholder

Similar activities

Python Print Statement

Python Print Statement

6th - 10th Grade

12 Qs

Basic Python Programming_Class VIII

Basic Python Programming_Class VIII

8th Grade

10 Qs

Python Basics Quiz

Python Basics Quiz

9th - 12th Grade

15 Qs

Python Basic 1

Python Basic 1

12th Grade

20 Qs

Python basics

Python basics

9th - 12th Grade

16 Qs

Python  beginners quiz

Python beginners quiz

9th - 10th Grade

10 Qs

Python KS3

Python KS3

8th Grade

17 Qs

Introduction to Python

Introduction to Python

9th Grade

10 Qs

Python-Basic

Python-Basic

Assessment

Quiz

Computers

3rd Grade - University

Hard

CCSS
L.2.2C

Standards-aligned

Created by

Yasir Jafri

Used 1K+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would be printed by the command

print('12-5')

12-5

'12-5'

7

'7'

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the operators do we use if we want at least one condition to be true?

and

or

else

not

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output be from the following code?
print(Hello world!)
Hello world!
SyntaxError
Hello world
print(Hello world!)

Tags

CCSS.L.2.2C

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following statement?

type('5')

str

int

float

Boolean

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is NOT a legal variable name?

my_var

myvar

_myvar

my-var

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct file extension for Python files?

.py

.pt

.pyt

.pyth

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a variable with the numeric value 5?

Both are correct

x=5

x=int(5)

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?