
CS 2nd Semester Mid-Term
Authored by Lawrence Smith
Computers
10th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 8 pts
What does Dot Notation do in programming?
Separates a reference variable from a method
Combines two methods
Initializes a variable
Updates a loop variable
2.
MULTIPLE CHOICE QUESTION
30 sec • 8 pts
Fill in the blank: A ______ is a group of statements that are grouped together to perform a task when called.
Method
Object
Instance
Loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 8 pts
What is a Reference Variable?
A variable that holds reference of an object
A method that performs a task
An instance of a class
A control structure.
4.
MULTIPLE CHOICE QUESTION
30 sec • 8 pts
What is a Loop in programming?
A) A control structure that allows you to repeat a block of code
B) A method that performs a task
C) A variable that holds reference of an object
D) An instance of a class.
5.
MULTIPLE CHOICE QUESTION
30 sec • 8 pts
Fill in the blank: ______ is the process of assigning a value to a variable before the loop executes.
A) Initialization
B) Iteration
C) Update
D) Condition
6.
MULTIPLE CHOICE QUESTION
30 sec • 8 pts
What is a Condition in programming?
A Boolean expression that is checked to determine whether or not the loop will execute
A group of statements
A control structure
An instance of a class
7.
MULTIPLE CHOICE QUESTION
30 sec • 8 pts
What does a 'Function' do in programming?
Returns a value
Does not return a value
Used inside classes
Passed to a function when called.
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 Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?