Exam 12: Computer Programming

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Why is the GOTO command rarely used by skilled programmers?

(Essay)
4.8/5
(25)

Critical Thinking questions (Multiple Choice) Suppose you have defined a method called getArea() for the Pizza subclasses RoundPizza, RectanglePizza, and TrianglePizza. When getArea() is called at run-time, the object-appropriate version is invoked using the feature of ____.

(Multiple Choice)
4.8/5
(38)

Which of the following is a repetition command?

(Multiple Choice)
4.9/5
(32)

____ English is a subset of the English language with a limited selection of sentence structures that reflect processing activities.

(Multiple Choice)
4.8/5
(37)

A method is activated by a(n) ____________________, which is included as a line of program code that is sometimes referred to as a call.

(Short Answer)
4.8/5
(41)
Identify the letter of the choice that best matches the phrase or definition.
Premises:
Steps through a program and monitors the status of variables, input, and output
Responses:
declarative paradigm
FORTRAN
computer program
Correct Answer:
Verified
Premises:
Responses:
Steps through a program and monitors the status of variables, input, and output
declarative paradigm
(Matching)
4.9/5
(34)
Identify the letter of the choice that best matches the phrase or definition.
Premises:
A placeholder that is available and into which information can be placed
Responses:
polymorphism
class attribute
inheritance
Correct Answer:
Verified
Premises:
Responses:
A placeholder that is available and into which information can be placed
polymorphism
(Matching)
4.8/5
(34)

Case 3 Linda's pizza program on ordering size, price, and shape will be completed in Java. She has finished the flowchart and the pseudocode. The classes and methods are placed within the structure of a Java program, which contains class definitions, defines methods, initiates the comparison, and outputs results. A Java program on the pizza orders begins executing by locating _____.

(Multiple Choice)
4.8/5
(39)

What are the advantages and disadvantages of declarative languages?

(Essay)
4.8/5
(46)
Identify the letter of the choice that best matches the phrase or definition.
Premises:
Consists of lines of code that tell a computer how to solve a problem or carry out a task
Responses:
subroutine
C++
inheritance
Correct Answer:
Verified
Premises:
Responses:
Consists of lines of code that tell a computer how to solve a problem or carry out a task
subroutine
(Matching)
4.9/5
(43)

Keywords and parameters are combined with punctuation according to a series of rules called syntax .

(True/False)
4.8/5
(36)

What are the advantages and disadvantages of the object-oriented paradigm?

(Essay)
4.8/5
(32)

Which of the following is NOT true about signed certificates?

(Multiple Choice)
4.8/5
(35)

Case 2 Robert wants to design a program for ordering pizza. He has completed a flowchart that illustrates how the computer should proceed through the instructions in the final program. The shape, price, and size of the pizza are presented as input. The output expresses which pizza is the best deal after being asked for a decision on the input. He has also created a UML (Unified Modeling Language) diagram. Before finalizing the algorithm for the pizza computer program, how will Robert know his algorithm is correct?

(Multiple Choice)
4.9/5
(33)

Defensive programming is an approach to software development in which programmers anticipate what might go wrong as their programs run, and take steps to smoothly handle those situations.

(True/False)
4.7/5
(37)

The names of methods usually end in a set of ____.

(Multiple Choice)
4.8/5
(35)

A(n) ____ control structure changes the order in which instructions are executed by directing the computer to execute an instruction elsewhere in the program.

(Multiple Choice)
4.8/5
(28)

Write a simple BASIC program that uses the FOR...NEXT command to print a message three times.

(Essay)
4.8/5
(33)

Buffer overflows cannot be prevented.

(True/False)
4.8/5
(30)

Fourth-generation languages, such as SQL, are typically used for ____.

(Multiple Choice)
4.9/5
(42)
Showing 121 - 140 of 175
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)