CSCE 101 Possible Quiz 4 Questions

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Clicking a mouse button is an example of _______________ processing.

Asynchronous

A(n) _______________ expression is used as conditions in selection and repetition statements.

Boolean

Java programs are translated into a standard machine language called _______________.

Bytecode

Which of the following is a language construct that defines the pattern for an object? A. encapsulation B. inheritance C. class D. polymorphism E. instantiation

C

A(n) _______________ is a language construct used to define the pattern from which an object is created

Class

A(n) _______________ is a program that translates a high-level language program into machine code.

Compiler

C++ is considered a procedural language with features from which other paradigm? A. procedural B. functional C. logic D. object-oriented

D

Which of the following allows a WHILE loop to be contained within the body of another while loop? A. subprogram B. parameter C. recursion D. nested logic E. asynchronous processing

D

Which of the following allows a language to have duplicate method names and to apply the method that is appropriate for a particular object? A. encapsulation B. inheritance C. class D. polymorphism E. instantiation

D

A stack is managed in a FIFO manner.

False

Stacks and queues can be implemented only as a linked structure.

False

Strong typing is a mechanism by which a high-level program is entered into a computer.

False

The operations on a list differ depending on the implementation strategy used

False

Java is considered an object-oriented language with features from which other paradigm? A. procedural B. functional C. logic D. object-oriented

A

The dominant languages used in industry throughout the history of computing software come from which paradigm? A. imperative (or procedural) B. functional C. logic D. object-oriented

A

Which level provides an abstract view of data and the operations that manipulate them? A. implementation level B. logical level C. array level D. linked level E. application level

A

Which of the following is a language feature that enforces information hiding? A. encapsulation B. inheritance C. class D. polymorphism E. instantiation

A

Which of the following language paradigms allows the programmer to express algorithms derived from a top-down design? A. procedural B. functional C. logic D. object-oriented

A

_______________ is an object-oriented mechanism in which one class is derived from another.

Inheritance

Which of the following describes a key step in object-oriented programming A. isolating the classes within a problem B. preventing objects from communicating with one another by prohibiting the invoking of one another's subprograms C. removing superfluous data values and/or methods (subprograms) from a field D. deleting a named algorithm to prevent faulty manipulation in the object E. none of the above

A

Which of the following include selection statements and repetition statements? A. control structure B. Strong typing C. data type D. Boolean expression E. declaration

A

.Which of the following is managed in a LIFO manner? A. list B. stack C. queue D. binary search tree E. graph

B

In which of the language paradigms is the addition of two values expressed as (+10 20)? A. procedural B. functional C. logic D. object-oriented

B

LISP, Scheme, and ML belong to which language paradigm? A. procedural B. functional C. logic D. object-oriented

B

Programs in which of the following paradigms have no assignment statements? A. procedural B. functional C. logic D. object-oriented

B

Programs in which of the following paradigms use recursion to express repetition? A. procedural B. functional C. logic D. object-oriented

B

Which level provides an abstract view of data and the operations that manipulate them? A. implementation level B. logical level C. array level D. linked level E. application level

B

Which of the following allows information to be passed into a subprogram? A. record B. parameter C. recursion D. nested logic E. asynchronous processing

B

Which of the following allows one class to be derived from another? A. encapsulation B. inheritance C. object D. polymorphism E. instantiation

B

Which of the following language paradigms is based on the mathematical concept of a function? A. imperative (procedural) B. functional C. logic D. imperative (object oriented)

B

Which of the following requires that only a value of the proper type can be stored into a variable? A. control structure B. strong typing C. data type D. Boolean expression E. declaration

B

Which of the following translates and executes program statements in sequence, instead of having separate translation and execution steps? A. procedure B. interpreter C. Bytecode D. paradigm E. compiler

B

A statement such as owns(mary,bo) comes from which paradigm? A. procedural B. functional C. logic D. object-oriented

C

All of the following characterize the imperative (procedural) paradigm for high level programming languages EXCEPT A. sequential execution of instructions B. use of variables to represent memory locations C. exemplified by the functional and the logic models of this paradigm D. the use of assignment statements that change the values of variables used in this paradigm. E. utilized by the dominant programming languages (BASIC, FORTRAN, C, C++, PASCAL) in the historical evolution of computer software

C

Which of the following is executed by the Java Virtual machine? A. procedure B. interpreter C. Bytecode D. paradigm E. compiler

C

Which of the following is managed in a FIFO manner? A.list B. stack C. queue D. binary search tree E. graph

C

Which of the following is the ability for a subprogram to call itself? A. argument B. parameter C. recursion D. nested logic E. asynchronous processing

C

Which of the following languages allow only value parameters? A. Java and C++ B. C++ and VB.NET C. Python and Java D. VB.NET and Java E. All of the above

C

Which of the following languages does NOT enclose the expression in a WHILE statement in parenthesis? A. Java B. C++ C. Python D. VB.NET E. All of the above

C

Which of the following languages does not require declarations? A. Java B. C++ C. Python D. VB.NET E. All of the above

C

Which of the following languages uses indentions to indicate blocks of code? A. Java B. C++ C. Python D. VB.NET E. All of the above

C

Which of the following languages uses the word then with the IF statement? A. Java B. C++ C. Python D. VB.NET E. All of the above

C

Which of the following paradigms is based on a set of facts about objects and rules about relationships among the objects? A. procedural B. functional C. logic D. object-oriented

C

Which of the following paradigms is based on the mathematical concepts of symbolic logic? A. procedural B. functional C. logic D. object-oriented

C

Which of the following produces a true or false result? A. control structure B. strong typing C. data type D. Boolean expression E. declaration

D

All of the following are considered simple or atomic data types EXCEPT: A. integers B. reals C. characters D. Booleans E. lists

E

Clicking a mouse button is an example of which of the following? A. subprogram B. parameter C. recursion D. nested logic E. asynchronous processing

E

Which level provides a view of data that focuses on solving a particular problem? A. implementation level B. logical level C. array level D. linked level E. application level

E

Which of the following associates a variable name with its data type? A. control structure B. strong typing C. comment D. Boolean expression E. declaration

E

Which of the following does NOT represent one of the four stages of the object-oriented design process? A. brainstorming B. filtering C. responsibility algorithms D. scenarios E. information hiding

E

Which of the following is the process of creating an object from a class? A. encapsulation B. inheritance C. class polystation D. polymorphism E. instantiation

E

Which of the following languages has an IF statement for making decisions? A. Java B. C++ C. Python D. VB.NET E. All of the above

E

Which of the following languages uses Boolean expressions in their selection and repetition statements? A. Java B. C++ C. Python D. VB.NET E. All of the above

E

Which of the following translates a high-level language program into machine code? A. procedure B. interpreter C. Bytecode D. paradigm E. compiler

E

._______________ is a language feature that enforces information hiding.

Encapsulation

A compiler and an interpreter produce the same output.

False

A declaration is an example of a control structure.

False

A loop can be nested within a selection statement, but a selection statement cannot be nested within a loop.

False

The properties of an abstract data type are tightly related to the implementation of that data type.

False

Two identifiers with the same spelling but different capitalization are considered to be the same identifiers in languages that are case sensitive.

False

Creating an object from a class is called _______________.

Instantiation

A(n) _______________ is a program that translates and executes the statements of a high-level language in sequence.

Interpreter

._______________ is an object-oriented mechanism that allows duplicate method names and the ability to apply the method that is appropriate for a certain object.

Polymorphism

A(n) _______________ parameter accepts the address of its argument.

Reference

A WHILE statement is an example of a _______________ statement.

Repetition

An IF statement is an example of a _______________ statement.

Selection

A class as a language construct is a pattern for an object.

True

A compiler and an interpreter both accept a program in a high-level language as input.

True

A compiler translates a high-level language program into the corresponding program in machine code.

True

A parameter is a mechanism that allows data to be passed into a subprogram.

True

A queue is managed in a FIFO manner

True

A queue is similar to a waiting line at a bank.

True

A variable declaration associates the variable name with a data

True

An IF statement is an example of a control structure

True

An interpreter is a simulator that executes high-level language code directly

True

Boolean expressions are used to make decisions in a high-level language.

True

Bytecode is a standard machine language into which Java source code is compiled.

True

Clicking a mouse is an example of asynchronous processing.

True

Encapsulation is a language feature that enforces information hiding.

True

In asynchronous processing, the processing is under the control of events occurring outside the sequence of processing instructions.

True

Instantiation is the process of creating an object from a class.

True

Polymorphism is the ability of a language to have duplicate method names in an inheritance hierarchy and to apply the method that is appropriate for the object to which the method is applied.

True

Second generation high-level programming languages come in one of two varieties: those that are compiled such as COBOL and those that are interpreted like APL.

True

The Java Virtual Machine is a hypothetical computer that executes Bytecode.

True

The operations on a stack occur at one end.

True

The two general approaches for implementing a container are array-based and linked implementations.

True

A(n) _______________ parameter accepts a copy of its argument

Value

A(n) _______ ________ is an instruction that determines the order in which other instructions in a program are executed.

control structure

A(n) _______________ is a description of a set of values and the operations that can be applied to those values.

data type

A(n) _______________ is a statement that associates an identifier with a variable.

declaration

Which of the following languages can be used to create an infinite loop? A. Java B. C++ C. Python D. VB.NET E. All of the above

e

Lisp, Scheme, and ML are languages in the _______________ programming paradigm.

functional

The _______________ programming paradigm is based on the mathematical concept of a function.

functional

Simula and Smalltalk were the first two languages in the _______________ programming paradigm.

object-oriented

A(n) _______________ is a model or pattern that establish a set of assumptions and practices.

paradigm

A(n) _______________ is the mechanism by which a value is passed into a subprogram. Answer:

parameter

Removing an item from a stack is called the _______________ operation

pop

Adding an item to a stack is called the _______________ operation.

push

A(n) _______________ is an abstract data type behaves in a manner similar to a waiting line at a bank or supermarket.

queue

A(n) _______________ is an abstract data type that operates on a "first in, first out" (FIFO) manner.

queue

A(n) ______ _________ is a word in a language that has special meaning and thus cannot be used as an identifier.

reserved word

A(n) _______________ is an abstract data type that operates on a "last in, first out" (LIFO) manner.

stack

A_____________________ is a sequence of characters that in some languages can be considered as one data value.

string

The requirement that only a value of the proper type can be stored into a variable is called _______________.

strong typing

A Boolean expression evaluates to either ____________ or ___________________.

true; false


संबंधित स्टडी सेट्स

Module 2: Health Promotion and Disease Prevention.

View Set

2.2 legal and ethical responsibilities; privacy and security

View Set

Path 370 Assessment 1 (CH. 1, 2, 4, 7)

View Set

thanks for making me make a quizlet during summer elizabeth :)

View Set

Topic 2: Database Management System Architectures

View Set

PRAXIS Elementary Social Studies 5904/5004

View Set