

![]()


Engineering Programming introduces students to the foundational concepts and practical skills required for computer programming within the context of engineering problem-solving. The course covers programming logic, algorithm development, data structures, and software design, often using languages such as C, C++, or Python. Emphasis is placed on applying programming techniques to model, analyze, and solve real-world engineering problems. Students will develop computational thinking, work on hands-on projects, and gain experience in debugging, testing, and documenting code, preparing them for more advanced engineering applications and interdisciplinary teamwork.
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) ____ consists of 65,536 characters.
A) ASCII-8
B) ASCII
C) Unicode
D) EBCDIC
Answer: C
Q2) The structured design approach is also known as ____________________.
Answer: modular programming
top-down design
top down design
top-down
top down
bottom-up design
bottom up design
bottom-up
bottom up
stepwise refinement
Q3) The machine language version of the high-level language program is called a(n)____________________.
Answer: object program

Page 3
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/5305
Sample Questions
Q1) The ____ rules of a programming language tell you which statements are legal,or accepted by the programming language.
A) semantic
B) logical
C) syntax
D) grammatical
Answer: C
Q2) Suppose a = 5.After the execution of the statement ++a; the value of a is 6.
A)True
B)False
Answer: True
Q3) Which of the following is a legal identifier?
A) program!
B) program_1
C) 1program
D) program 1
Answer: B
Q4) A(n)____________________ is a memory location whose contents can be changed.
Answer: variable

Page 4
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/5306
Sample Questions
Q1) Suppose that x = 55.68,y = 476.859,and z = 23.8216.What is the output of the following statements?
cout << fixed << showpoint; Cout << setprecision(3); Cout << x << ' ' << y << ' ' << setprecision(2)<< z << endl;
A) 55.680 476.859 23.82
B) 55.690 476.860 23.82
C) 55.680 476.860 23.82
D) 55.680 476.859 23.821
Answer: A
Q2) In the statement cin >> x;,x can be a variable or an expression. A)True B)False
Answer: False
Q3) To use a parameterized stream manipulator in a program,you must include the header file ____________________.
Answer: iomanip
Q4) The functions get,ignore,and so on are members of the data type
Answer: istream

Page 5
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/5307
Sample Questions
Q1) The result of a logical expression cannot be assigned to an int variable,but it can be assigned to a bool variable.
A)True B)False
Q2) In C++,both ! and != are relational operators. A)True B)False
Q3) Consider the following statements. int score; string grade; if (score >= 65)
\(\quad\)grade = "pass"; else
\(\quad\)grade = "fail"; If score is equal to 75,the value of grade is "____________________".
Q4) To output results correctly,the switch structure must include a(n)____________________ statement after each cout statement,except the last cout statement.
Q5) In C++,the logical operator AND is represented by ____________________.
Q6) The symbol > is a(n)____________________ operator.
To view all questions and flashcards with answers, click on the resource link above. Page 6

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/128467
Sample Questions
Q1) A semicolon at the end of the for statement (just before the body of the loop)is a(n)____________________ error.
Q2) In a(n)"____________________" problem,either the loop executes one too many or one too few times.
Q3) If a(n)____________________ statement is placed in a do...while structure,the loop-continue test is evaluated immediately after this statement.
Q4) In the case of the sentinel-controlled while loop,the first item is read before the while loop is entered.
A)True
B)False
Q5) In ____ structures,the computer repeats particular statements a certain number of times depending on some condition(s).
A) looping
B) branching
C) selection
D) sequence
Q6) The function srand takes as input a(n)____________________ int,which acts as the seed for the algorithm.
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) Stream variables (for example,ifstream and ofstream)should be passed by ____________________ to a function.
Q2) If the formal parameter list of a function is empty,the parentheses after the function name are not needed.
A)True B)False
Q3) In C++,a function prototype is the function heading without the body of the function. A)True B)False
Q4) A(n)____________________ parameter s a formal parameter that receives a copy of the content of the corresponding actual parameter.
Q5) What value is returned by the following return statement? int x = 5; Return x + 1;
A) 0
B) 5
C) 6
D) 7
Q6) A function ____________________ is a function that is not fully coded.
To view all questions and flashcards with answers, click on the resource link above. Page 8

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5310
Sample Questions
Q1) The ____ function is used to interchange the contents of two string variables.
A) iterator
B) traverse
C) swap
D) change
Q2) In C++,[] is called the array subscript operator.
A)True
B)False
Q3) A function cannot return the value of an enumeration type.
A)True
B)False
Q4) In July ____,ANSI/ISO Standard C++ was officially approved.
A) 1996
B) 1998
C) 1999
D) 2000
Q5) The following is a legal C++ enumeration type: enum colorType {BLUE,GREEN,PINK,YELLOW,RED};
A)True
B)False
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) Suppose that list is an array of 10 components of type int.Which of the following codes correctly outputs all the elements of list?
A) for (int j = 1; j < 10; j++) \(\quad\)\(\quad\)cout << list[j] << " "; \(\quad\)cout << endl; B) for (int j = 0; j <= 9; j++) \(\quad\)\(\quad\)Cout << list[j] << " "; \(\quad\)cout << endl; C) for (int j = 1; j < 11; j++) \(\quad\)\(\quad\)cout << list[j] << " "; \(\quad\)cout << endl; D) for (int j = 1; j <= 10; j++) \(\quad\)\(\quad\)cout << list[j] << " "; \(\quad\)cout << endl;
Q2) The following statements store the value ____________________ into len. int len; len = strlen("Sunny California");
Q3) In a two-dimensional array,the elements are arranged in a table form. A)True B)False
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) Which of the following aggregate operations can be executed on array variables?
A) Arithmetic
B) Assignment
C) Function returning a value
D) Parameter passing by reference
Q2) The contents of a struct variable must be written one member at a time.
A)True
B)False
Q3) Relational operations can be used on struct variables.
A)True
B)False
Q4) A function can return a value of the type struct.
A)True
B)False
Q5) You can assign the value of one struct variable to another struct variable of ____ type.
A) a simple data
B) the same
C) an array
D) any

11
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/128469
Sample Questions
Q1) By default,all members of a class are ____________________.
Q2) A program or software that uses and manipulates the objects of a class is called a(n)____________________ of that class.
Q3) The word ____ at the end of the member functions in the accompanying class clockType in Figure 1 specifies that these functions cannot modify the member variables of a clockType object.
A) static
B) const
C) automatic
D) private
Q4) A class and its members can be described graphically using a notation known as the ____ notation.
A) OON
B) OOD
C) UML
D) OOP
Q5) Classes were specifically designed in C++ to handle ____________________.
Q6) A(n)____________________ function of a class changes the values of the member variable(s)of the class.
Page 12
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/5314
Sample Questions
Q1) In ____________________,the derived class is derived from a single base class.
Q2) The new classes that we create from existing classes are called ____ classes.
A) sibling
B) base
C) derived
D) parent
Q3) The term ____________________ is used to describe the ability to create new objects from existing objects.
Q4) The OOP terminology is influenced by the vocabulary of ____________________,the OOP language largely developed at a Xerox research center during the 1970s.
Q5) The ____ members of an object form its internal state.
A) private
B) protected
C) public
D) static
Q6) Objects are created when ____________________ variables are declared.
Q7) C++ provides ____________________ functions as a means to implement polymorphism in an inheritance hierarchy.
To view all questions and flashcards with answers, click on the resource link above. Page 13
Q8) To define new classes in C++,you create new ____________________ files.
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5315
Sample Questions
Q1) The code int *p; declares p to be a(n)____ variable.
A) new
B) num
C) pointer
D) address
Q2) 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
Q3) In C++,the dot operator has a lower precedence than the dereferencing operator.
A)True
B)False

14
Q4) The binding of virtual functions occurs at program
time.
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/5316
Sample Questions
Q1) Which of the following is the general syntax of the function prototype to overload the pre-increment operator as a nonmember function?
A) className operator++();
B) friend className operator++();
C) className operator++(int);
D) friend className operator++(className&);
Q2) A conversion constructor is a(n)____________________ parameter function.
Q3) The general syntax of the function prototype 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&);
Q4) In C++,a function ____________________ can be overloaded.
Q5) The return type of the function operator == is ____.
A) int
B) bool
C) char
D) void
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/5317
Sample Questions
Q1) The function ____ of the class exception returns a string containing an appropriate message.
A) where
B) what
C) when
D) log
Q2) The order of the catch blocks does not affect the program.
A)True
B)False
Q3) To deal with logical errors in a program,such as a string subscript out of range or an invalid argument to a function call,several classes are derived from the class ____.
A) logic_error
B) logic_exception
C) runtime_error
D) exception
Q4) The string concatenation operator is ____________________.
Q5) When an exception is thrown in a function,the function can do the following: ____________________; partially process the exception and throw the same exception or a new exception; or throw a new exception.
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/5318
Sample Questions
Q1) Consider the accompanying definition of the recursive function mystery.Given the declaration: int alpha[5] = {1,4,5,8,9}; What is the output of the following statement? Cout << mystery(alpha,0,4)<< endl;
A) 1
B) 18
C) 27
D) 35
Q2) Consider the accompanying definition of a recursive function.Which of the statements represent the general case?
A) Statements in Lines 3-11
B) Statements in Lines 5-6
C) Statements in Lines 5-11
D) Statements in Lines 7-11
Q3) The collating sequence of A in the ASCII character set is ____________________.
Q4) Consider the following recursive definition,where n is a positive integer.
F(1)= 3
F(n)= F(n - 1)+ 1 if n > 1 The value of F(3)is ____________________.
To view all questions and flashcards with answers, click on the resource link above. Page 17
Q5) Recursive algorithms are implemented using ____________________ functions.

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5319
Sample Questions
Q1) In a circular linked list with more than one node,it is convenient to make the pointer first point to the ____________________ node of the list.
Q2) In a linked list,the ____________________ operator returns the info of the current node.
Q3) A linked list is a collection of components called ____.
A) elements
B) nodes
C) members
D) pointers
Q4) In a linked list,the order of the nodes is determined by the address,called the ____,stored in each node.
A) head
B) tail
C) link
D) first
Q5) The ____________________ constructor can make an identical copy of a linked list.
Q6) In C++,the dereferencing operator is represented by the ____________________ symbol.
To view all questions and flashcards with answers, click on the resource link above. Page 18

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5320
Sample Questions
Q1) A queue is a data structure in which the elements are ____.
A) added to the rear and deleted from the front
B) added to and deleted from the rear
C) added to and deleted from the front
D) added and deleted in the middle
Q2) If you try to add a new item to a full stack,the resulting condition is called a(n)____.
A) override
B) overflow
C) overload
D) underflow
Q3) A(n)____________________ system consists of servers and queues of objects waiting to be served.
Q4) A stack is a(n)____ data structure.
A) FIFO
B) FILO
C) LIFO
D) LILO
Q5) In the array representation of a stack,the stack is initialized simply by setting stackTop to ____________________.
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/5321
Sample Questions
Q1) In the bubble sort algorithm,the following code accomplishes swapping values in elements at positions index and index + 1.
A) list[index] = list[index + 1]
List[index + 1] = list[index]
B) list[index + 1] = list[index]
List[index] = list[index + 1]
C) list[index] = temp;
List[index] = list[index + 1];
Temp = list[index + 1];
D) temp = list[index];
List[index] = list[index + 1];
List[index + 1] = temp;
Q2) Any sorting algorithm that sorts a list of n distinct elements by comparison of the keys only,in its worst case,makes at least ____________________ key comparisons.
Q3) During the second iteration of a selection sort,the smallest item is moved to the top of the list.
A)True
B)False
Q4) The top node of a comparison tree is call the ____________________ node.
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/5322
Sample Questions
Q1) The ____________________ of a path in a binary tree is the number of branches on that path.
Q2) Duplicates are allowed in a binary search tree.
A)True B)False
Q3) To destroy a binary tree,for each node,first we destroy its left subtree,then its right subtree,and then the node itself.We must then use the operator ____________________ to deallocate the memory occupied by the node.
Q4) Let T be a binary search tree with n nodes,in which n > 0.The number of key comparisons is approximately O(____________________).
Q5) In addition to the inorder,preorder,and postorder traversals,a binary tree can also be traversed level-by-level,which is also known as ____________________ traversal.
Q6) In a binary tree,the level of the children of the root node is ____.
A) 0
B) 1
C) 2
D) 3
To view all questions and flashcards with answers, click on the resource link above.
Page 21

Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/5323
Sample Questions
Q1) The ____ of sets A and B is the set of all elements that are in A and B.
A) intersection
B) union
C) graph
D) reunion
Q2) The shortest path algorithm is also called the ____ algorithm.
A) recursive
B) minimal
C) greedy
D) spanning
Q3) A(n)____________________ graph G is called strongly connected if any two vertices in G are connected.
Q4) Graph theory started in 1736 with the ____ problem.
A) Königsberg bridge
B) Tower of Hanoi
C) Westminster
D) League of Augsburg
Q5) We can always traverse an entire graph from a single vertex.
A)True
B)False
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/5324
Sample Questions
Q1) Every container contains the typedef ____________________.An iterator of this type is used to iterate through the elements of a container in reverse.
Q2) 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.
Q3) ____ containers allow elements to be inserted at both ends.
A) Queue
B) Deque
C) Stack
D) List
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) List containers are implemented as doubly ____________________.
Q6) ____________________ predicates check a specific property for a pair-that is,two arguments.
Q7) The associated header file of the sequence container multimap is ____________________.
To view all questions and flashcards with answers, click on the resource link above.