ECE B_Python Class Test_QA

ECE B_Python Class Test_QA

25 Qs

quiz-placeholder

Similar activities

2. LAT_SAS AL-QUR AN

2. LAT_SAS AL-QUR AN

KG - University

30 Qs

2024/4/26(金)_第6回_1年シス単BT【151〜180】

2024/4/26(金)_第6回_1年シス単BT【151〜180】

KG - University

20 Qs

PENILAIAN HARIAN T2ST2

PENILAIAN HARIAN T2ST2

KG - University

25 Qs

Physical Science_Energy

Physical Science_Energy

KG - University

28 Qs

Bloque 5 PLACA BASE

Bloque 5 PLACA BASE

KG - University

30 Qs

 Surface Treatment

Surface Treatment

5th Grade - University

30 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?