Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Give this quiz to my class
Q 1/20
Score 0
Consider the following code segment, which uses the variables r, s, and t. What is displayed as a result of running the code segment?
30
1 2
3 2
2 3
1 1
Q 2/20
Score 0
Which of the following is a true statement about program documentation?
30
Program documentation should not be changed after it is first written.
Program documentation is useful during initial program development and also when modifications are made to existing programs.
Program documentation is useful when programmers collaborate but not when a programmer works individually on a project.
Program documentation is only needed for programs in development; it is not needed after a program is completed.
20 questions
Q.
Consider the following code segment, which uses the variables r, s, and t. What is displayed as a result of running the code segment?
1
30 sec
Q.
Which of the following is a true statement about program documentation?
2
30 sec
Q.
Which of the following best explains what happens when a new device is connected to the Internet?
3
30 sec
Q.
Consider the following code segment. Which of the following replacements for <MISSING CONDITION> will result in an infinite loop?
4
30 sec
Q.
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. Following execution of the algorithm, which of the following expressions indicates that the simulation resulted in an equal number of heads and tails?
5
30 sec
Q.
An algorithm has been developed to compute the sum of all the elements in a list of integers. Which of the following programming structures must be added to the existing algorithm so that the new algorithm computes the sum of only the even integers in the list?
6
30 sec
Q.
Which of the following activities poses the greatest personal cybersecurity risk?
7
30 sec
Q.
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. Which of the following best describes the contents of resultList after the code segment is executed?
8
30 sec
Q.
A programmer is writing a program that is intended to be able to process large amounts of data. Which of the following considerations is LEAST likely to affect the ability of the program to process larger data sets?
9
30 sec
Q.
Which of the following is LEAST likely to indicate a phishing attack?
10
30 sec
Q.
Which of the following is considered an unethical use of computer resources?
11
30 sec
Q.
A user enters a Web address in a browser, and a request for a file is sent to a Web server. Which of the following best describes how the file is sent to the user?
12
30 sec
Q.
An Internet service provider (ISP) is considering an update to its servers that would save copies of the Web pages most frequently visited by each user. Which of the following is LEAST likely to occur as a result of the update?
13
30 sec
Q.
Which of the following is a characteristic of the fault-tolerant nature of routing on the Internet?
14
30 sec
Q.
Which of the following is a true statement about cloud computing?
15
30 sec
Q.
Which of the following statements is true?
16
30 sec
Q.
Which of the following programs is most likely to benefit from the use of a heuristic?
17
30 sec
Q.
Which of the following has the greatest potential for compromising a user’s personal privacy?
18
30 sec
Q.
A program is expressed in a programming language. Which of the following is true of the program?
19
30 sec
Q.
Which of the following best describes a Distributed Denial of Service (DDoS) attack?