Program Function and Purpose

Program Function and Purpose

11th - 12th Grade

6 Qs

quiz-placeholder

Similar activities

AP CSP Chapter 4

AP CSP Chapter 4

9th - 12th Grade

10 Qs

PDA Software I&T - Constructs Required

PDA Software I&T - Constructs Required

12th Grade

10 Qs

AP Computer Science Principles Unit 4 Review

AP Computer Science Principles Unit 4 Review

9th - 12th Grade

8 Qs

Data

Data

9th Grade - University

11 Qs

Chapter 13 Review April 8

Chapter 13 Review April 8

11th Grade - University

10 Qs

CSP-Selection and Iteration

CSP-Selection and Iteration

9th - 12th Grade

10 Qs

Comp Sci Unit 3 #9

Comp Sci Unit 3 #9

11th Grade

10 Qs

Pseudocode APCSP

Pseudocode APCSP

10th - 12th Grade

8 Qs

Program Function and Purpose

Program Function and Purpose

Assessment

Quiz

Computers

11th - 12th Grade

Hard

Created by

Ms Seccafico

Used 170+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

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

Media Image

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

Media Image

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