Skip to main content

Applied Computing Practice Exam - 899 Verified Questions

Page 1


Applied Computing Practice Exam

Course Introduction

Applied Computing explores the practical application of computer science principles and computational techniques to solve real-world problems across various industries. The course covers topics such as programming, data analysis, networking, databases, and software development, while emphasizing hands-on experience through projects and case studies. Students learn how to utilize computing tools and methodologies to address challenges in business, science, engineering, and beyond, preparing them for professional roles that require both technical proficiency and problem-solving skills.

Recommended Textbook

C++ Programming From Problem Analysis to Program Design 6th Edition by D.S. Malik

Available Study Resources on Quizplus

18 Chapters

899 Verified Questions

899 Flashcards

Source URL: https://quizplus.com/study-set/1103

Page 2

Chapter 1: An Overview of Computers and Programming Languages

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/128446

Sample Questions

Q1) The device that stores information permanently (unless the device becomes unusable or you change the information by rewriting it) is called primary storage.

A)True

B)False

Answer: False

Q2) To develop a program to solve a problem, you start by analyzing the problem.

A)True

B)False

Answer: True

Q3) Word processors, spreadsheets, and games are examples of

Answer: application programs applications

Q4) The machine language version of the high-level language program is called a(n)

Answer: object program

Q5) In C++, the mechanism that allows you to combine data and operations on the data into a single unit is called a(n) ____________________.

Answer: class

To view all questions and flashcards with answers, click on the resource link above. Page 3

Chapter 2: Basic Elements of C

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/21709

Sample Questions

Q1) The maximum number of significant digits in float values is up to 6 or 7.

A)True

B)False

Answer: True

Q2) The memory allocated for a float value is ____ bytes.

A) two

B) four

C) eight

D) sixteen

Answer: B

Q3) Suppose that count is an int variable and count = 1. After the statement count++; executes, the value of count is ____.

A) 1

B) 2

C) 3

D) 4

Answer: B

Q4) The smallest individual unit of a program written in any language is called a(n)

Answer: token

Page 4

To view all questions and flashcards with answers, click on the resource link above.

Chapter 3: Inputoutput

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/21710

Sample Questions

Q1) C++ comes with a wealth of functions, called ____________________ functions, that are written by other programmers.

Answer: predefined

pre defined

pre-defined

Q2) Suppose that x is an int variable and y is a double variable and the input is: 10 20.7

Choose the values after the following statement executes: cin >> x >> y;.

A) x = 10, y = 20

B) x = 10, y = 20.0

C) x = 10, y = 20.7

D) x = 10, y = 21.0

Answer: C

Q3) Suppose that x and y are int variables. Which of the following is a valid input statement?

A) cin >> x >> cin >> y;

B) cin >> x >> y;

C) cin << x << y;

D) cout << x << y;

Answer: B

To view all questions and flashcards with answers, click on the resource link above.

Page 5

Chapter 4: Control Structures I Selection

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/21711

Sample Questions

Q1) Suppose x is 5 and y is 7. Choose the value of the following expression: (x != 7) && (x <= y)

A) false

B) true

C) 0

D) null

Q2) Once an input stream enters a(n) ____________________ state, all subsequent input statements associated with that input stream are ignored, and the computer continues to execute the program, which produces erroneous results.

Q3) A compound statement functions as if it was a single statement.

A)True

B)False

Q4) The ____________________ of relational and logical operators is said to be from left to right.

Q5) The conditional operator ?: takes ____ arguments.

A) two

B) three

C) four

D) five

To view all questions and flashcards with answers, click on the resource link above. Page 6

Chapter 5: Control Structures II Repetition

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/21712

Sample Questions

Q1) Putting one control structure statement inside another is called ____________________.

Q2) ____ loops are called posttest loops.

A) break

B) for C) while D) do...while

Q3) Which of the following loops does not have an entry condition?

A) EOF-controlled while loop

B) sentinel-controlled while loop C) do...while loop

D) for loop

Q4) In a(n) "____________________" problem, either the loop executes one too many or one too few times.

Q5) In a sentinel-controlled while loop, the body of the loop continues to execute until the EOF symbol is read.

A)True

B)False

Q6) The function eof is a member of the data type ____________________.

To view all questions and flashcards with answers, click on the resource link above. Page 7

Q7) The ____________________ loop has an exit condition but no entry condition.

Chapter 6: User-Defined Functions

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/21713

Sample Questions

Q1) The ____________________ of an identifier refers to where in the program an identifier is accessible (visible).

Q2) Given the following function prototype: double tryMe(double, double);, which of the following statements is valid? Assume that all variables are properly declared.

A) cin >> tryMe(x);

B) cout << tryMe(2.0, 3.0);

C) cout << tryMe(tryMe(double, double), double);

D) cout << tryMe(tryMe(float, float), float);

Q3) Given the function prototype: float test(int, int, int); Which of the following statements is legal?

A) cout << test(7, test(14, 23));

B) cout << test(test(7, 14), 23);

C) cout << test(14, 23);

D) cout << test(7, 14, 23);

Q4) A function prototype is ____.

A) a definition, but not a declaration

B) a declaration and a definition

C) a declaration, but not a definition

D) a comment line

To view all questions and flashcards with answers, click on the resource link above. Page 8

Chapter 7:

User-Defined Simple Data Types, Namespaces, and the String Type

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/21714

Sample Questions

Q1) Suppose str = "xyzw";. After the statement str[2] = 'Y'; The value of str is "____".

A) xyzw

B) xYzw

C) xyYw

D) xzYw

Q2) Before using the data type string, the program must include the header file ____.

A) enum

B) iostream

C) string

D) std

Q3) Considering the statement string str = "Gone with the wind";, the output of the statement cout << str.find("the") << endl; is ____.

A) 9

B) 10

C) 11

D) 12

Q4) Suppose str = "abcd"; After the statement str[1] = 'A'; The value of str is "____________________".

9

To view all questions and flashcards with answers, click on the resource link above.

Chapter 8: Arrays and Strings

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/21715

Sample Questions

Q1) For a list of length n, the ____________________ sort makes exactly (n(n - 1))/2 key comparisons and 3(n-1) item assignments.

Q2) In row order form, the ____.

A) first row is stored first B) first row is stored last C) first column is stored first D) first column is stored last

Q3) Which of the following correctly declares and initializes alpha to be an array of four rows and three columns with the component type int?

A) int alpha[4][3] = {{0,1,2} {1,2,3} {2,3,4} {3,4,5}};

B) int alpha[4][3] = {0,1,2; 1,2,3; 2,3,4; 3,4,5};

C) int alpha[4][3] = {0,1,2: 1,2,3: 2,3,4: 3,4,5};

D) int alpha[4][3] = {{0,1,2}, {1,2,3}, {2,3,4}, {3,4,5}};

Q4) In the following declaration, the array gamma has ____________________ components. int gamma[5][6][10];

Q5) The declaration char str[] = "Hello there"; declares str to be a string of ____________________ characters.

Q6) The statement strlen("Marylin Stewart"); returns ____________________.

Page 10

To view all questions and flashcards with answers, click on the resource link above.

Chapter 9: Records Structs

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/21716

Sample Questions

Q1) An array name and index are separated using ____.

A) curly brackets

B) square brackets

C) a dot

D) a comma

Q2) Aggregate input/output operations are allowed on a struct variable.

A)True

B)False

Q3) A list has two items associated with it: ____.

A) the length and the references

B) the values and the references

C) the indexes and the length

D) the values and the length

Q4) Which of the following is an allowable aggregate operation on a struct?

A) Arithmetic

B) Assignment

C) Input/output

D) Comparison

Q5) Arrays are passed by ____________________ only.

Q6) A(n) ____________________ is a set of elements of the same type.

Page 11

To view all questions and flashcards with answers, click on the resource link above.

Chapter 10: Classes and Data Abstraction

Available Study Resources on Quizplus for this Chatper

49 Verified Questions

49 Flashcards

Source URL: https://quizplus.com/quiz/21717

Sample Questions

Q1) By default, all members of a class are ____________________.

Q2) A(n) ____________________ is a statement specifying the condition(s) that must be true before the function is called.

Q3) Object code is produced from a(n) ____________________.

Q4) You can use arithmetic operators to perform arithmetic operations on class objects. A)True B)False

Q5) In C++, the ____ is an operator called the member access operator. A) . B) , C) :: D) #

Q6) A constructor with no parameters is called the ____________________ constructor.

Q7) Consider the accompanying class definition in Figure 2. Which of the following variable declarations is correct?

A) rectangle rectangleType; B) class rectangleType rectangle; C) rectangleType rectangle; D) rectangle rectangleType.area;

To view all questions and flashcards with answers, click on the resource link above. Page 12

Chapter 11: Inheritance and Composition

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/21718

Sample Questions

Q1) A call to the base class's constructor is specified in the heading of the definition of a derived class constructor.

A)True B)False

Q2) In object-oriented design, we debug ____________________; in structured programming, we debug functions.

Q3) The class io is the base class of the C++ stream classes istream and ostream. A)True

B)False

Q4) The preprocessor directive ____________________ is used to prevent multiple inclusions of a header file in a program.

Q5) A derived class can directly access the protected members of the base class. A)True B)False

Q6) The private members of a base class can be directly accessed by a derived class. A)True B)False

Q7) In the case of composition, the ____________________ name is used to invoke the constructor.

To view all questions and flashcards with answers, click on the resource link above. Page 13

Chapter 12: Pointers, Classes, Virtual Functions, and

Abstract Classes

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/21719

Sample Questions

Q1) Which of the following would be appropriate syntax for the heading of a copy constructor for a class called rulerType?

A) rulerType(int inches, int centimeters)

B) rulerType()

C) rulerType(const rulerType& myRuler)

D) copy rulerType(int inches, int centimeters)

Q2) What is the value of x after the following statements execute? int x = 25; Int *p; P = &x; *p = 46;

A) NULL

B) 0

C) 25 D) 46

Q3) The binding of virtual functions occurs at program ____________________ time.

Q4) In a ____ copy, two or more pointers of the same type point to the same memory. A) static B) shallow

Page 14

C) dynamic

D) deep

To view all questions and flashcards with answers, click on the resource link above.

Chapter 13: Overloading and Templates

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/21720

Sample Questions

Q1) In C++, a function ____________________ can be overloaded.

Q2) The general syntax to overload the stream extraction operator >> for a class is ____.

A) istream& operator>>(istream&, className&);

B) const istream& operator>>(istream&, className&);

C) friend operator>>(istream&, className&);

D) friend istream& operator>>(istream&, className&);

Q3) In C++, operator is a reserved word.

A)True

B)False

Q4) If you overload the binary arithmetic operator + as a member function, how many objects must be passed as parameters?

A) none

B) one

C) two

D) three

Q5) To overload a(n) ____________________ operator for a class, if the operator function is a nonmember, it has one parameter.

Q6) A conversion constructor is a(n) ____________________-parameter function.

To view all questions and flashcards with answers, click on the resource link above. Page 15

Chapter 14: Exception Handling

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/21721

Sample

Questions

Q1) Suppose you have written a program that inputs data from a file. If the input file does not exist when the program executes, then you should choose which option?

A) Terminate the program.

B) Include code in the program to recover from the exception.

C) Log the error and continue.

D) Include code in the header file.

Q2) The function ____ can check whether an expression meets the required conditions; if the conditions are not met, it terminates the program.

A) check

B) look

C) assert

D) what

Q3) The ____________________ of the catch block parameter specifies the type of exception that the catch block can catch.

Q4) The order of the catch blocks does not affect the program.

A)True

B)False

Q5) The class ____________________ contains the function what.

To view all questions and flashcards with answers, click on the resource link above. Page 16

Chapter 15: Recursion

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/21722

Sample Questions

Q1) If every recursive call results in another recursive call, then the recursive function (algorithm) is said to have ____ recursion.

A) unlimited

B) indefinite

C) infinite

D) tail

Q2) Consider the following code. int fact(int num)

{ if (num == 0)

\(\quad\)return 1; else

\(\quad\)return num * fact(num - 1); }

The function fact is an example of a(n) ____________________ recursive function.

Q3) The recursive algorithm must have one or more base cases, and the general solution must eventually be reduced to a(n) ____________________.

Q4) Recursive algorithms are implemented using ____________________ functions.

Q5) The rightmost bit of the binary representation of 33 is ____________________.

Page 17

To view all questions and flashcards with answers, click on the resource link above.

Chapter 16: Searching, Sorting and the Vector Type

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/21723

Sample Questions

Q1) Assume that n = 1000. To sort the list, insertion sort makes about 250,000 item assignments.

A)True

B)False

Q2) Assume that n = 1000. To sort the list, bubble sort makes about ____ item assignments.

A) 10,000

B) 100,000

C) 250,000

D) 500,000

Q3) The size of a list is fixed and cannot be increased or decreased.

A)True

B)False

Q4) For a list of length n, the bubble sort makes exactly ____ key comparisons.

A) n(n-1)/2

B) n(n-1)/3

C) n(n-1)/4

D) (n-1)/2

Q5) For a list size of 1000, on average, the sequential search makes about ____________________ key comparisons.

Page 18

To view all questions and flashcards with answers, click on the resource link above.

Chapter 17: Linked Lists

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/21724

Sample Questions

Q1) We deallocate the memory for a linked list by calling the operator clear.

A)True

B)False

Q2) In a linked list, the link component of each node is a(n) ____________________.

Q3) In a linked list, the ____________________ operator returns the info of the current node.

Q4) The ____________________ constructor executes when an object is declared and initialized using another object.

Q5) When building a linked list in the ____ manner, a new node is always inserted at the end of the linked list.

A) backward

B) forward

C) traversal

D) random

Q6) If a formal parameter is a value parameter, the ____________________ constructor provides the formal parameter with its own copy of the data.

Q7) A linked list must be searched ____________________, starting from the first node.

Page 19

Q8) In C++, the dereferencing operator is ____________________.

To view all questions and flashcards with answers, click on the resource link above.

Chapter 18: Stacks and Queues

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/21725

Sample Questions

Q1) You can perform the add operation, called ____, to add an element onto the stack.

A) pop

B) push

C) enqueue

D) dequeue

Q2) The default constructor for the linked implementation of a stack initializes the stack to an empty state when a stack object is declared.

A)True

B)False

Q3) ____________________ techniques are used when it is too expensive or dangerous to experiment with real systems.

Q4) In a queuing system, every customer has a customer number, arrival time, ____________________ time, transaction time, and departure time.

Q5) The postfix expression 2 4 6 * + 15 - 21 7 / + = evaluates to ____.

A) 4

B) 14

C) 24

D) 26

To view all questions and flashcards with answers, click on the resource link above.

Page 20

Turn static files into dynamic content formats.

Create a flipbook
Applied Computing Practice Exam - 899 Verified Questions by Quizplus - Issuu