Software Development Software Development MCQ PDF
Software Development Software Development MCQ PDF
[Link]
18 Chapters
899 Verified Questions
Software Development
MCQ PDF
Cou
Software Development is a comprehensive course designed to introduce students to the
fundamental principles, methodologies, and tools used in creating robust, efficient, and
and Waterfall. Practical experience through projects and collaborative exercises equips
Recommended Textbook
C++ Programming From Problem Analysis to Program Design 6th Edition by D.S. Malik
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: [Link]
Sample Questions
Q1) Assembly language uses easy-to-remember instructions called
____________________.
Answer: mnemonics
Q2) In a C++ program, statements that begin with the symbol # are called
____________________ directives.
Answer: preprocessor
To view all questions and flashcards with answers, click on the resource link above.
Chapter 2: Basic Elements of C
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: [Link]
Sample Questions
Q1) The ____________________ type is C++ 's method for allowing programmers to
create their own simple data types.
Answer: enumeration
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: [Link]
Sample Questions
Q1) Suppose that x = 25.67, y = 356.876, and z = 7623.9674. What is the output of the
following statements? cout << fixed << showpoint;
Cout << setprecision(2);
Cout << x << ' ' << y << ' ' << z << endl;
A) 25.67 356.87 7623.96
B) 25.67 356.87 7623.97
C) 25.67 356.88 7623.97
D) 25.67 356.876 7623.967
Answer: C
Q2) 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
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: [Link]
Sample Questions
Q1) The term ____________________ describes a process in which the computer
evaluates a logical expression from left to right and stops as soon as the value of the
expression is known.
Q4) You can disable assert statements by using which of the following?
A) #include <cassert>
B) #define <assert>
C) #clear NDEBUG
D) #define NDEBUG
Q5) What is the value of x after the following statements execute? int x;
X = (5 <= 3 && 'A' < 'F') ? 3 : 4
A) 2
B) 3
C) 4
D) 5
Page 6
To view all questions and flashcards with answers, click on the resource link above.
Chapter 5: Control Structures II Repetition
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: [Link]
Sample Questions
Q1) Suppose sum, num, and j are int variables, and the input is 4 7 12 9 -1. What is the
output of the following code? cin >> sum;
cin >> num;
for (j = 1; j <= 3; j++)
{
\(\quad\)cin >> num;
\(\quad\)sum = sum + num;
}
cout << sum << endl;
A) 24
B) 25
C) 41
D) 42
Q3) A(n) ____-controlled while loop uses a bool variable to control the loop.
A) counter
B) sentinel
C) flag
D) EOF
Q4) The ____________________ loop has an exit condition but no entry condition.
To view all questions and flashcards with Page 7 click on the resource link above.
answers,
Chapter 6: User-Defined Functions
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: [Link]
Sample Questions
Q1) ____________________ parameters are useful in three situations:
• When the value of the actual parameter needs to be changed
• When you want to return more than one value from a function
• When passing the address would save memory space and time relative to copying a
large amount of data
To view all questions and flashcards with answers, click on the resource link above.
Chapter 7: User-Defined Simple Data Types, Namespaces,
Sample Questions
Q1) Suppose that str1 and str2 are string variables. After the following statements
execute, the value of str2 is "____________________".
str1 = "abc";
str2 = str1 + '-';
str2 = str2 + "xyz";
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: [Link]
Sample Questions
Q1) A data type is called ____________________ if variables of that type can store
only one value at a time.
To view all questions and flashcards with answers, click on the resource link above.
Page 10
Chapter 9: Records Structs
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: [Link]
Sample Questions
Q1) Consider the following struct definition: struct rectangleData
{
\(\quad\)double length;
\(\quad\)double width;
\(\quad\)double area;
\(\quad\)double perimeter;
};
Which of the following variable declarations is correct?
A) rectangle rectangleData;
B) struct rectangleData();
C) rectangleData myRectangle;
D) rectangleData rectangle = new rectangleData();
Q4) Both arrays and structs are examples of ____________________ data types.
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: [Link]
Sample Questions
Q1) What does ADT stand for?
A) abstract definition type
B) asynchronous data transfer
C) abstract data type
D) alternative definition type
Q2) In C++, you can pass a variable by reference and still prevent the function from
changing its value by using the keyword ____ in the formal parameter declaration.
A) automatic
B) private
C) static
D) const
Q4) If an object is declared in the definition of a member function of the class, then the
object can access both the public and private members of the class.
A)True
B)False
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: [Link]
Sample Questions
Q1) If inheritance is public, all protected members of the base class are
____________________ members of the derived class.
Q3) 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
Q4) 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
Page 13
To view all questions and flashcards with answers, click on the resource link above.
Chapter 12: Pointers, Classes, Virtual Functions, and
Abstract Classes
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: [Link]
Sample Questions
Q1) The ____ constructor is executed when an object is declared and initialized by using
the value of another object.
A) default
B) copy
C) struct
D) class
Q2) In C++, virtual functions are declared using the reserved word ____.
A) virtual
B) private
C) public
D) struct
Q3) The dereferencing operator is also known as the indirection operator and refers to
the object to which its operand points.
A)True
B)False
Q4) A class ____ automatically executes whenever a class object goes out of scope.
A) constructor
B) destructor
C) pointer
Page 14
D) exception
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: [Link]
Sample Questions
Q1) The associativity of the operator = is from right to left.
A)True
B)False
Q2) The only built-in operations on classes are assignment (=) and
____________________.
Q3) A friend function does not have access to the private data members of the class.
A)True
B)False
Q4) The name of the function to overload the operator <= is ____.
A) overload<=
B) <=new
C) operator<=
D) <=operator
To view all questions and flashcards with answers, click on the resource link above.
Chapter 14: Exception Handling
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: [Link]
Sample Questions
Q1) Which of the following statements throws a valid exception in C++?
A) [Link]();
B) throw 2;
C) throws str;
D) 4 throw;
Q2) A(n) ____________________ block specifies the type of exception it can catch
and contains an exception handler.
Q3) The statements that may generate an exception are placed in a ____ block.
A) throw
B) finally
C) try
D) catch
Q4) Which of the following classes is derived from the class runtime_error?
A) bad_alloc
B) out_of_range
C) overflow_error
D) length_error
Q6) If the operator new cannot allocate memory space, this operator throws a(n)
____________________ exception. Page 16
To view all questions and flashcards with answers, click on the resource link above.
Chapter 15: Recursion
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: [Link]
Sample Questions
Q1) In a recursive function, the base case stops the recursion.
A)True
B)False
Q2) 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
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
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: [Link]
Sample Questions
Q1) When moving array values for insertion sort, to move list[4] into list[2], first ____.
A) move list[2] to list[3]
B) delete list[2]
C) move list[4] to list[3]
D) copy list[4] into temp
Q2) Consider the following list. int list[] = {4, 8, 19, 25, 34, 39, 45, 48, 66, 75, 89, 95}
When performing a binary search for 75, after the first comparison, the search is
restricted to ____.
A) list[0]...list[6]
B) list[0]...list[7]
C) list[5]...list[11]
D) list[6]...list[11]
Q3) The statement ____ returns the element at the position index in vector vecList.
A) vecList[index]
B) [Link](index)
C) [Link](index)
D) vecList<index>
Q4) In order to apply a(n) ____________________ search, the list must be sorted.
To view all questions and flashcards with answers, click on the resource link above.
Page 18
Chapter 17: Linked Lists
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: [Link]
Sample Questions
Q1) It is not possible to create an ordered linked list.
A)True
B)False
Q2) 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.
Q3) For classes that include pointer data members, the assignment operator must be
explicitly ____________________.
Q5) The ____ deallocates the memory occupied by the nodes of a list when the class
object goes out of scope.
A) constructor
B) destructor
C) head pointer
D) tail pointer
Q6) You can use the pointer head of a linked list to traverse the list.
A)True
B)False
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: [Link]
Sample Questions
Q1) When describing a queuing system, we use the term ____________________ to
refer to the time it takes to serve a customer.
Q2) Which of the following is listed in the chapter as a basic operation performed on a
queue?
A) push
B) pop
C) isEmptyQueue
D) top
Q3) In a queuing system, every customer has a customer number, arrival time,
____________________ time, transaction time, and departure time.
Q4) In evaluating a postfix expression, when an equal sign (=) is encountered, how many
elements must the stack contain so that no error is generated?
A) none
B) one
C) two
D) three
To view all questions and flashcards with answers, click on the resource link above.
Page 20