The sequential search algorithm __________.

a. returns 1 if the value being searched for is found or -1 if the value is not found
b. requires the array to be ascending order
c. uses a loop to sequentially step through an array, starting with the first element
d. must always be implemented as a method


c. uses a loop to sequentially step through an array, starting with the first element

Computer Science & Information Technology

You might also like to view...

The putback member function returns to the input stream the previous character obtained by:

a. A get from the input stream. b. Using the stream extraction operator on the input stream. c. Reading input from the keyboard. d. Reading a file from disk.

Computer Science & Information Technology

________ helps Internet-based applications perform like desktop applications.

a. Ajax b. Blogging c. RSS d. Mashups

Computer Science & Information Technology

Write a script that plays the “guess the number” game as follows: Your program chooses the number to be guessed by se- lecting a random integer in the range 1 to 1000. The script displays the prompt Guess a number between 1 and 1000 next to a text field. The player types a first guess into the text field and presses a button to submit the guess to the script. If the player's guess is incorrect, your program should display Too high. Try again. or Too low. Try again. in the browser’s status bar to help the player “zero in” on the correct answer and should clear the text field so the user can enter the next guess. When the user enters the correct answer, display Congratulations. You guessed the number! in the status bar and clear the text field so the user can play again. [Note: The guessing

What will be an ideal response?

Computer Science & Information Technology

A(n) ____ is a rectangle whose size matches the width and height of the selected object.

A. alignment box B. clipping box C. selection box D. bounding box

Computer Science & Information Technology