ECE B_Python Class Test_QA

ECE B_Python Class Test_QA

25 Qs

quiz-placeholder

Similar activities

Python Programming Concepts Quiz

Python Programming Concepts Quiz

KG - University

20 Qs

PHP MCQ 1 (kahoot)

PHP MCQ 1 (kahoot)

KG - University

25 Qs

Quiz on IBM Selectric 2

Quiz on IBM Selectric 2

University

29 Qs

kiểm tra 15 phút k8-for loop

kiểm tra 15 phút k8-for loop

9th Grade

23 Qs

Поняття мови програмування. Python.

Поняття мови програмування. Python.

KG - University

20 Qs

ML 1 Python

ML 1 Python

University

20 Qs

Loop in python

Loop in python

KG - University

20 Qs

ECE B_Python Class Test_QA

ECE B_Python Class Test_QA

Assessment

Quiz

others

Medium

Created by

Mrs.P.Malin 1588

Used 1+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?