
PROGRAMMING 1 FUNCTION CHALLENGE Period 3-1
Authored by MANAL FAWAZ
Computers
10th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
If the input for the below equation is ‘Bob’, what will be the output?
Bob * 3
Cannot multiply a string
BobBobBob
Error: ‘x’ is not defined
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What does the below program print?
8
4
-32
Error
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
def say_hi( first_name=“Mary” , last_name):
-->print(“hi “ + first_name + “ ” + last_name)
say_hi(“Rebecca” , “Rogers”)
Why will the following program not print?
The name Rebecca doesn’t match the name Mary
The first_name and last_name is not properly defined
There is no default argument after the first default argument
There is a missing quotation
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The except part of the function doesn’t return the statement
True is not defined
There are too many parentheses
The “if” statement should have greater than and an equal sign
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Why do programmers use try and except statements when their code might throw an exception?
So that the programmer can disregard the exception and do what they want within the code
In python it is a requirement to use try and except statements when their code might throw an exceptions
Top print out a proper error statement for the user
Exceptions are used when there are try and except statements.
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What are exceptions used for?
To state that something has gone wrong in the code
To tell the user that the data they gave isn't suitable for the code, (the code asked for an integer and they gave a string)
To allow the programmer to write and develop code that isnt sophisticated, but still run smoothly.
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
23
67
99
92
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
15 questions
Excel
Quiz
•
10th - 12th Grade
15 questions
tpr2_u0_initial test
Quiz
•
10th Grade
11 questions
Python Function
Quiz
•
11th - 12th Grade
15 questions
Cyber Security KS4
Quiz
•
8th - 12th Grade
15 questions
Linux-2 Quiz 2 -- LAMP
Quiz
•
1st - 12th Grade
11 questions
Youtube
Quiz
•
4th Grade - University
12 questions
Windows 10 Installation
Quiz
•
11th - 12th Grade
12 questions
Microsoft Office Word
Quiz
•
4th Grade - University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Elijah McCoy: Innovations and Impact in Black History
Interactive video
•
6th - 10th Grade