Python Programming Quiz - 2

Python Programming Quiz - 2

12th Grade

15 Qs

quiz-placeholder

Similar activities

TEST-1

TEST-1

9th - 12th Grade

10 Qs

Lesson 1: VEX IQ Sensors

Lesson 1: VEX IQ Sensors

7th Grade - University

14 Qs

CNC Basics 2

CNC Basics 2

9th - 12th Grade

10 Qs

Penguat Daya OCL 150W

Penguat Daya OCL 150W

12th Grade

20 Qs

Quiz de Robótica com Arduino

Quiz de Robótica com Arduino

12th Grade

16 Qs

Feedback Control Systems Quiz

Feedback Control Systems Quiz

12th Grade

14 Qs

Robotics Day 5

Robotics Day 5

8th Grade - University

15 Qs

Lesson 6 System Terminology and Concepts

Lesson 6 System Terminology and Concepts

12th Grade - University

15 Qs

Python Programming Quiz - 2

Python Programming Quiz - 2

Assessment

Quiz

Engineering

12th Grade

Practice Problem

Hard

Created by

Krishnesh G P

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

30 sec • 1 pt

Which of the following is a correct variable declaration in Python?

int x = 5

var x = 5

x = 5

declare x = 5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is returned by the expression 3 + 2.5 in Python?

Integer

Float

String

Boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for exponentiation in Python?

^

**

%

//

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a mutable data type in Python?

String

Tuple

List

Integer

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? python Copy code a = 10 b = 20 a, b = b, a print(a, b)

10 10

10 20

20 10

20 20

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to create a conditional statement in Python?

if

for

while

switch

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? python Copy code x = 5 if x > 2: print("A") elif x > 4: print("B") else: print("C")

A

B

C

No output

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?