
Program Function and Purpose

Quiz
•
Computers
•
11th - 12th Grade
•
Hard
Ms Seccafico
Used 170+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider the following code segment.
Which of the following best describes the behavior of the code segment?
The code segment displays the value of 2(5×3)
by initializing result to 2 and then multiplying result by 3 a total of five times.
The code segment displays the value of 2(5×3)
by initializing result to 2 and then multiplying result by 5 a total of three times.
The code segment displays the value of 2(5^3) by initializing result to 2 and then multiplying result by 3 a total of five times.
The code segment displays the value of 2(5^3) by initializing result to 2 and then multiplying result by 5 a total of three times.
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
In the following procedure, assume that the parameter x is an integer.
Which of the following best describes the behavior of the procedure?
It displays nothing if x is negative and displays true otherwise.
It displays nothing if x is negative and displays false otherwise.
It displays true if x is negative and displays nothing otherwise.
It displays true if x is negative and displays false otherwise.
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
DineOutHelper is a mobile application that people can use to select a restaurant for a group meal. Each user creates a profile with a unique username and a list of food allergies or dietary restrictions. Each user can then build a contact list of other users of the app.
A user who is organizing a meal with a group selects all the members of the group from the user’s contact list. The application then recommends one or more nearby restaurants based on whether the restaurant can accommodate all of the group members’ allergies and dietary restrictions.
Suppose that Alejandra is using DineOutHelper to organize a meal with Brandon and Cynthia.
Which of the following data are needed for DineOutHelper to recommend a restaurant for the group?
I. Each group member’s list of food allergies or dietary restrictions
II. Alejandra’s geographic location
III. The usernames of the people on Brandon and Cynthia’s contact lists
I and II only
I and III only
II and III only
I, II, and III
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Item 4DineOutHelper is a mobile application that people can use to select a restaurant for a group meal. Each user creates a profile with a unique username and a list of food allergies or dietary restrictions. Each user can then build a contact list of other users of the app.
A user who is organizing a meal with a group selects all the members of the group from the user’s contact list. The application then recommends one or more nearby restaurants based on whether the restaurant can accommodate all of the group members’ allergies and dietary restrictions.
Suppose that Alejandra is using DineOutHelper to organize a meal with Brandon and Cynthia.
Which of the following data is not provided by Alejandra but is necessary for DineOutHelper to recommend a restaurant for the group?
I. Brandon’s contact list
II. Information about which restaurants Brandon and Cynthia have visited in the past
III. Information about which food allergies and dietary restrictions can be accommodated at different restaurants near Alejandra
II only
III only
II and III only
I, II, and III
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A student wrote the following code segment, which displays true if the list myList contains any duplicate values and displays false otherwise.
The code segment compares pairs of list elements, setting containsDuplicates to true if any two elements are found to be equal in value. Which of the following best describes the behavior of how pairs of elements are compared?
The code segment iterates through myList, comparing each element to all other elements in the list.
The code segment iterates through myList, comparing each element to all subsequent elements in the list.
The code segment iterates through myList, comparing each element to the element that immediately follows it in the list.
The code segment iterates through myList, comparing each element to the element that immediately precedes it in the list.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A student is creating an application that allows customers to order food for delivery from a local restaurant. Which of the following is LEAST likely to be an input provided by a customer using the application?
The address where the order should be delivered
The cost of a food item currently available for order
The credit card or payment information for the purchaser
The name of a food item to be included in the delivery
Similar Resources on Wayground
8 questions
AP Computer Science Principles Unit 4 Review

Quiz
•
9th - 12th Grade
10 questions
Technical Terms - Internet (A-Z) - Media Queries

Quiz
•
12th Grade
10 questions
Emerging Trends

Quiz
•
11th - 12th Grade
9 questions
Lesson 9 Practice Problems

Quiz
•
9th Grade - University
9 questions
CodeHS HTML Review/Retake

Quiz
•
9th - 12th Grade
10 questions
CSP-Selection and Iteration

Quiz
•
9th - 12th Grade
10 questions
Comp Sci Unit 3 #9

Quiz
•
11th Grade
10 questions
PDA Software I&T - Constructs Required

Quiz
•
12th 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
20 questions
Digital Citizenship

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

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

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

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade