Archives
CAPP 45484
Which statement is true? a) The do while iteration statement is an alternate notation for the while iteration statement; these statements function identically. b) The do while iteration statement tests the loop-continuation condition before the loop body is performed. c) […]
CAPP 51387
How many pointers are contained in a circular, doubly linked list with five nodes? (a) 5 (b) 8 (c) 15 (d) 10 Which statement about the #include directive is false? a) The difference between the various forms of the #include […]
CAPP 73876
Pointers cannot be used to (a) find the address of a variable in memory. (b) reference values directly. (c) simulate call-by-reference. (d) manipulate dynamic data structures. Q2: Which of the following is false about the following function prototype? void functionA( […]
CAPP 85937
In indefinite iteration, an input value (a) should always be evaluated before being processed (b) should always be processed directly after it is entered (c) should never be modified (d) can be entered, processed, and evaluated in any order Q2: […]
CAS CS 91764
Q1: In the source-code file containing a class’s member function definitions, each member function definition must be tied to the class definition by preceding the member function name with the class name and ::, which is known as the: a. […]
CDA 16217
Which of the following is not part of the FILE structure specified in <stdio.h>? (a) file descriptor (b) open file table (c) read/write methods (d) file control block In the line int main() the parentheses indicate that main is a […]
CDA 38315
Q2: When deriving a class from a protected base class, the public members of the base class become _________ and the protected members of the base class become __________? a. protected, private b. public, private c. protected, protected d. public, […]
CDA 55096
Experience has shown that the best way to construct a program is from small pieces. This is called __________. a) bottom up b) the whole is greater than the sum of the parts c) divide and conquer d) recursion What’s […]
CDA 60589
Which include statement is usually appropriate for user-defined files? (a) include <filename> (b) #include “filename” (c) Both (a) and (b) are appropriate. (d) Neither (a) nor (b) is appropriate. All of the following are true of functions except: (a) they […]
CDA 74190
The following line is most properly an example of a __________. puts( “Welcome to C!” ); a) function b) block c) statement d) header Q1: Which of the following does the C++ compiler not examine in order to select the […]
CDA 86355
The OR (||) operator (a) has higher precedence than the AND (&&) operator (b) stops evaluation upon finding one condition to be true (c) associates from right to left (d) is a ternary operator A node can only be inserted […]
CDA 96351
Evaluate the expression 3 * 4 % 6 + 4 * 5 (a) 20 (b) 26 (c) 12 (d) 32 The ________ character reads data from the input stream and discards the data. (a) % (b) conversion specifier (c) assignment […]
CICS 48671
Q3: A copy constructor: a. Is a constructor with only default arguments. b. Is a constructor that initializes a newly declared object to the value of an existing object of the same class. c. Is a constructor that takes no […]
CICS 72965
Which statement about scan sets is false? a) A scan set is a set of characters enclosed in parentheses and preceded by a percent sign in the format control string. b) A scan set scans the characters in the input […]
CICS 97204
Which statement about symbolic constants and/or macros is true? a) The effects of symbolic constants and macros, once defined, cannot be modified. b) Preprocessor directive #removedef undefines a symbolic constant or macro. c) The scope of a symbolic constant or […]
CMCS 13846
Q1: Which statement is false? a. Based on whether an operator is implemented as a member function or as a non-member function, the operator is used differently in expressions. b. When an operator function is implemented as a member function, […]
COMP 89767
A linked list has the functions insertAtFront, removeFromFront, insertAtBack, and removeFromBack, which perform operations on nodes exactly as their names describe. Which two functions would most naturally model the operation of a queue? (a) insertAtBackand removeFromBack. (b) insertAtBackand removeFromFront. (c) […]
COMPSCI 33277
Specifying the order in which statements are to be executed in a computer program is called (a) an algorithm (b) transfer of control (c) program control (d) pseudocode Function __________ searches for the first occurrence of a character in a […]
COMPSCI 40173
Which statement is true of the << operator? a) It’s called the right shift operator. b) It’s called the bitwise right shift operator. c) It shifts the bits of the second operand left by the number of bits specified by […]
COMPSCI 72943
The strtol and stroul functions do not (a) need a special header file in order to be used. (b) take three arguments. (c) have to convert the entire string they are given. (d) have the ability to output data in […]
COP 42134
Which statement is true? a) The boss function normally knows how the worker function performs its designated tasks. b) A worker function may not call other worker functions. c) “Hiding” of implementation details makes it difficult to understand software. d) […]
COP 45079
Computer programs are __________. (a) sequences of instructions (b) the information processed by the computer (c) the various devices (disks, memory, keyboard) that comprise a computer system (d) the people programming the computers Which integer conversion specifier would display the […]
COP 86059
Q2: Which of the following preprocessor directives does not constitute part of the preprocessor wrapper? a. #define b. #endif c. #ifndef d. #include Q1: When composition (one object having another object as a member) is used: a. The host object […]
COSC 15987
Which of the following is a function that reads a specified number of bytes from a file into memory? (a) fseek (b) fwrite (c) fread (d) fopen Which statement is false? a) Bit field manipulations are machine dependent. b) Bit […]
COSC 29185
Q2: Base class constructors and assignment operators: a. Are not inherited by derived classes. b. Should not be called by derived class constructors and assignment operators. c. Can be inherited by derived classes, but generally are not. d. Can call […]
COSC 35305
Which of the following will generate an error? (a) if (answer == 7) { puts(“correct”); } else { puts(“incorrect”); } (b) puts(answer == 7 ? “correct” : “incorrect”); (c) printf(“%s\n”, answer == 7 ? “correct” : “incorrect”); (d) answer == […]
CS 46708
. Which statement is false? a) Structures are derived data types. b) Each structure definition must end with a semicolon. c) A structure can contain an instance of itself. d) Structures may not be compared using operators == and !=. […]
MPCS 64599
Which statement about conditional compilation is false? a) Conditional compilation is commonly used as a debugging aid. b) For debugging purposes, printf statements can be enclosed in conditional preprocessor directives so that the statements are compiled only while the debugging […]