Log In

Multiple Choice 8

please look @ assignment.docx

 QUESTION 1

1. What is the answerfor the following operation: (3+5) * 10 – 4/8

 

A.

79.5

 

B.

9.5

 

C.

47.7

 

D.

76

QUESTION 2

1. All of thevariables in an array have the same name and data type but are differentiatedwith special numbers called subscripts.

 True

 False

QUESTION 3

1. When you combineAND and OR operators within the same statement, the AND operators takeprecedence.

 True

 False

QUESTION 4

1. The ____ variableis initialized before entering the loop.

 

A.

loopending

 

B.

endingcontrol

 

C.

interruptcontrol

 

D.

loopcontrol

QUESTION 5

1. Misuse of alanguage’s grammar rules is called a(n) ____ error.

 

A.

illegal

 

B.

logical

 

C.

syntax

 

D.

semantic

QUESTION 6

1. Program commentsare nonexecuting statements.

 True

 False

QUESTION 7

1. Many programminglanguages allow you to use ____ to force an expression to evaluate first.

 

A.

apound sign

 

B.

anasterisk

 

C.

parentheses

 

D.

quotationmarks

QUESTION 8

1. The two majorcomponents of any computer system are its hardware and its software.

 True

 False

QUESTION 9

1. The selectionstructure is also called an if-then structure.

 True

 False

 

QUESTION 10

1. In the followingstatement, which operation is done third?answer = a + b + c * d / e – f

 

A.

a+b

 

B.

b+c

 

C.

e-f

 

D.

d/e

QUESTION 11

1. A variabledeclaration is a statement that provides a data type and identifier for avariable

 True

 False

QUESTION 12

1. An error commonlymade by beginning programmers is to forget that array subscripts start with theinteger 1.

 True

 False

QUESTION 13

1. An AND decisioncan be constructed using a ____ decision.

 

A.

nested

 

B.

stacked

 

C.

combined

 

D.

dual

QUESTION 14

1. Which languagedoes a computer know?

 

A.

Java

 

B.

C++

 

C.

high-level

 

D.

machinelanguage

QUESTION 15

1. An algorithm isthe sequence of steps necessary to solve a problem.

 True

 False

QUESTION 16

1. The body of a loopcan contain only a limited number of statements.

 True

 False

QUESTION 17

1. What would be the output of thefollowing expression if the temperature outside is 30 degrees?

If temperature >=35 and temperature <= 55 then

  output “it is cold outside”

else output “The weather is nice today”

 

A.

Theweather is nice today

 

B.

Thetemperature is 45

 

C.

itis cold outside

 

D.

noneof the above

QUESTION 18

1. A noun would be agood choice for a variable or constant identifier.

 True

 False

QUESTION 19

1. The piece ofhardware that performs processing tasks is the central data unit.

 True

 False

QUESTION 20

1. To use computerprograms, you must first load them into memory.

 True

 False

QUESTION 21

1. ____ a data itemmeans you override incorrect data by setting the variable to a specific value.

 

A.

Forcing

 

B.

Incrementing

 

C.

Initializing

 

D.

Terminating

QUESTION 22

1. A loop control variable’svalue is tested to control the loop’s execution.

 True

 False

QUESTION 23

1. What operator hasthe lowest precedence?

 

A.

+

 

B.

/

 

C.

*

 

D.

=

QUESTION 24

1. What will be the value stored in thevariable total when the following code completes executing:

count = num 
total = num = 0

For count = 1 to 10

  total = total + count

endfor

 

A.

10

 

B.

55

 

C.

45

 

D.

0

 

QUESTION 25

1. When using the ORoperator, an action is taken when at least one of the comparisons evaluates totrue.

 True

 False

× How can I help?