
set - 13

Quiz
•
Computers
•
University
•
Hard
Viswas MCV
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximum length of a Python identifier?
32
16
128
No fixed Length
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is a code block indicated in Python?
Brackets
Indentation
Key
None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
def solve(a, b):
return b if a == 0 else solve(b % a, a)
print(solve(20, 50))
10
20
50
1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the proper syntax to check if a particular element is present in a list?
if ele in list
if not ele not in list
Both A and B
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the values of the following Python expressions?
2**(3**2)
(2**3)**2
2**3**2
512, 64, 512
512, 512, 512
64, 512, 64
64, 64, 64
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
print("abc. DEF".capitalize())
Abc. def
abc. def
Abc. Def
ABC. DEF
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of ‘result’ in following Python program?
list1 = [1,2,3,4]
list2 = [2,4,5,6]
list3 = [2,6,7,8]
result = list()
result.extend(i for i in list1 if i not in (list2+list3) and i not in result)
result.extend(i for i in list2 if i not in (list1+list3) and i not in result)
result.extend(i for i in list3 if i not in (list1+list2) and i not in result)
[1, 3, 5, 7, 8]
[1, 7, 8]
[1, 2, 4, 7, 8]
error
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
TIU Quiz-9

Quiz
•
University
10 questions
Q4 - Comp Vision

Quiz
•
University
15 questions
Python Quiz

Quiz
•
University
10 questions
Python Yazılım Dilleri Soruları

Quiz
•
University
10 questions
Python Round 2

Quiz
•
University
15 questions
Functions in Python

Quiz
•
University
10 questions
Machine Learning and Python.

Quiz
•
University
15 questions
Python Programming - Introduction

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University