0% found this document useful (0 votes)
3 views20 pages

Software Development Software Development MCQ PDF

Software Development MCQ PDF available on Quizplus.com. The resource URL is https://quizplus.com/study-set/1103-c-programming-from-problem-analysis-to-program-design

Uploaded by

b6ycsmfgq3
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views20 pages

Software Development Software Development MCQ PDF

Software Development MCQ PDF available on Quizplus.com. The resource URL is https://quizplus.com/study-set/1103-c-programming-from-problem-analysis-to-program-design

Uploaded by

b6ycsmfgq3
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

maintainable software applications. The course covers the complete software

development lifecycle, including requirements analysis, design, implementation, testing,

deployment, and maintenance. Students will explore various programming paradigms,

software development frameworks, and project management approaches such as Agile

and Waterfall. Practical experience through projects and collaborative exercises equips

learners with skills in version control, debugging, documentation, and teamwork,

preparing them for real-world software engineering challenges.

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: [Link]

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

Q3) Main memory is directly connected to the CPU.


A)True
B)False
Answer: True

Q4) Dividing a problem into smaller subproblems is called ____ design.


A) OOD
B) top-down refinement
C) structured
D) analog
Answer: C

Q5) A program called a(n) ____________________ translates the assembly


language instructions into machine language.
Answer: assembler Page 3

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

Q2) The maximum number of significant digits is called the


____________________.
Answer: precision

Q3) Which of the following is the newline character?


A) \r
B) \n
C) \l
D) \b
Answer: B

Q4) ____________________ is the process of planning and creating a program.


Answer: Programming
programming

Q5) Which of the following is a legal identifier?


A) program!
B) program_1
C) 1program
D) program 1
Answer: B 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: [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.

Q2) Every else must be paired with a(n) ____________________.

Q3) 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.

Q4) You can disable assert statements by using which of the following?
A) #include &lt;cassert&gt;
B) #define &lt;assert&gt;
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

Q6) The value of the expression 7 + 8 <= 15 is ____________________.

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

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

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

Q2) The statement: return 2 * 3 + 1, 1 + 5; returns the value ____.


A) 2
B) 3
C) 6
D) 7

Q3) ____________________ identifiers are not accessible outside of the function


(block).

Q4) In C++, :: is called the ____________________.

Q5) Which statement below about prototypes and headers is true?


A) Parameter names must be listed in the prototype, but not necessarily in the header.
B) Prototypes end with a semicolon, but headers do not.
C) Headers should come before prototypes.
D) Headers end with a semicolon, but prototypes do not.

Q6) The program that tests a function is called a(n) ____________________


program. Page 8

To view all questions and flashcards with answers, click on the resource link above.
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: [Link]

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";

Q2) The string expression strVar.____________________ deletes n characters from


strVar starting at position pos.

Q3) The following statement creates an anonymous type:


enum {1ST, 2ND, 3RD, 4TH} places;
A)True
B)False

Q4) The general syntax for accessing a namespace member is:


namespace_name->identifier.
A)True
B)False

Q5) The following is a legal C++ enumeration type:


enum colorType {BLUE, GREEN, PINK, YELLOW, RED};
A)True
B)False Page 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: [Link]

Sample Questions
Q1) A data type is called ____________________ if variables of that type can store
only one value at a time.

Q2) Given the following declaration: int j;


Int sum;
Double sale[10][7];
Which of the following correctly finds the sum of the elements of the fifth row of sale?
A) sum = 0;
For(j = 0; j < 7; j++)
Sum = sum + sale[5][j];
B) sum = 0;
For(j = 0; j < 7; j++)
Sum = sum + sale[4][j];
C) sum = 0;
For(j = 0; j < 10; j++)
Sum = sum + sale[5][j];
D) sum = 0;
For(j = 0; j < 10; j++)
Sum = sum + sale[4][j];

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

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();

Q2) Arrays are passed by ____________________ only.

Q3) A function can return a value of the type struct.


A)True
B)False

Q4) Both arrays and structs are examples of ____________________ data types.

Q5) A(n) ____________________ is a collection of a fixed number of components


in which the components are accessed by name.

Q6) A struct is a(n) ____________________,


Page 11 not a declaration.

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

Q3) A(n) ____________________ contains the definitions of the functions to


implement the operations of an object.

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

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

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.

Q2) In ____________________ (aggregation), one or more members of a class are


objects of another class type.

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

Q5) ____ is a "has-a" relationship.


A) Inheritance
B) Encapsulation
C) Composition
D) Polymorphism

Q6) In C++, we implement ADT through the use of ____________________.

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

Q5) To overload a(n) ____________________ operator for a class, if the operator


function is a nonmember, it has one parameter.

Q6) A(n) ____________________ constructor converts its argument to an object of


the constructor's class.

Q7) The ____________________ operator causes a member-wise copy of the


member variables of the class.
Page 15

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

Q5) The class ____________________ contains the function what.

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

Q4) The collating sequence of A in the ASCII character set is


____________________.

Q5) Recursive algorithms are implemented using ____________________


functions. 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: [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&lt;index&gt;

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 ____________________.

Q4) The nodes of an ordered list are in ____________________ order.

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

Q7) The ____________________ constructor can make an identical copy of a


linked list.
Page 19

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

Q5) A(n) ____________________ system consists of servers and queues of objects


waiting to be served.

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

Page 20

You might also like