Search Header Logo

Python-Basic

Authored by Yasir Jafri

Computers

3rd Grade - University

CCSS covered

Used 1K+ times

Python-Basic
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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)

Access all questions and much more by creating a free account

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?