CSP CMU Unit 2 - Student Created Questions

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Kathleen Grace
Used 12+ times
FREE Resource
62 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What do you call the inputs of a fuction while defining it?
Arguments
Function call
Parameters
Label
Answer explanation
In function definitions, the inputs are referred to as 'parameters'. They specify what values the function can accept when called. 'Arguments' are the actual values passed to the function when it is invoked.
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which AP Vocab term is defined as the inputed variables of a procedure?
Parameters
Arguments
Body
Calling
Answer explanation
The correct term is 'Parameters', which refers to the input variables defined in a procedure. 'Arguments' are the actual values passed to these parameters when the procedure is called.
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
def drawOval(size, color):
Oval(200,300,size,size,fill=color)
In the code above what is the function name?
drawOval
(size,color)
def
(200,300,size,size,fill=color)
Answer explanation
The function name in the code is 'drawOval', which is defined by the keyword 'def' followed by the name. The other options do not represent the function name.
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How do you run a function named foo with no parameters in python?
foo()
foo(a)
foo(a,b)
foo
Answer explanation
To run a function named foo with no parameters in Python, you simply call it using foo(). The other options either include parameters or do not invoke the function.
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Why should your parameter names be concise and descriptive?
So that you and others who review your code can understand what it does
for fun
because it is the law
python will give you an error if you do not.
Answer explanation
Concise and descriptive parameter names enhance code readability, making it easier for you and others to understand the code's purpose and functionality. This clarity is essential for effective collaboration and maintenance.
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What is a function?
(select all correct answers)
A function is a named group of programming instructions that may have parameters and return values
A function is input variables of a procedure
A function groups together a sequence of statements that we can run when we want
Functions specify the values of the parameters when a procedure is called
Answer explanation
A function is indeed a named group of programming instructions that can take parameters and return values. It also groups statements to be executed when needed, making these two options correct.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does a function do?
A. Explains the information inside the parenthesis when coding a shape.
B. Groups together a sequence of statements that can run on command
C. Acts as the pseudocode to make it easier to identify errors in the code
Answer explanation
A function groups together a sequence of statements that can be executed when called, making it easier to organize and reuse code. This is why choice B is correct.
Create a free account and access millions of resources
Similar Resources on Wayground
63 questions
AQA Computer Science [AS Level]

Quiz
•
12th Grade
63 questions
Latihan Soal Informatika Kelas X

Quiz
•
10th Grade
60 questions
3rd Quarter Exam in JAVA 4 (Computer Programming)

Quiz
•
12th Grade
65 questions
Python Programming Quiz

Quiz
•
11th Grade
63 questions
Computer Hardware and Software - Term Test

Quiz
•
9th Grade
57 questions
Input and Output Devices Quiz

Quiz
•
10th Grade
60 questions
2016-জুলাই-সেপ্টেম্বর-76-কম্পিউটার অফিস অ্যাপ্লিকেশন

Quiz
•
10th - 12th Grade
66 questions
tin giữa kỳ 2

Quiz
•
10th Grade
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
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade