ECE B_Python Class Test_QA

ECE B_Python Class Test_QA

25 Qs

quiz-placeholder

Similar activities

Spanish Midterm Pre-test

Spanish Midterm Pre-test

12th Grade - University

24 Qs

Pengaruh Kemajuan Iptek terhadap NKRI

Pengaruh Kemajuan Iptek terhadap NKRI

9th - 12th Grade

25 Qs

1ere - Overseas

1ere - Overseas

12th Grade

20 Qs

Tagisan ng Talino-Katangiang Pisikal ng Asya

Tagisan ng Talino-Katangiang Pisikal ng Asya

KG - University

20 Qs

Pubertas

Pubertas

6th Grade

20 Qs

Ôn tập kiến thức tiền gửi

Ôn tập kiến thức tiền gửi

KG - University

21 Qs

4th Grade Science: Chapter 6

4th Grade Science: Chapter 6

KG - University

23 Qs

ECE B_Python Class Test_QA

ECE B_Python Class Test_QA

Assessment

Quiz

others

Practice Problem

Medium

Created by

Mrs.P.Malin 1588

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code snippet? print(2**3 + (5 + 6)**(1 + 1))

129

8

121

None of the above.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the datatype of the var in the below code snippet?

var = 10;

print(type(var));

var = "Hello";

print(type(var))

str and int

int and int

str and str

int and str

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How is a code block indicated in Python?

Brackets.
Indentation.
Key.
None of the above.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code snippet?

a = 3;

b = 1;

print(a, b);

a, b = b, a;

print(a, b);

3 1 1 3

3 1 3 1

1 3 1 3

1 3 3 1

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following types of loops are not supported in Python?

for
while
do-while
None of the above

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code snippet?

s = {1, 2, 3, 3, 2, 4, 5, 5};

print(s);

{1,2,3,3,2,4,5,5}

{1,2,3,4,5}

None

{1,5}

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following are valid string manipulation functions in Python?

count()
upper()
strip()
All of the above

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?