Docsity

CS 6601 ASSIGNMENT 6 FULLY SOLVED TASK PAPER GRADED A+, Exams of Java Programming

Toggle sidebar
bg1
CS 6601 ASSIGNMENT 6 FULLY SOLVED TASK
PAPER GRADED A+
◉ The major computer operations include ____________.
Select one:
a. hardware and software
b. sequence and looping
c. spreadsheets, word processing, and data communications
d. input, processing, and output.
Answer: d. input, processing, and output
◉ A programming language's rules are its ____________.
Select one:
a. logic
b. syntax
c. format
d. options.
Answer: b. syntax
◉ The most important task of a compiler or interpreter is to
____________.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b

Partial preview of the text

Download CS 6601 ASSIGNMENT 6 FULLY SOLVED TASK PAPER GRADED A+ and more Exams Java Programming in PDF only on Docsity!

CS 6601 ASSIGNMENT 6 FULLY SOLVED TASK

PAPER GRADED A+

◉ The major computer operations include ____________. Select one: a. hardware and software b. sequence and looping c. spreadsheets, word processing, and data communications d. input, processing, and output. Answer: d. input, processing, and output ◉ A programming language's rules are its ____________. Select one: a. logic b. syntax c. format d. options. Answer: b. syntax ◉ The most important task of a compiler or interpreter is to ____________.

Select one: a. translate English statements into a language such as Java b. execute machine language programs to perform useful tasks c. translate programming language statements into machine language d. create the rules for a programming language. Answer: c. translate programming language statements into machine language ◉ Which of the following is temporary, internal storage? Select one: a. keyboard b. hard disk c. CPU d. memory. Answer: d. memory ◉ Which of the following pairs of steps in the programming process is in the correct order? Select one: a. test the program, translate it into machine language b. put the program into production, understand the problem

◉ An English-like programming language such as Java or Visual Basic is a ________ programming language. Select one: a. high-level b. binary-level c. machine-level d. low-level. Answer: a. high-level ◉ Which of the following is an example of a syntax error? Select one: a. producing output before accepting input b. subtracting when you meant to add c. misspelling a programming language word d. all of the above. Answer: c. misspelling a programming language word ◉ Which of the following is an example of a logical error? Select one: a. performing arithmetic with a value before inputting it b. accepting two input values when a program requires only one c. dividing by 3 when you meant to divide by 30

d. all of the above. Answer: d. all of the above ◉ The parallelogram is the flowchart symbol representing ____________. Select one: a. input b. output c. either a or b d. none of the above. Answer: c. either a or b ◉ In a flowchart, a rectangle represents ____________. Select one: a. processing b. a question c. input d. a sentinel. Answer: a. processing ◉ In flowcharts, the decision symbol is a ____________. Select one:

Answer: d. some syntax is different ◉ What does a declaration provide for a variable? Select one: a. a name b. a data type c. both of the above d. none of the above. Answer: c. both of the above ◉ A variables data type describes all of the following except________. Select one: a. how the variable is stored in memory b. what operations can be performed with the variable c. the scope of the variable d. what values the variable can hold. Answer: c. the scope of the variable ◉ The value stored in an uninitialized variable is _________. Select one: a. compost b. null

c. its identifier d. garbage. Answer: d. garbage ◉ The value 3 is a ___________. Select one: a. numeric constant b. numeric variable c. string variable d. string constant. Answer: a. numeric constant ◉ The assignment operator ___________. Select one: a. is a binary operator b. has left-to-right associativity c. is most often represented by a colon d. two of the above. Answer: a. is a binary operator ◉ Multiplication has a lower precedence than _____. Select one:

◉ What is the name for the process of paying attention to important properties while ignoring nonessential details? Select one: a. extraction b. modularization c. abstraction d. extinction. Answer: c. abstraction ◉ Every module has all of the following except___________. Select one: a. a body b. a header c. a return statement d. local variables. Answer: d. local variables ◉ Programmers say that one module can ___________ another, meaning that the first module causes the second module to execute. Select one: a. declare

b. call c. define d. enact. Answer: b. call ◉ In most modern programming languages, a variable or constant that is declared in a module is ___________ in that module. Select one: a. undefined b. invisible c. global d. in scope. Answer: d. in scope ◉ Which of the following is not a typical housekeeping task? Select one: a. printing summaries b. opening files c. displaying report headings d. displaying instructions. Answer: a. printing summaries

d. none of the above. Answer: d. none of the above ◉ Which of the following is valid advice for naming variables? Select one: a. To make names easier to read, separate long names by using underscores or capitalization for each new word. b. To save typing, make most variable names one or two letters. c. To avoid conflict with names that others are using, use unusual or unpronounceable names. d. To maintain your independence, shun the conventions of your organization.. Answer: a. To make names easier to read, separate long names by using underscores or capitalization for each new word. ◉ A message that asks a user for input is a(n) ___________. Select one: a. prompt b. declaration c. comment d. echo. Answer: a. prompt

◉ Snarled program logic is called _____________ code. Select one: a. gnarly b. snake c. spaghetti d. linguini. Answer: c. spaghetti ◉ The three structures of structured programming are _____________. Select one: a. loop, iteration, and refraction b. sequence, selection, and loop. c. decision, loop, and iteration d. sequence, order, and process. Answer: b. sequence, selection, and loop. ◉ A sequence structure can contain _____________. Select one: a. any number of tasks b. exactly three tasks c. only one task d. no more than three tasks.

Select one: a. nesting b. building c. stacking d. untangling. Answer: a. nesting ◉ Attaching structures end to end is called _____________. Select one: a. building b. stacking c. untangling d. nesting. Answer: b. stacking ◉ When an action is required if a condition is true, but no action is needed if it is false, you use a _____________. Select one: a. sequence b. dual-alternative selection c. single-alternative selection d. loop.

Answer: c. single-alternative selection ◉ To take action as long as a condition remains true, you use a _____________. Select one: a. selection b. loop c. stack d. sequence. Answer: b. loop ◉ When you must perform one action when a condition is true and a different one when it is false, you use a _____________. Select one: a. single-alternative selection b. dual-alternative selection c. loop d. sequence. Answer: b. dual-alternative selection ◉ Which of the following attributes do all three basic structures share?

b. is called a priming input c. executes hundreds or even thousands of times in most business programs d. is the only part of the program allowed to be unstructured. Answer: b. is called a priming input ◉ A group of statements that executes as a unit is a _____________. Select one: a. cohort b. family c. chunk d. block. Answer: d. block ◉ In a selection structure, the structure-controlling condition is______________. Select one: a. tested repeatedly until it is true b. tested once at the end of the structure c. tested once at the beginning of the structure d. tested repeatedly until it is false. Answer: c. tested once at the beginning of the structure

◉ When a loop executes, the structure-controlling condition is ______________. Select one: a. tested only if it is true, and not asked if it is false b. tested either before or after the loop body executes c. tested exactly once d. never tested more than once. Answer: b. tested either before or after the loop body executes ◉ Which of the following is not a benefit of modularizing programs? Select one: a. Modular programs are easier to read and understand than nonmodular ones. b. Multiple programmers can work on different modules at the same time. c. Modular components are reusable in other programs. d. If you use modules, you can ignore the rules of structure.. Answer: d. If you use modules, you can ignore the rules of structure. ◉ Which of the following is not a reason for enforcing structure rules in computer programs? Select one: