BASIC QUESTIONS ON PYTHON

BASIC QUESTIONS ON PYTHON

1st - 5th Grade

30 Qs

quiz-placeholder

Similar activities

The national flags of Eurpean Union countries

The national flags of Eurpean Union countries

1st - 9th Grade

28 Qs

PARTS OF THE HOUSE

PARTS OF THE HOUSE

1st - 8th Grade

25 Qs

Rocks and Minerals VD

Rocks and Minerals VD

5th Grade

25 Qs

Werkwoordspelling

Werkwoordspelling

1st - 2nd Grade

35 Qs

Quiz on Enviornmental studies class 4

Quiz on Enviornmental studies class 4

4th Grade

25 Qs

Find the odd one out

Find the odd one out

4th - 5th Grade

25 Qs

1.03 Recognizing and Responding to Emergencies

1.03 Recognizing and Responding to Emergencies

KG - Professional Development

25 Qs

Trial Game (Prize: CHOCOLATE!)

Trial Game (Prize: CHOCOLATE!)

1st - 3rd Grade

25 Qs

BASIC QUESTIONS ON PYTHON

BASIC QUESTIONS ON PYTHON

Assessment

Quiz

Other

1st - 5th Grade

Practice Problem

Medium

Created by

Robotic Schools

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid variable name in Python?

my variable

my_variable

123myvariable

MY_VARIABLE

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? print(2 + 2 * 3)

6

8

10

12

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you convert a string to an integer in Python?

str_to_int()

convert_to_int()

int()

parse_int()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types is mutable?

int

float

string

list

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to comment a single line in Python?

/* comment */

// comment

# comment

<!-- comment -->

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? print(3 > 2 and 4 > 5)

True

False

Error

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? print("Hello" + 5)

Hello5

Hello

5

Error

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?