
PCEP-PREP QUIZ 2
Quiz
•
Computers
•
6th - 8th Grade
•
Medium
Magikid Chino Hills
Used 2+ times
FREE Resource
Enhance your content
11 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 2 pts
Which of the following are being used in this snippet of code?
Function Invocation
parameters
Return
Try and Catch
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the main difference between tuples and list?
tuples have [] and list have ()
Tuples have () and list have []
tuples can be change and list cannot be changed
tuples cannot be changed and list can be changed
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do dictionaries in python differ from list and tuples?
Dictionaries are a combination of list and tuples
Dictionaries can be modified and also be allowed to not modify
Dictionaries are like a hash table, where there are key-value pairs
Dictionaries have 2 list within to be able to access both at same time
4.
MULTIPLE SELECT QUESTION
45 sec • 2 pts
word = "Hello"
Which of the following will print 'll'?
print(word[2:3])
print(word[2:4])
print(word[-3:-1])
print(word['ll'])
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct snippet of code for the function 'find'?
The function 'find' should be given a letter to find and a word to search within.
if char in word:
return True
else:
return False
while True:
find char in word
return True/False
if word has char:
return False
else:
return True
Return True;
Return False;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line has an error?
19
21
23
18
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is a try and catch used in python?
It is like an if then else which shows our error if there is one and it does not
It is used to check if a snippet of code has an error and if it does it allows us to handle the error without terminating the program
it tries a snippet of code then it catches the value that it sends, similar as a return
It returns an error and terminates the program so we may identify what was the issue
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Kriptografi
Quiz
•
7th Grade
13 questions
Guess the Video Game Character 1
Quiz
•
KG - Professional Dev...
15 questions
HTML
Quiz
•
8th - 12th Grade
10 questions
Revision Quiz 2 - Information Technology
Quiz
•
7th - 8th Grade
10 questions
Parts of Arduino IDE
Quiz
•
8th Grade
12 questions
Scratch Interface
Quiz
•
6th - 8th Grade
10 questions
Storage Capacity Unit Conversion
Quiz
•
6th - 8th Grade
15 questions
2.GRADE STORY 5
Quiz
•
2nd Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
25 questions
Exploring POV and Unreliable Narrators
Quiz
•
7th Grade
18 questions
Company Logos
Quiz
•
6th - 8th Grade
20 questions
Typing Practice
Quiz
•
7th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro
Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage
Quiz
•
5th - 6th Grade