

![]()


Object-Oriented Programming introduces the fundamental principles of designing and implementing software using the object-oriented paradigm. The course covers core concepts such as classes, objects, encapsulation, inheritance, polymorphism, and abstraction. Students will learn to structure code for modularity and reusability, develop problem-solving skills using object-oriented methodologies, and gain practical experience through programming assignments and projects in a modern object-oriented language such as Java or C++. By the end of the course, students will be able to analyze problems, design object-oriented solutions, and implement efficient programs that demonstrate best practices in software development.
Recommended Textbook C++ Programming Program Design Including Data Structures 6th Edition by D.S. Malik
Available Study Resources on Quizplus
21 Chapters
1050 Verified Questions
1050 Flashcards
Source URL: https://quizplus.com/study-set/319 Page 2

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/128444
Sample Questions
Q1) Main memory is called ____.
A) read only memory
B) random access memory
C) read and write memory
D) random read only memory
Answer: B
Q2) To develop a program to solve a problem,you start by ____.
A) analyzing the problem
B) implementing the solution in C++
C) designing the algorithm
D) entering the solution into a computer system
Answer: A
Q3) The basic commands that a computer performs are input (get data),output (display result),storage,and performance of arithmetic and logical operations.
A)True
B)False
Answer: True
Q4) Word processors,spreadsheets,and games are examples of ____________________.
Answer: application programs applications
To view all questions and flashcards with answers, click on the resource link above. Page 3

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5305
Sample Questions
Q1) Which of the following is a legal identifier?
A) program!
B) program_1
C) 1program
D) program 1
Answer: B
Q2) ____________________ functions are those that have already been written and are provided as part of the system.
Answer: Predefined predefined Standard standard
Q3) ____ is a valid int value.
A) 46,259
B) 46259
C) 462.59
D) -32.00
Answer: B
Q4) A(n)____________________ is a memory location whose contents can be changed.
Answer: variable
To view all questions and flashcards with answers, click on the resource link above. Page 4

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5306
Sample Questions
Q1) You can disable the manipulator left by using the stream function ____________________.
Answer: unsetf
Q2) Suppose that alpha,beta,and gamma are int variables and the input is:
100 110 120
200 210 220
300 310 320 What is the value of gamma after the following statements execute? cin >> alpha; cin.ignore(100,'\n'); cin >> beta; cin.ignore(100,'\n'); cin >> gamma; A) 100 B) 200 C) 300 D) 320
Answer: C
Q3) In C++,the dot is an operator called the ____________________operator. Answer: member access
To view all questions and flashcards with answers, click on the resource link above. Page 5

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5307
Sample Questions
Q1) A control structure alters the normal sequential flow of execution in a program.
A)True
B)False
Q2) 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
Q3) Which of the following will cause a logical error if you are attempting to compare x to 5?
A) if (x == 5)
B) if (x = 5)
C) if (x <= 5)
D) if (x >= 5)
Q4) In C++,!,&&,and || are called relational operators.
A)True
B)False
Q5) Every else must be paired with a(n)____________________.
Q6) The symbol > is a(n)____________________ operator.
Page 6
To view all questions and flashcards with answers, click on the resource link above.

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/128467
Sample Questions
Q1) In a while and for loop,the loop condition is evaluated before executing the body of the loop.Therefore,while and for loops are called ____________________ loops.
Q2) What executes immediately after a continue statement in a while and do-while loop?
A) loop-continue test
B) update statement
C) loop condition
D) the body of the loop
Q3) What is the next Fibonacci number in the following sequence? 1,1,2,3,5,8,13,21,...
A) 34
B) 43
C) 56
D) 273
Q4) The ____ statement can be used to eliminate the use of certain (flag)variables. A) while B) switch
C) break
D) if
To view all questions and flashcards with answers, click on the resource link above. Page 7

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5309
Sample Questions
Q1) 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
Q2) The execution of a return statement in a user-defined function terminates the program.
A)True
B)False
Q3) A variable or expression listed in a call to a function is called the ____.
A) formal parameter
B) actual parameter
C) data type
D) type of the function
Q4) The following return statement returns the value 10. return 10,16;
A)True
B)False
Q5) A(n)____________________ parameter s a formal parameter that receives a copy of the content of the corresponding actual parameter.
Page 8
To view all questions and flashcards with answers, click on the resource link above.

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5310
Sample Questions
Q1) What is the output of the following code? enum courses {ALGEBRA,BASIC,PASCAL,PHILOSOPHY,ANALYSIS};
Courses registered;
Registered = ALGEBRA;
Cout << registered << endl;
A) ALGEBRA
B) 0
C) 1
D) "ALGEBRA"
Q2) The values in the domain of an enumeration type are called
Q3) Consider the following statements: string str1 = "ABCDEFGHIJKLM";
String str2;
After the statement str2 = str1.substr(1,4); executes,the value of str2 is "____".
A) ABCD
B) BCDE
C) BCD
D) CDE
Q4) The string expression strVar.____________________ deletes n characters from strVar starting at position pos.
To view all questions and flashcards with answers, click on the resource link above. Page 9

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5311
Sample Questions
Q1) The header file string contains the function ____________________,which converts a value of type string to a null-terminated character array.
Q2) Given the declaration int list[20]; the statement list[12] = list[5] + list[7]; updates the content of the twelfth component of the array list.
A)True
B)False
Q3) The ____________________ sort algorithm finds the location of the smallest element in the unsorted portion of the list and moves it to the top of the unsorted portion of the list.
Q4) Assume you have the following declaration char nameList[100];.Which of the following ranges is valid for the index of the array nameList?
A) 0 through 99
B) 0 through 100
C) 1 through 100
D) 1 through 101
Q5) The ____________________ of an array is the address (that is,the memory location)of the first array component.
Q6) The statement strlen("Marylin Stewart"); returns ____________________.
To view all questions and flashcards with answers, click on the resource link above. Page 10

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5312
Sample Questions
Q1) In structs,you access a component by using the struct name together with the relative position of the component.
A)True B)False
Q2) Consider the following statements. struct circleData { \(\quad\)double radius; \(\quad\)double area; \(\quad\)double circumference; }; circleData circle;
Which of the following statements is valid in C++?
A) cin >> circle.radius; circle.area = 3.14 * radius * radius; B) cin >> circle.radius; circle.area = 3.14 * circle.radius * radius; C) cin >> circle; D) cin >> circle.radius;
Q3) A(n)____________________ is a set of elements of the same type.
To view all questions and flashcards with answers, click on the resource link above. Page 11

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/128469
Sample Questions
Q1) A(n)____________________ is a statement specifying the condition(s)that must be true before the function is called.
Q2) A ____ sign in front of a member name on a UML diagram indicates that this member is a public member.
A) +
B) -
C) #
D) $
Q3) To guarantee that the member variables of a class are initialized,you use ____.
A) accessors
B) mutators
C) constructors
D) destructor
Q4) In C++,the scope resolution operator is ____.
A) :
B) ::
C) $
D) .
Q5) A C++ implementation file has the extension ____________________.
Q6) A constructor with no parameters is called the ____________________ constructor.
To view all questions and flashcards with answers, click on the resource link above. Page 12

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5314
Sample Questions
Q1) If inheritance is private,all members of the base class,including private members,become private members of the derived class.
A)True
B)False
Q2) The ____ members of an object form its internal state.
A) private
B) protected
C) public
D) static
Q3) If the derived class does not override a public member function of the base class,you may specify a call to that public member function by using the name of the function and the appropriate parameter list.
A)True
B)False
Q4) Inheritance is an example of a(n)____ relationship.
A) is-a
B) has-a
C) handshaking
D) had-a
To view all questions and flashcards with answers, click on the resource link above. Page 13

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5315
Sample Questions
Q1) What is the output of the following code?
int *p;
int x;
x = 76; p = &x;
*p = 43;
cout << x << "," << *p << endl;
A) 76, 76
B) 76, 43
C) 43, 76
D) 43, 43
Q2) The copy constructor automatically executes when,as a parameter,an object is passed by ____________________.
Q3) The statement int *p; is equivalent to int * p;,which is also equivalent to the statement ____________________.
Q4) The ____________________ of a list is the number of elements in the list.
Q5) For classes with pointer member variables,you should include the copy constructor and the ____________________ in the class.
Page 14
Q6) The binding of virtual functions occurs at program ____________________ time.
To view all questions and flashcards with answers, click on the resource link above.
Page 15

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5316
Sample Questions
Q1) Which of the following is the general syntax of the function prototype to overload the post-increment operator as a member function?
A) className operator++();
B) friend className operator++();
C) className operator++(int);
D) friend className operator++(int);
Q2) In C++,a function ____________________ can be overloaded.
Q3) A(n)____ function is a nonmember function that has access to all members of the class.
A) access
B) protected
C) friend
D) void
Q4) The general form of the functions to overload the binary operators as member functions of a class is returnType operator#(____ className&)const;.
A) class
B) const
C) *
D) &
To view all questions and flashcards with answers, click on the resource link above. Page 16

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5317
Sample Questions
Q1) If the catch block with an ellipses (in the heading)is needed,then it should be the first catch block in a sequence of try/catch blocks.
A)True
B)False
Q2) If,during program execution,division by ____________________ occurs with integer values and is not addressed by the program,the program might terminate with an error message or might simply hang.
Q3) When an exception occurs in a try block,control immediately passes to one of the ____________________ blocks.
Q4) To use the assert function in your program,you should include the statement ____.
A) #include <assert>
B) #include <cassert>
C) #include <iostream>
D) #include <exception>
Q5) The class ____________________ deals with the string subscript out of range error.
Q6) The ____________________ of the catch block parameter specifies the type of exception that the catch block can catch.
To view all questions and flashcards with answers, click on the resource link above. Page 17

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5318
Sample Questions
Q1) The recursive algorithm must have one or more base cases,and the general solution must eventually be reduced to a(n)____________________.
Q2) The collating sequence of A in the ASCII character set is ____________________.
Q3) Consider the accompanying definition of a recursive function.What is the output of the following statement? cout << recFunc(10)<< endl;
A) 10
B) 11
C) 100
D) 110
Q4) The fourth Fibonacci number in a sequence is the sum of the ____________________ Fibonacci numbers.
Q5) ____ control structures use a looping structure,such as while,for,or do...while,to repeat a set of statements.
A) Iterative
B) Recursive
C) Procedural
D) Object
Q6) Recursive algorithms are implemented using ____________________ functions.
Page 18
To view all questions and flashcards with answers, click on the resource link above.

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5319
Sample Questions
Q1) The nodes of a standard ordered list (as constructed in the text)are in ____________________ order.
Q2) Which of the following correctly initializes a doubly linked list in the default constructor?
A) head = NULL; Back = NULL;
B) head = 0; Back = 0; Count = 0;
C) first = 0; Last = 0;
D) first = NULL; Last = NULL; Count = 0;
Q3) When you build a linked list in the backward manner,a new node is always inserted at the end of the linked list.
A)True B)False
Q4) In a linked list,the ____________________ operator returns the info of the current node.
To view all questions and flashcards with answers, click on the resource link above. Page 19

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5320
Sample Questions
Q1) What is the output of the following code?
stackType<int> stack; Int x,y; x = 4; y = 2; stack.push(6); stack.push(x); stack.push(x + 1); y = stack.top(); stack.pop(); stack.push(x + y); x = stack.top(); stack.pop();
cout << "x = " << x << endl; A) x = 4
B) x = 5
C) x = 6
D) x = 9
Q2) In ____________________ notation,operators are written after the operands.
Q3) An array is a(n)____________________ access data structure.
To view all questions and flashcards with answers, click on the resource link above. Page 20

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5321
Sample Questions
Q1) Assuming the following list declaration,which element is at the position 0 after the first iteration of selection sort? int list[] = {16,30,24,7,62,45,5,55}
A) 5
B) 7
C) 16
D) 62
Q2) The ____________________ search algorithm is the optimal worst-case algorithm for solving search problems by using the comparison method.
Q3) ____ sort requires knowing where the middle element of the list is.
A) Merge
B) Bubble
C) Insertion
D) Selection
Q4) In the average case,sequential search typically searches ____.
A) one quarter of the list
B) one third of the list
C) one half of the list
D) the entire list
Q5) A sequence of branches in a comparison tree is called a(n)____________________.
21
To view all questions and flashcards with answers, click on the resource link above.

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5322
Sample Questions
Q1) The search function searches the binary search tree for a given item.If the item is found in the binary search tree,it returns ____.
A) true
B) false
C) a reference to the node where the item was found
D) 1
Q2) In a diagram of a binary tree,each node is represented as a(n)____.
A) line
B) triangle
C) circle
D) rectangle
Q3) The three traversal algorithms discussed for binary trees are ____,____,and ____.
A) order, preorder, postorder
B) in, preorder, order
C) order, preorder, post
D) inorder, preorder, postorder
Q4) After inserting an item in a binary search tree,the resulting binary tree must be a(n)____________________.
To view all questions and flashcards with answers, click on the resource link above. Page 22

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5323
Sample Questions
Q1) A tree T is called a(n)____ tree of graph G if T is a subgraph of G such that V(T)= V(G); that is,if all vertices of G are in T.
A) weighted B) spanning C) rooted D) directed
Q2) A graph is called a(n)____ graph if it has no loops and no parallel edges. A) simple B) undirected C) directed D) weighted
Q3) A(n)____________________ ordering of the vertices of the accompanying graph is 0,1,3,4,2,5,7,8,6,9.
Q4) A set Y is called a(n)____________________ of X if every element of Y is also an element of X.
Q5) In a(n)____________________ graph,the tail of a pictorial directed edge is the origin,and the head is the destination.
Q6) A graph is ____________________ if the number of vertices is zero.
To view all questions and flashcards with answers, click on the resource link above. Page 23

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5324
Sample Questions
Q1) If consecutive elements in listCont have the same value,the ____ operation removes the duplicates.
A) listCont.remove()
B) listCont.duplicate()
C) listCont.remove(duplicate)
D) listCont.unique()
Q2) The ____________________ iterator is used to input data into a program from an input stream.
Q3) ____________________ predicates check a specific property for a single argument.
Q4) You must use the container name,the container element type,and the scope resolution operator to use the typedef iterator.
A)True
B)False
Q5) The vector container stores and manages its objects in a dynamic array. A)True
B)False
Q6) The operator ____________________,supported by the queue container class,returns the next (i.e.,first)element in the queue,but does not remove the element from the queue.
Page 24
To view all questions and flashcards with answers, click on the resource link above.