Practice Quiz #1 AND Practice Quiz #2

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Which of the following Boolean expressions are equivalent to the expression num>15? Select two answers.

(num > 15) or (num = 15)

The upgraded system uses a directory containing additional information not supplied by the customer. The directory is used to help direct calls effectively. Which of the following is LEAST likely to be included in the directory?

A list of computers the company owns and the computers' corresponding IP addresses

If the variables onTime and absent both have the value false, what is displayed as a result of running the code segment?

Better late than never.

Byte pair encoding is a data encoding technique. The encoding algorithm looks for pairs of characters that appear in the string more than once and replaces each instance of that pair with a corresponding character that does not appear in the string. The algorithm saves a list containing the mapping of character pairs to their corresponding replacement characters. -For example, the string "THIS_IS_THE_BEST_WISH" can be encoded as "%#_#_%E_BEST_W#H" by replacing all instances of "TH" with "%" and replacing all instances of with "H". Which of the following statements about byte pair encoding is true?

Byte pair encoding is an example of a lossless transformation because an encoded string can be restored to its original version.

A company that develops educational software wants to assemble a collaborative team of developers from a variety of professional and cultural backgrounds. Which of the following is NOT considered a benefit of assembling such a team?

Collaboration that includes diverse backgrounds and perspectives can eliminate the need for software testing.

A team of researchers wants to create a program to analyze the amount of pollution reported in roughly 3,000 counties across the United States. The program is intended to combine county data sets and then process the data. Which of the following is most likely to be a challenge in creating the program?

Different counties may organize data in different ways.

Three students in different locations are collaborating on the development of an application. Which of the following strategies is LEAST likely to facilitate collaboration among the students?

Having all three students write code independently and then having one student combine the code into a program.

Which of the following is a true statement about program documentation?

Program documentation is useful during initial program development and also when modifications are made to existing programs.

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 5 a total of three times.

Which of the following replacements for can be used to move the robot to the gray square?

A IF (CAN_MOVE (right)) { ROTATE_RIGHT () } MOVE_FOWARD ()

-The day and date each movie was purchased -The title of each movie purchased -The cities where subscribers purchased each movie -The number of times each movie was purchased by subscribers in a given city -A sample portion of the database is shown below. The database is sorted by date and movie title. Which of the following CANNOT be determined using only the information in the database?

B The number of movies purchased by an individual subscriber for a particular month

The teacher has data representing the scores of thousands of students. For each student, the data contain the student name, the midterm exam score, the final exam score, and the result of the total points calculation. Which of the following could be determined from the data? I. The average total points earned per student II. The average increase in total points per student as a result of the score replacement policy III. The proportion of students who improved their total points as a result of the score replacement policy

D I, II, and III

Which of the following actions are generally helpful in program development? I.Consulting potential users of the program to identify their concerns II.Writing and testing small code segments before adding them to the program III.Collaborating with other individuals when developing a large program

D I, II, and III

Which of the following is the most appropriate documentation to appear with the calculate procedure?

Displays the value of (x + y) / x.The value of the parameter x must not be 0.

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

To direct a call to the appropriate destination, which of the following input data is needed by the upgraded system that was NOT needed by the original system? I. Audio signal of the customer's voice II. The customer's keypad selection III. The customer's phone number

I only

Which of the following are true statements about the simulation? -The simulation continues until either 24 hours pass or the population reaches 0. -The simulation displays the average change in population per hour over the course of the simulation. -The simulation displays the total population at the end of the simulation.

I only

In a certain game, the integer variable bonus is assigned a value based on the value of the integer variable score. -If score is greater than 100, bonus is assigned a value that is 10 times score. -If score is between 50 and 100 inclusive, bonus is assigned the value of score. -If score is less than 50, bonus is assigned a value of 0. Which of the following code segments assigns bonus correctly for all possible integer values of score ? Select two answers.

IF(score > 100) { bonus ←← score * 10 } ELSE { IF(score ≥ 50) { bonus ←← score } ELSE { bonus ←← 0 } } AND IF(score < 50) { bonus ←← 0 } ELSE { IF(score > 100) { bonus ←← score * 10 } ELSE { bonus ←← score } }

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

III only

Which of the following statements is equivalent to the algorithm in the flowchart?

Include <-- (floor>10) or (bedrooms = 3)

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 true if x is negative and displays nothing otherwise.

Directions: The question or incomplete statement below is followed by four suggested answers or completions. Select the one that is best in each case. Which of the following best describes one of the benefits of using an iterative and incremental process of program development?

It helps programmers identify errors as components are added to a working program.

Which of the following best describes one of the benefits of using an iterative and incremental process of program development?

It helps programmers identify errors as components are added to a working program.

Which of the following best describes the result of running the program code?

Nothing is displayed; the program results in an infinite loop.

Participants in a survey were asked how many hours per day they spend reading, how many hours per day they spend using a smartphone, and whether or not they would be interested in a smartphone application that lets users share book reviews. The data from the survey are represented in the graph below. Each represents a survey participant who said he or she was interested in the application, and each represents a participant who said he or she was not interested. Which of the following hypotheses is most consistent with the data in the graph?

Participants who read more were generally more likely to say they are interested in the application.

The researcher also has access to another database with the following information about each student. -First name -Last name -Number of absences from school -Number of late arrivals to school Upon compiling the data, the researcher identifies a problem due to the fact that neither data source uses a unique ID number for each student. Which of the following best describes the problem caused by the lack of unique ID numbers?

Students who have the same name may be confused with each other.

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 cost of a food item currently available for order

If the inputs A and C are both true, which of the following best describes the output of the AND gate?

The output will be true no matter what the value of input B is.

A company that develops mobile applications wants to involve users in the software development process. Which of the following best explains the benefit in having users participate?

Users can provide feedback that can be used to incorporate a variety of perspectives into the software.


संबंधित स्टडी सेट्स

COMBO BLAW 2 ALL STUDY THE TRUE ONES

View Set

NR 206 Analyzing Data to Make Accurate Clinical Judgments

View Set

Intro. to Java Programming, Ninth Edition - Ch.4

View Set