Comp Sci

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

A home security company develops software that takes a human voice as input, searches for the voice in a voice recognition database, and determines the identity of the person based on the voice. It is sophisticated enough to be able to distinguish a live voice from a recorded voice. The main purpose of this software is to activate and deactivate the security system at a person's home residence. Of the following, which would be the MOST logical extension of this software for another purpose?

(a) To allow an officer's entry into a military facility

Consider the following code: REPEAT UNTIL (x MOD 2 = 0) {x ← x + 3} Assume that xx is 7. How many times will the loop iterate? Elimination Tool

(b) 1

Which of the following is NOT an example of computing influencing creativity?

(d) all the above are correct

Use the following code segment to answer this question: ------------------------------------- x ← 8 answer ← - 1 aList ← [1, 4, 7, 9, 11, 14] FOR EACH item IN aList { IF (item = x) { answer ← item } } -------------------------------------- Which of the following is true of this code segment? Select two answers.

1. Answer will be set to -1 if x is not in aList (b) 2. Answer will be set to x if x is in aList (c)

Alvin is working on creating a fairly large program. Which of the following strategies will make his code easier to maintain once the program is finished?

1. Using procedures for repeated code (a) 2. Writing documentation for all procedures and variables in the program (c)

Which of the following variable names would be best for a?

TextBoxName


Ensembles d'études connexes

Unit 1-4 and final study guide notes

View Set

2.2.3 Practice Questions Professionalism

View Set

MH68: The Beatles (Listening Quiz 1)

View Set