ECE B_Python Class Test_QA

ECE B_Python Class Test_QA

25 Qs

quiz-placeholder

Similar activities

Microsoft Excel - Spero

Microsoft Excel - Spero

KG - University

30 Qs

LEY  EDUCATIVA 070

LEY EDUCATIVA 070

KG - University

20 Qs

MFM2P 7.1 - 7.4 REVIEW

MFM2P 7.1 - 7.4 REVIEW

KG - University

20 Qs

SP WB 1

SP WB 1

11th Grade

20 Qs

Professional Educator 4E Chapter 13 Quiz Game

Professional Educator 4E Chapter 13 Quiz Game

KG - University

25 Qs

UNIDAD 4 EL MARKETING

UNIDAD 4 EL MARKETING

KG - University

26 Qs

ULANGAN HARIAN TEMA 3

ULANGAN HARIAN TEMA 3

KG - University

27 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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?