MIS 525 Week 2 Quiz | Devry University

MIS 525 Week 2 Quiz | Devry University

Week 2 Review Questions - ONLINE VERSION

Question 1

What does a declaration provide for a variable?  

·         a name  

·         a data type    

·         both of the above 

·         none of the above

 

 Question 2

A variable s data type describes all of the following except _____.  

·         what values the variable can hold  

·         how the variable is stored in memory   

·         what operations can be performed with the variable   

·         the scope of the variable

 

 Question 3

The value stored in an uninitialized variable is _____.  

·         garbage  

·         null  

·         compost  

·         its identifier

 

 Question 4

The value 3 is a _____.

·         numeric variable    

·         numeric constant  

·         string variable 

·         string constant

 

 Question 5

The assignment operator _____.

 

·         is a binary operator  

·         has left-to-right associativity 

·         is most often represented by a colon 

·         two of the above

 

 Question 6

Which of the following is true about arithmetic precedence?  

·         Multiplication has a higher precedence than division. 

·         Operators with the lowest precedence always have left-to-right associativity.  

·         Division has higher precedence than subtraction.  

·         all of the above

 

Question 7

Which of the following is a term used as a synonym for module in any programming language? 

·         method 

·         procedure    

·         both of these    

·         none of these

 

Question 8

Which of the following is a reason to use modularization?  

·         Modularization avoids abstraction.  

·         Modularization reduces overhead.   

·         Modularization allows you to more easily reuse your work. 

·         Modularization eliminates the need for syntax.

 

Question 9

What is the name for the process of paying attention to important properties while ignoring nonessential details? 

·         abstraction  

·         extraction 

·         extinction

·         modularization

·          

Question 10

Every module has all of the following except _____.  

·         a header  

·         local variables  

·         a body  

·         a return statement

 

 Question 11

"Programmers say that one module can _____ another, meaning that the first module causes the second module to execute."  

·         declare  

·         define 

·         enact 

·         call

 

 Question 12

"The more that a module s statements contribute to the same job, the greater the _____ of the module."  

·         structure  

·         modularity  

·         functional cohesion  

·         size

 

Question 13

"In most modern programming languages, when a variable or constant is declared in a module, the variable or constant is _____ in that module." 

·         global 

·         invisible  

·         in scope 

·         undefined

 

 Question 14

Which of the following is not a typical housekeeping task? 

·         displaying instructions  

·         printing summaries 

·         opening files 

·         displaying report headings

 

 Question 15

Which module in a typical program will execute the most times?  

·         the housekeeping module   

·         the detail loop 

·         the end-of-job module  

·         It is different in every program.

 

 Question 16

A hierarchy chart tells you _____.  

·         what tasks are to be performed within each program module  

·         when a module executes   

·         which routines call which other routines  

·         all of the above

 

Question 17

What are nonexecuting statements that programmers place within their code to explain program statements in English? 

·         comments 

·         pseudocode  

·         trivia 

·         user documentation

 

 Question 18

Program comments are _____.  

·         required to create a runnable program 

·         a form of external documentation 

·         both of the above 

·         none of the above

·          

Question 19

Which of the following is valid advice for naming variables?  

·         "To save typing, make most variable names one or two letters."  

·         "To avoid conflict with names that others are using, use unusual or unpronounceable names."  

·         "To make names easier to read, separate long words by using underscores or capitalization for each new word."  

·         "To maintain your independence, shun the conventions of your organization."

 

Question 20

A message that asks a user for input is a _____. 

·         Comment

·         prompt  

·         echo  

·         declaration

 

 

Answer Detail

Get This Answer

Invite Tutor