Quiz1Review

Quiz1Review - except the word “text.” 4 How many...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Quiz 1 Review: 1. What is being illustrated below? a. An algorithm for storing data in an array b. A sorting algorithm c. An algorithm for storing alphabeta strings d. An algorithm for acquiring ecclectic taste in music Steps: 1 Refer to the first two names as index A and B respectively 2 If Name[A] > Name [B] swap Name[A] with Name [B] 3 If B does not point to the last name on the list move B to the next name and go back to Step 2 4 If there are 2 or more names after A move A to the next name move B to the name following A Go back to Step 2 Stop 2. Which of the following must be specified in an algorithm a. Its efficiency b. The number of steps it requires c. Its complexity d. Its output 3. In the html tree to the right, a. All of the text will be the color 0000FF b. All of the text will be the color FF0000 c. All of the text will be the color 0000FF except the word “Red.” d. All of the text will be the color FF0000
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: except the word “text.” 4. How many different numbers can be stored in 2 bits?: a. 2 b. 3 c. 4 d. none – 2 bits is not enough space to store any number 5. html code can be edited with a. only a web browser like Firefox or Internet Explorer b. only a special html editor c. only Notepad d. any text editor 6. A digital image (like a photograph) is a. a one-dimensional array b. a two-dimensional array c. a three-dimensional array d. a record 7. The graphic on the right is a representation of a a. two-dimensional array b. record c. string d. tree 8. Using the graphical representation of an array on the right: If we perform the following operations . .. Operation 1. anArray[2] = anArray[5] + anArray[2] Operation 2. anArray[3] = (anArray[0] + anArray[2]) / 2 Operation 3. anArray[5] = anArray[3] ... then anArray[5] = = ? a. 1.0 b. 5.25 c. 3.5 d. 3.0 Name "Fred" Gender M GPA 3.2 Address "Apt 75"...
View Full Document

{[ snackBarMessage ]}

Page1 / 2

Quiz1Review - except the word “text.” 4 How many...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online