QUIZADER

QUIZADER

University

10 Qs

quiz-placeholder

Similar activities

KNOWLEDGE GAME

KNOWLEDGE GAME

University

11 Qs

Programming practices - C programming

Programming practices - C programming

University

9 Qs

Python Session 6

Python Session 6

5th Grade - University

10 Qs

Lý thuyết về Python

Lý thuyết về Python

3rd Grade - University

10 Qs

PSPD

PSPD

University

11 Qs

Python armenia

Python armenia

1st Grade - University

10 Qs

Prueba teórica Programación Lógica y Funcional

Prueba teórica Programación Lógica y Funcional

University

10 Qs

Python Basics

Python Basics

University

11 Qs

QUIZADER

QUIZADER

Assessment

Quiz

Other

University

Hard

Created by

MEGHNA NAIR

Used 6+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a = 4.5

b = 2

print (a//b)

2

2.0

2.2

none of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a = true

b = false

c = false

if a or b and c:

print ("QUIZADER")

else:

print ("quizader")

QUIZADER

quizader

quizaderQUIZADER

none of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

result=0

def find_sum(num1,num2):

if(num1!=num2):

result=num1+num2

else:

result=2*(num1+num2)

find_sum(3,4)

print(result)

find_sum(5,5)

print(result)

7

20

14

10

0

0

error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

L1 = []

L1.append([1, [2, 3], 4])

L1.extend([7, 8, 9])

print(L1[0][1][1] + L1[2])

38

12

11

39

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Predict the output


def find_avg(list_num):

result_sum=0

for num in list_num:

result_sum+=num

result_avg=result_sum/len(list_sum)

find_avg([5,8,5])

print(result_avg)

18

10

5

6

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Predict the output:


List = [True, 50, 10]

List.insert(2, 5)

print(List, "Sum is: ", sum(List))

[True, 50, 10, 5] Sum is: 66

[True, 50, 5, 10] Sum is: 66

[True, 50, 5, 10] Sum is: 65

TypeError: unsupported operand type(s) for +: ‘int’ and ‘str’

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Write the command to create an empty list named 'new_list'

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?