PYTHON - 14.07.2023

Quiz
•
Computers
•
University
•
Hard
N.ILAYARAJA IT
Used 3+ times
FREE Resource
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code snippet do?
my_list = [1, 2, 3, 4, 5]
result = [num for num in my_list if num % 2 == 0]
Doubles each element in my_list
.
Filters out even numbers from my_list
.
Filters out odd numbers from my_list
.
Reverses the order of elements in my_list
.
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following are true of Python lists
A given object may appear in a list more than once
There is no conceptual limit to the size of a list
These represent the same list:
['a', 'b', 'c']
['c', 'a', 'b']
All elements in a list must be of the same type
A list may contain any type of object except another list
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a keyword?
Reserved Word
Predefined Word
Keywords are part of the syntax and they cannot be used as an identifier.
All of them
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def m(list):
v = list[0]
for e in list:
if v < e: v = e
return v
values = [[3, 4, 5, 1], [33, 6, 1, 2]]
for row in values:
print(m(row), end = " ")
3 33
1 1
5 6
5 33
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the arithmetic operator which is used to calculate exponential.
*
%
!
**
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output for − min(''hello world'')
e
a blank space character
w
none
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
print(type(3.14))
int
float
str
bool
Create a free account and access millions of resources
Similar Resources on Wayground
27 questions
python basic

Quiz
•
University
20 questions
TEST FINAL - Introducción a las TI

Quiz
•
University
20 questions
Day 10 - ONLINE TEST - PL03 PYTHON PROGRAMMING

Quiz
•
University
20 questions
kuis pertama

Quiz
•
University
20 questions
Week 6 Quiz

Quiz
•
University
20 questions
Python Functions and File Operations Quiz

Quiz
•
University
21 questions
COMP1010 Week 4 Quiz - Edit to streamline!

Quiz
•
University
19 questions
Computer Science Quiz 02

Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University