Body of a loop can contain only a limited number of statemen

Assignment Help Humanities
Reference no: EM13846456

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

A) True

B) False

2. 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

3. The true benefit of using an array lies in your ability to use a variable as a subscript to the array instead of using a constant.

A) True

B) False

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

A) True

B) False

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

A) True

B) False

6. Arrays are always composed of elements of the same data ____.

A) type

B) style

C) method

D) mode

7. An AND decision can be constructed using a ____ decision.

A) nested

B) stacked

C) combined

D) dual

8. What operator has the lowest precedence?

A) +

B) /

C) *

D) =

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

A) True

B) False

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

A) True

B) False

11. A loop for which the number of iterations is predetermined is called a definite loop or counted loop.

A) True

B) False

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

A) True

B) False

14. Which takes precedence when the two are combined in a single statement: AND or OR?

A) OR

B) AND

C) whichever comes first

D) whichever comes last

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

A) 79.5

B) 9.5

C) 47.7

D) 76

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

A) True

B) False

17. Which language does a computer know?

A) Java

B) C++

C) high-level

D) machine language

18. What is another word for a subscript?

A) superscript

B) subroutine

C) variable

D) index

19. Leaving a loop as soon as a match is found ____ a program's efficiency.

A) worsens

B) improves

C) doesn't change

D) defines

20. What is the answer for the following operation: 12/3 - 2 * 10 + (7-1)

A) -22

B) 32

C) 26

D) -10

21. The structure which takes one of two paths based on a decision is called a(n) ____ structure.

A) if-then

B) if-else

C) if-then-else

D) if-endif

22. Program comments are nonexecuting statements.

A) True

B) False

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

A) True

B) False

24. With a 12-item array, the subscripts you can use are 0 through 11.

A) True

B) False

25. What is the correct data type of an accumulator variable used to store real estate sales totals?

A) string

B) numeric

C) text

D) character

26. 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

27. At the beginning of any method, it is the programmer's responsibility to ____ all variables that must start with a specific value.

A) internalize

B) setup

C) clear

D) initialize

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

A) Forcing

B) Incrementing

C) Initializing

D) Terminating

29. When you use a subscript not within the range of acceptable subscripts, your subscript is said to be ____.

A) out of range

B) out of area

C) out of bounds

D) out of series

30. Users enter incorrect data frequently; a good program should be able to handle the mistake and not allow the ____ to be out of

bounds.

A) subscript

B) superscript

C) range

D) variable

31. Usually, all the values in an array have something in common.

A) True

B) False

32. When you use a loop within a computer program, you can write one set of instructions that operates on multiple, separate sets of

data.
A) True

B) False

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

A) True

B) False

34. Which of the following is correct if the data type for weight is num?

A) weight = 2.75

B) weight = "2.75"

C) weight = (2.75)

D) weight = "heavy"
35. What would be the output of the following expression if the temperature outside is 30 degrees?

If temperature >=35 and temperature

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

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

A) illegal

B) logical

C) syntax

D) semantic

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

A) True

B) False

38. The ____ variable is initialized before entering the loop.

A) loop ending

B) ending control

C) interrupt control

D) loop control

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

A) True

B) False

40. When using a flowchart, input is represented by what geometric shape?

A) rectangle

B) diamond

C) circle

D) parallelogram

Reference no: EM13846456

Questions Cloud

Explaining how the moderately greater equity : Select a retail brand (remember it must be a retail store brand) you are particularly fond of and provide details explaining how the moderately greater equity compared to the lesser brand names in the same retail industry is apparent in terms of e..
Difference working in public accounting vs corporate sector : The differences between working in public accounting versus in the corporate sector. Recent significant events impacting the accounting profession such as the passage of Sarbanes-Oxley Act (SOX), the convergence between U.S. GAAP and IFRS.
What constitutes an effective employee disciplinary process : How could a virtual environment be incorporated into the training plan and how do you prioritize who gets trained first and what type of training is conducted first?
International equilibrium on a relative demand-supply graph : Identify the international equilibrium on a relative demand-supply graph (drawn to scale). Assuming free and frictionless trade, determine the relative price, pattern of production, and pattern of trade in this Ricardian world.
Body of a loop can contain only a limited number of statemen : An error commonly made by beginning programmers is to forget that array subscripts start with the integer 1.
Explain the information technology externalities : Explain you company's productivity, efficiency, and output. For profit organization therefore the organization very profitable. What are the trends in your industry. Explain the information technology externalities.
Describe issues in project cost estimating : Compare and contrast analogous, parametric, and bottom-up methods of estimating costs. Describe issues in project cost estimating and how to deal with each
Determine the quantity produced by the firm : Assume that the current market price is $296. Determine the quantity produced by the firm and its economic profit/loss. Reproduce the graph in part (c) and show the economic profit/loss on this graph.
Single selector signal : The 2 to 1 multiplexer has two inputs (X1 and X2), and a single selector signal (S). All three switches (S1, S2, and S3) are set as toggle switches.

Reviews

Write a Review

Humanities Questions & Answers

  Who can tell me if this culture-bound syndromes looks like

culture-bound syndrome is listed in the appendix of dsm-iv-tr here is an exampleamok ormataelap malaysia a dissociative

  Discuss the different parenting styles

Evaluate different parenting styles and their influence on development during infancy and early childhood. Include which parenting style you feel is most effective and why.

  Effects of war and peace on foreign aid

Analyze the specific actions that the leadership of the selected country has taken, through the use of its foreign aid from donor nations and international lending institutions, to relieve the severe problems caused by warfare.

  Delinquency from the sociological perspective can be

please look at the outline in the attached file and write about it by following it please.gangs and

  Technique as a form of experiential learning

Pay It Forward Assignment Much has been written in recent years about the use of feature films in teaching social and ecological systems.

  What william shakespeares facebook profile

Have you ever wondered what William Shakespeares Facebook profile would look like, assuming he was alive today?

  Why does the socialization process have different degrees

Why does the socialization process have different degrees of effect on different people?

  Purposethere are several possibilities here your papers

purposethere are several possibilities here. your papers purpose might be any of the followinganalyze a particular

  Hinduism gandhi and his satyagraha movement what do you

hinduism gandhi and his satyagraha movement. what do you consider your most significant learnings from it?buddhism the

  Task construct a formal critical essay related the enquiry

task construct a formal critical essay related the enquiry question by synthesising the most relevant credible

  Write a three to four page paper ancient emperors

Write a three to four page paper Ancient Emperors. Deathbed Memoir. Pretend you are one of the emperors we have studied, such as Shihuangdi, Constantine, Ashoka, or Charlemagne.

  Why do you think that mesoamerican cultures developed along

Why do you think that Mesoamerican cultures developed along lines so much like cultures we've already seen in Europe and Asia although they were completely isolated from them?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd