PCAP Module 4 Review

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Dr Sonia Mitchell
Used 15+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the expected output of the following code?
2019/11/27 11:27:22
19/November/27 11:27:22
2019/Nov/27 11:27:22
none of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the code: Which snippet would you insert in order for the program to output the following result (tuple):
(1, 4, 27)
foo = list(map (lambda x: x*x, my_list))
foo = tuple(map (lambda x: x*x, my_list))
foo = tuple(map(lambda x: x**x, my_list))
none of the answers
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the code: which snippet would you insert in order for the program to output the following result (list):
[2, 3, 4, 5, 6]
foo = list (filter (lambda x: x-0 and x-1, my_tuple))
foo = list (filter (lambda x: x==0 and x==1, my_tuple))
foo = tuple (filter (lambda x: x-0 and x-1, my_tuple))
none of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What key word would you use to define an anonymous function?
afun
def
yield
lambda
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the expected output of the following code?
[ ]
[ 'large' , 'small', 'medium', ]
[ '.', 'large' , 'small', 'medium', ]
none of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which program will produce the following output?
import calendar
print (calendar.weejheader (3))
import calendar
print (calendar.weekheader ())
import calendar
print (calendar.weekheader (2))
none of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the expected result of executing the following code?
It will print an empty line
It will print ace
It will print bdf
It will print abcdef
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Tutorial 5 Quiz

Quiz
•
University
15 questions
Python Variables

Quiz
•
University
16 questions
PAP Module-3 Part-2

Quiz
•
University
15 questions
Python Revision Tour - I

Quiz
•
12th Grade
10 questions
Python lists and tuples

Quiz
•
12th Grade
10 questions
TIU Quiz-9

Quiz
•
University
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
16 questions
Program Development - Python: Code Basics 1

Quiz
•
8th - 10th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade