+1(316)4441378

+44-141-628-6690

  • Essay
  • September 13th, 2013

Exam

1.

The piece of hardware that performs processing tasks is the central data unit.

A) True

B) False

2.

An AND decision can be constructed using a ____ decision.

A) nested

B) stacked

C) combined

D) dual

3.

____ a data item means you override incorrect data by setting the variable to a specific value.

A) Forcing

B) Incrementing

C) Initializing

D) Terminating

4.

A variable declaration is a statement that provides a data type and identifier for a variable

A) True

B) False

5.

An error commonly made by beginning programmers is to forget that array subscripts start with the integer 1.

A) True

B) False

6.

What will be the value stored in the variable 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

7.

When using the OR operator, an action is taken when at least one of the comparisons evaluates to true.

A) True

B) False

8.

When you combine AND and OR operators within the same statement, the AND operators take precedence.

A) True

B) False

9.

The selection structure is also called an if-then structure.

A) True

B) False

10.

What would be the output of the following 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) The weather is nice today

B) The temperature is 45

C) it is could outside

D) none of the above

11.

What is the answer for the following operation: (3+5) * 10 – 4/8

A) 79.5

B) 9.5

C) 47.7

D) 76

12.

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

A) a+b

B) b+c

C) e-f

D) d/e

13.

Program comments are nonexecuting statements.

A) True

B) False

14.

To use computer programs, you must first load them into memory.

A) True

B) False

15.

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

A) True

B) False

16.

An algorithm is the sequence of steps necessary to solve a problem.

A) True

B) False

17.

The body of a loop can contain only a limited number of statements.

A) True

B) False

18.

Many programming languages allow you to use ____ to force an expression to evaluate first.

A) a pound sign

B) an asterisk

C) parentheses

D) quotation marks

19.

The two major components of any computer system are its hardware and its software.

A) True

B) False

20.

What operator has the lowest precedence?

A) +

B) /

C) *

D) =

21.

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

A) True

B) False

22.

All of the variables in an array have the same name and data type but are differentiated with special numbers called subscripts.

A) True

B) False

23.

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

A) illegal

B) logical

C) syntax

D) semantic

24.

The ____ variable is initialized before entering the loop.

A) loop ending

B) ending control

C) interrupt control

D) loop control

25.

Which language does a computer know?

A) Java

B) C++

C) high-level

D) machine language

 

You can place an order similar to this with us. You are assured of an authentic custom paper delivered within the given deadline besides our 24/7 customer support all through.

 

Latest completed orders:

# topic title discipline academic level pages delivered
6
Writer's choice
Business
University
2
1 hour 32 min
7
Wise Approach to
Philosophy
College
2
2 hours 19 min
8
1980's and 1990
History
College
3
2 hours 20 min
9
pick the best topic
Finance
School
2
2 hours 27 min
10
finance for leisure
Finance
University
12
2 hours 36 min
[order_calculator]