
CSC108 Week 2 Prepare Review

Quiz
•
Computers
•
University
•
Hard
Rain Sharmin
Used 18+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Why should we create our own functions? Choose ALL that apply.
Improves reusability: Makes it easier to reuse the same chunk of code with different values
Reduces repetition: Reduces the amount of repeated code in our program
Improves the readability and organization of our code
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the call f(3) return?
3
6
9
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many parameters can a function have?
0 or more
1 or more
Exactly 1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What do we call the value that is passed into a function within a function call?
Parameter
Argument
Both of the above
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Let's say I typed this into the Python shell. What will show up as the result after I press enter?
x ** 2
f(x)
Some integer value
None of the above
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What are the bugs in this code (a bug is something that will make the code give an error or produce incorrect/unexpected result)?
There are no issues. The code is fine.
The function body is not indented.
We can not be using x as both a parameter and a variable
More than one of these options are correct
Similar Resources on Wayground
10 questions
Structure in C

Quiz
•
University
10 questions
Flutter Test 1

Quiz
•
University
10 questions
S02 - Deep Learning

Quiz
•
University
10 questions
Module 09 - Day 3

Quiz
•
University
10 questions
Weekly Contest #8 - TechXNinjas

Quiz
•
University
10 questions
Launchpad programming - day 3 morning (JS)

Quiz
•
University
10 questions
Python - Functions

Quiz
•
University
10 questions
Rapid Round 1

Quiz
•
University
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade