Phyton Basic Quiz

Phyton Basic Quiz

11th Grade

10 Qs

quiz-placeholder

Similar activities

Asesmen Diagnostik Sistem Komputer

Asesmen Diagnostik Sistem Komputer

10th Grade - University

10 Qs

Creating a document

Creating a document

1st Grade - Professional Development

9 Qs

Word basics

Word basics

8th - 12th Grade

10 Qs

básico de Code

básico de Code

10th - 12th Grade

14 Qs

python-BTxâu

python-BTxâu

9th - 12th Grade

10 Qs

Logic Gates

Logic Gates

9th - 12th Grade

10 Qs

conditional and iterative statements

conditional and iterative statements

11th Grade

10 Qs

Bermain Gambar

Bermain Gambar

1st Grade - Professional Development

15 Qs

   Phyton Basic Quiz

Phyton Basic Quiz

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

Nitika Chanana

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...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

var1 = 1

var2 = 2

var3 = "3"

print(var1 + var2 + var3)

6

33

123

Error. Mixing operators between numbers and strings are not supported

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

p, q, r = 10, 20 ,30

print(p, q, r)

10

20

10 20 30

Error: invalid syntax

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

valueOne = 5 ** 2

valueTwo = 5 ** 3

print(valueOne)

print(valueTwo)

10

15

25

125

55

555

Error: invalid syntax

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

for i in range(10, 15, 1):

print( i, end=', ')

10 11 12 13 14 15

10, 11, 12, 13, 14,

10, 11, 12, 13, 14,15,

10 11 12 13 14

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

var = "James" * 2 * 3

print(var)

JamesJamesJamesJamesJamesJames

JamesJamesJamesJamesJames

JamesJames

Error: invalid syntax

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following

x = 36 / 4 * (3 + 2) * 4 + 2

print(x)

182

37

117

The Program executed with errors

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

def calculate (num1, num2=4):

res = num1 * num2

print(res)

calculate(5, 6)

20

30

24

The program executed with errors

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?