First Computer Science Principles Test

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

The coordinates for the center of the stage is __________________

0,0

The procedure Draw(length, direction) is used to draw a line segment units long in a given (left, right, up, or down), starting at the current cursor position. The cursor is then repositioned at the end of the line segment that was drawn. Consider the following program, where the cursor starts in the upper left corner of a grid of dots. The dots are spaced one unit apart. Which of the following represents the figure that is drawn by the program?

Backwards E with three dots

Electronic Data Recorders (EDR) are used in ___________________________.

Cars

In the expression below, the value reported by the list block is used as an input to the item block. Combining two reporters in this way is called ________________ of functions.

Composition

A ____________________ is a small text file stored on your local hard drive that contains information that a particular web site wants to have available during your current session (like your shopping cart), or from one session to the next.

Cookie

The process of testing, finding problems, and fixing them __________________________.

Debugging

Data trails we leave intentionally and unintentionally are known as ______________________.

Digital Fingerprints and Digital Footprints

The 1974 Privacy Act applies to interagency data transfers within the federal government and private sector.

False

When sharing a project with a partner, your partner will be able to see any changes you make after sharing.

False

You may adjust the rotation style of your sprite using the Up-Down button ?

False

A __________________ is another name for a reporter block.

Function

Two grids are shown below. Each grid contains a robot represented as a triangle. Both robots are initially facing left. Each robot can move into a white or gray square, but cannot move into a black region. For each grid, the program below is intended to move the robot to the gray square. The program uses the procedure Goal_Reached() which evaluates to True if the robot is in the gray square and evaluate to False otherwise. M2L5_Ques3A For which of the grids does the program correctly move the robot to the gray square?

Grid I only

The question below uses a robot in a grid of squares. The robot is represented as a triangle, which is initially in the center square of the grid and facing toward the top of the grid. A gray square represents a possible final location after the code segment is executed. Which of the following represents all possible final locations for the robot?

Grid where its shaded like a "T" and the arrow is in the middle facing up

The forever block generates an _____________ that goes on forever

Infinite

Which is the least effective benefit of collaboration ?

It's best to work with a partner that thinks the same as you.

The code segment below uses the procedure IsFound(list, item) which returns true if item appears in list and returns false otherwise. The list resultList is initially empty. FOR EACH item IN inputList1 { IF(IsFound(inputList2, item) { APPEND(resultList, item) } } Which of the following best describes the contents of resultList after the code segment is executed?

Only elements that appear in both inputList1 and inputList2.

The question below uses a robot in a grid of squares. The robot is represented as a triangle, which is initially in the bottom-left square of the grid and facing toward the top of the grid. Code for the procedure Mystery is shown below. Assume that the parameter p has been assigned a positive integer value (e.g., 1, 2, 3, ...) Which of the following shows a possible result of calling the procedure?

The grid where the arrow is in the middle of the bottom of the row facing the left

In the procedure Mystery below, the parameter number is a positive integer. PROCEDURE Mystery(number) { REPEAT UNTIL (number < 0) { number Left Arrow number - 2) } IF (number = 0) { RETURN (True) } ELSE { RETURN (False) } } Which of the following best describes the result of running the procedure

The procedure returns True when the initial value of number is even, and it otherwise returns False.

Bits are _________________________

Zeroes and Ones

You may change your password at any time using the

cloud menu

The algorithm below is used to simulate the results of flipping a coin 4 times. Consider the goal of determining whether the simulation resulted in an equal number of heads and tails. Step 1: Initialize the variables heads_counter and flip_counter to 0. Step 2: A variable coin_flip is randomly assigned a value of either 0 or 1. If coin_flip has the value 0, the coin flip result is heads, so heads_counter is incremented by 1. Step 3: Increment the value of flip_counter by 1. Step 4: Repeat steps 2 and 3 until flip_counter equals 4. Following execution of the algorithm, which of the following expressions indicates that the simulation resulted in an equal number of heads and tails?

heads_counter = 2


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

Lesson 5: Installing and Configuring Routed Networks

View Set

INFORMATION SECURITY CHAPTERS 6 - 10 (FINALS)

View Set

Review UTS (2) Bahasa Indonesia (8)

View Set

Management 300 Chapter 12 Part 2

View Set