What is the standard terminal symbol for a flowchart

Assignment Help Programming Languages
Reference no: EM13952886

1. Computer programmers often refer to memory addresses using ____notation, or base 16.

a. binary

b. indirect

c. mathematical

d. hexadecimal

2. After a programmer plans the logic of a program, she will next ____.

a. understand the problem

b. test the program

c. translate the program

d. code the program

3. The process of walking through a program's logic on paper before you actually write the program is called ____.

a. desk-checking

b. flowcharting

c. pseudocoding

d. testing

4. What is the problem with the following statement? 100=grade

a. 100 is not a reasonable grade

b. 100 should be in quotes

c. data types don't match

d. value on the left must be a variable name

5. What might be considered the seventh step of the programming process?

a. testing

b. maintaining

c. replacing

d. converting

6. What symbol is used to represent output in a flowchart?

a. square

b. circle

c. parallelogram

d. triangle

7. What is the standard terminal symbol for a flowchart?

a. circle

b. lozenge

c. diamond

d. square

8. A variable name is also called a(n) ____.

a. placeholder

b. identifier

c. constant

d. hexadecimal

9. What is the assignment operator?

a. =

b. *

c. ^

d. %

10. What is an example of a string constant?

a. 1

b. 12432

c. "oops"

d. o

11. In some programming languages, programmers must write a variable ____ telling the compiler what data type is expected for the variable.

a. name

b. termination

c. decision

d. declaration

12. The following pseudocode is an example of a(n) ____ structure:

get number
while number is positive
add to sum
get number

a. sequence

b. decision

c. loop

d. nested

13. The following pseudocode is an example of a(n) ____ structure:

get number
get another number
if first number is bigger than second then
print first number
else
print second number

a. sequence

b. decision

c. loop

d. nested

14. The following pseudocode is an example of a(n) ____ structure:

get number
get another number
add numbers
print result

a. sequence

b. decision

c. loop

d. nested

15. The following pseudocode is an example of ____.

do stepA
do stepB
if conditionC is true then
do stepD
else
do stepE
endif
while conditionF is true
do stepG
endwhile

a. nesting

b. stacking

c. posttest

d. pretest

16. The following pseudocode is an example of ____.

if conditionA is true then
do stepE
else
do stepB
do stepC
do stepD
endif

a. nesting

b. stacking

c. posttest

d. pretest

17. If a program will read 100 data records, you read the first data record in a statement that is separate from the other 99. This is called a ____ read.

a. nested

b. stacked

c. posttest

d. priming

18. The following pseudocode reads a number from the user, multiplies it by 2, and prints the result. What program statement should replace the ? to make this program functional and structured?

start
get inputNumber
while not eof
calculatedAnswer = inputNumber * 2
print calculatedAnswer
?
endwhile
stop

a. no statement is needed

b. if done then exit

c. get inputNumber

d. print inputNumber

19. Structured programs can be easily broken down into routines or ____ that can be assigned to any number of programmers.

a. segments

b. modules

c. units

d. sequences

20. One way to straighten out a flowchart segment that isn't structured is to use what you can call the "____" method.

a. spaghetti code

b. spaghetti bowl

c. restructuring

d. priming

21. What is considered to be a convenience structure?

a. if-then-else

b. while

c. do while

d. sequence

22. The following pseudocode might be re-written using a(n) ____ structure:if class = "Freshman" then

tuitionFee = 75
else
if class = "Sophomore" then
tuitionFee = 50
else
if class = "Junior" then
tuitionFee = 30
else
tuitionFee = 10
endif
endif
endif

a. if-then-else

b. case

c. while

d. do while

23. In a case structure, the term ____ means "if none of the other cases were true."

a. else

b. then

c. default

d. loop

24. In a ____ loop, the loop body continues to execute as long as the answer to the controlling question is yes, or true.

a. do-then

b. do-when

c. do-until

d. do-while

25. In a(n) ____ loop, the loop body continues to execute as long as the answer to the controlling question is no, or false.

a. do-until

b. do-while

c. while

d. if-then-else

26. Fill in the blank in the following pseudocode: if someCondition is true then

do oneProcess _____ do theOtherProcess

a. then

b. while

c. do

d. else

27. What is another name for a loop structure?

a. execution

b. selection

c. iteration

d. case

28. A case structure can be replaced by one or more ____ structures.

a. if-then-else

b. do-while

c. do-until

d. while

29. Which name is best suited to a module that calculates overtime pay?

a. calcO()

b. cO()

c. calculate overtime()

d. calculateOvertime()

30. Which statement is used to indicate the end of a module?

a. stop

b. end

c. return

d. done

31. The ____ can be a useful tool when a program must be modified months or years after the original writing.

a. flowchart

b. hierarchy chart

c. pseudocode

d. variable declaration

32. Which documentation is typically written first?

a. input

b. output

c. internal program

d. external program

33. You can design a printed report on a ____.

a. printer layout

b. print performance chart

c. print character layout

d. printer spacing chart

34. In a ____ program, the user sees a screen and can typically make selections using a mouse or other pointing device.

a. reusable

b. modular

c. GUI

d. command-line

35. User documentation might include ____.

a. how to prepare input for the program

b. to whom the output should be distributed

c. how frequently the program needs to run

d. all of the above

36. Which step occurs first?

a. understanding user's needs

b. clarifying requirements

c. coding program

d. developing program logic

37. Checking that required input files are present would most likely occur in the ____ section of a program.

a. main loop

b. end-of-job routine

c. housekeeping

d. file opening

38. Variable declarations are made in the ____ section of a program.

a. main loop

b. end-of-job routine

c. housekeeping

d. file opening

39. Declaring a variable involves selecting a name and a ____.

a. size

b. length

c. style

d. type

40. Some use a variable-naming convention called ____ notation, in which a variable's data type or other information is stored as part of the name. For example, a numeric field might always start with the prefix num.

a. Prefix

b. American

c. Polish

d. Hungarian

41. A group of variables is often called a ____.

a. linked group

b. data structure

c. data object

d. module

42. When a variable is ____ it is both declared and initialized.

a. set

b. instantiated

c. defined

d. documented

43. How do you physically advance printer paper to the top of a page?

a. issue the pageTop() command

b. issue the top() command

c. it depends on the programming language

d. there is no way to do it

44. What is the default standard output device?

a. printer

b. monitor

c. keyboard

d. mouse

45. What is the problem with the following pseudocode if you assume that the housekeeping() module does not perform a read?

start
perform housekeeping() (without read)
while not eof
read invRecord
profit = invPrice - invCost
print invItemName, invPrice, invCost, profit
endwhile

a. there is no priming read and the while not eof check may fail

b. there is no check for the end of the file

c. the loop is not structured

d. there is no input

46. What is a legal statement assigning a value to the profit variable?

a. invPrice - invCost = profit

b. set profit to Subtract(invPrice, invCost)

c. profit = invPrice - invCost

d. subtract invPrice from invCost, set profit

47. Calculated values should be stored in ____ variables if they will be used again in the program.

a. unnamed

b. temporary

c. work

d. default

48. Where is the best place to close input and output files?

a. main loop

b. housekeeping module

c. end-of-job routine

d. clean up segment

49. In a large program, a programmer might store modules in individual files and use an instruction to ____ them in any program that uses them.

a. source

b. redirect

c. set

d. include

50. Which of the following would most likely be a named constant?

a. x

b. isFinished

c. taxRate

d. TAX_RATE

Reference no: EM13952886

Questions Cloud

Draw a class diagram for the following situation : We want to keep track of the dependents of each employee for insurance purposes. We keep each dependent's first name, sex, birth dale, and relationship to the employee."
What is the probability of giving birth to no females : A certain laboratory animal used in preclinical evaluations of experimental catheters gives birth to only one offspring at a time. The probability of giving birth to a male or a female offspring is equally likely. In three consecutive pregnancies ..
What are all of respective possible outcomes : In the science exhibit of a museum of natural history, a coin-flipping machine tosses a silver dollar into the air and tallies the outcome on a counting device. What are all of the respective possible outcomes in any three consecutive coin tosses?
Adaptive strategic alternatives : Making decisions about the type or scope of operations is an adaptive strategy. This would be how a healthcare organization decides to recommend expansion, reduction or maintaining operations.
What is the standard terminal symbol for a flowchart : What might be considered the seventh step of the programming process?
Create service delivery strategies : Strategy can take several forms. Healthcare organizations will use directional strategy, adaptive strategy, market entry strategy, and/or competitive strategy at any time.
Create an audio version of your statements : This discussion is your opportunity to write position statements and create an audio version of your statements to share with the class using the Vocaroo tool, which is a useful tool to learn because you can use it to send audio messages to studen..
Perform a confidence interval test : Based on these results, were they to perform a confidence interval test with a 95% confidence level, what would the upper and lower bounds be? The standard error? What does this mean to the cinema?
What is probability of assigning to intervention condition : The probability of assigning one member of the pair to the intervention condition is 50%. Among the first four pairs, what is the probability of assigning to the intervention condition: 1) zero females, 2) one female, 3) two females, 4) three fema..

Reviews

Write a Review

Programming Languages Questions & Answers

  How do we convert string values from keyboard to numeric

Let's discuss how to use the Java I/O classes such as the system and the scanner classes to do console IO and the JOptionPane class to do dialog based IO. How do we convert string values from keyboard to numeric values

  Create a list of short bulleted phrases showing all details

Rewrite this problem statement in your own words. Create a list of short bulleted phrases showing all details about this problem. This list should include both the explicitly defined and implied details in the problem statement.

  Perform object-oriented analysis and design

OOAD's increasing popularity is brought about in part because of its ability to represent complex relationships, as well as data and data processing, with a consistent notation.

  Whether a string is a palindrome or not

Please examine the attachment, this is as far as I got, however I am able to compile but when executing I get and error. Please select palindrome files to save in the pals.txt file.

  Estimate the storage space for telephone book

Estimate the storage space (number of bytes) required for each of the following items: A telephone book with 10,000 entries consisting of names, addresses and phone numbers. Use your phone book to estimate the average length of an entry.

  Create a serial sequence detector

You are to create a "Serial Sequence Detector". Your design will take in clock, reset, and one-bit data signal. Your design will check input data signal on rising edge of the input clock.

  Rewrite the sql statement to make it correct.

Tell why the following SQL statement is incorrect

  How to analyze the data

What kind of tools can help you to accomplish that

  Write a program that reads the data from the file

Write a program that - Reads the data from the file into an array of structure when the form is loaded and When "Display Hits" is clicked, based on the team selected from the list, displays the players from that team and their hits. The players are..

  Write a bioperl-based script

Write a BioPerl-based script ("pick-by-id.pl") to extract sequences by id. It will emulate the "blastdbcmd -db -entry" command. Use "GBB.pep" and "BBA15" as the two arguments.

  Design a pseudo code to create the program

Design a pseudo code to create, debug and execute the program. The documentation should include your name, course, program name, due date, programming language used

  Write the code for adding a task

write the code for adding a task to this array when the user enters a task in the first text box and clicks the Add Task button. This code should also blank out the text box. At this point, don't worry about displaying the tasks in the text area f..

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