Software Development Solved Exam Questions - 1050 Verified Questions

Page 1


Software Development

Solved Exam Questions

Course Introduction

Software Development explores the principles, methodologies, and tools involved in designing, creating, testing, and maintaining software applications. The course covers the software development lifecycle, including requirements analysis, system design, implementation in programming languages, debugging, documentation, and quality assurance. Students will engage with various software development models such as waterfall and agile, work in teams to simulate real-world development environments, and utilize version control systems. Emphasis is placed on problem-solving, collaboration, usability, and scalable software design, preparing students for roles in software engineering and related fields.

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

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/128444

Sample Questions

Q1) The basic commands that a computer performs are ____,and performance of arithmetic and logical operations.

A) input, file, list

B) output, folder, storage

C) input, output, storage

D) storage, directory, log

Answer: C

Q2) The devices that the computer uses to display results are called ____ devices.

A) exit

B) entry

C) output

D) input

Answer: C

Q3) ____________________ languages include FORTRAN,COBOL,Pascal,C,C++,and Java.

Answer: High-level

high-level

High level

high level

Answer: binary Page 3

Q4) A sequence of 0s and 1s is sometimes referred to as ____________________ code.

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

Page 4

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/5305

Sample Questions

Q1) A(n)____________________ is a collection of statements,and when it is activated,or executed,it accomplishes something.

Answer: subprogram sub program sub-program function modlue

Q2) ____ is a valid char value.

A) -129

B) 'A'

C) 128

D) 129

Answer: B

Q3) The maximum number of significant digits in values of the double type is 15. A)True B)False

Answer: True

Q4) The maximum number of significant digits is called the ____________________.

Answer: precision

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

Chapter 3: Input/Output

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 alpha is an int variable and ch is a char variable and the input is: 17 A

What are the values after the following statements execute?

Cin >> alpha;

Cin >> ch;

A) alpha = 17, ch = ' '

B) alpha = 1, ch = 7

C) alpha = 17, ch = 'A'

D) alpha = 17, ch = 'a'

Answer: C

Q2) Suppose that x is an int variable,y is a double variable and ch is a char variable and the input is: 15A 73.2

Choose the values after the following statement executes:

Cin >> x >> ch >> y;

A) x = 15, ch = 'A', y = 73.2

B) x = 15, ch = 'A', y = 73.0

C) x = 15, ch = 'a', y = 73.0

D) This statement results in an error because there is no space between 15 and A.

Answer: A

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

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/5307

Sample Questions

Q1) The conditional operator ?: takes ____ arguments.

A) two

B) three

C) four

D) five

Q2) A(n)____________________ structure does not require the evaluation of a logical expression.

Q3) The symbol > is a(n)____________________ operator.

Q4) Which of the following operators has the lowest precedence?

A) !

B) ||

C) &&

D) =

Q5) Putting ____________________ in front of a logical expression reverses the value of that logical expression.

Q6) The appearance of = in place of == resembles a(n)____.

A) syntax error

B) silent killer

C) compilation error

D) input failure

Page 7

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: https://quizplus.com/quiz/128467

Sample Questions

Q1) Suppose sum and num are int variables,and the input is 18 25 61 6 -1.What is the output of the following code? sum = 0; Cin >> num; While (num != -1) {

\(\quad\)Sum = sum + num; \(\quad\)Cin >> num; }

Cout << sum << endl;

A) 92

B) 109

C) 110

D) 119

Q2) To generate a random number,you can use the function rand of the header file

Q3) The function srand takes as input a(n)____________________ int,which acts as the seed for the algorithm.

Q4) A for loop is typically called a counted or ____________________ for loop.

Q5) 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 8

Chapter 6: User-Defined Functions

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) The heading of the function is also called the ____.

A) title

B) function signature

C) function head

D) function header

Q2) The statement: return 37,y,2 * 3; returns the value ____.

A) 2

B) 3

C) y

D) 6

Q3) Given the following function prototype: int test(float,char);,which of the following statements is valid?

A) cout << test(12, &);

B) cout << test("12.0", '&');

C) int u = test(5.0, '*');

D) cout << test('12', '&');

Q4) The ____________________ of a function consists of the function name and its formal parameter list.

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

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 9

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/5310

Sample Questions

Q1) Given the following code namespace globalType { Void printResult(); }

Which of the following statements is needed to access printResult?

A) globalType.printResult();

B) globalType.printResult;

C) globalType::printResult();

D) globalType:printResult();

Q2) The string expression strVar.____________________ inserts all the characters of str at index pos into strVar.

Q3) The following is a valid C++ enumeration type: enum places {1ST,2ND,3RD,4TH};.

A)True B)False

Q4) In C++,namespace is a reserved word. A)True B)False

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

Q5) For the operator + to work with the string data type,one of the operands of + must be a(n)____________________ variable.

Chapter 8: Arrays and Strings

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) Consider the following declaration: int alpha[5] = {3,5,7,9,11};.Which of the following is equivalent to this statement?

A) int alpha[ ] = {3, 5, 7, 9, 11};

B) int alpha[ ] = {3 5 7 9 11};

C) int alpha[5] = [3, 5, 7, 9, 11];

D) int alpha[ ] = (3, 5, 7, 9, 11);

Q2) When you pass an array as a parameter,the base address of the actual array is passed to the formal parameter.

A)True

B)False

Q3) In a two-dimensional array,the elements are arranged in a table form.

A)True

B)False

Q4) 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}};

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

Chapter 9: Records (structs)

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) A function can return a value of the type array.

A)True

B)False

Q2) 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

Q3) Arrays are passed by ____________________ only.

Q4) To compare struct variables,you compare them ____.

A) by reference

B) by value

C) index-wise

D) member-wise

Q5) Consider the accompanying struct definition.The statement that assigns the average of testScore and programmingScore to score is ____________________.

Q6) A(n)____________________ is a collection of a fixed number of components in which the components are accessed by name.

Q7) In C++,struct is a(n)____________________ word.

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

Chapter 10: Classes and Data Abstraction

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) To create the object code file for any source code file,the command line option ____________________ is used on the system command line.

Q2) You can use arithmetic operators to perform arithmetic operations on class objects.

A)True

B)False

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

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

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

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

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

Page 13

Chapter 11: Inheritance and Composition

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) A derived class cannot directly access public members of a base class.

A)True

B)False

Q2) Consider the following class definition: class dClass: bClass { //class members list

};

The class dClass is derived from the class bClass using the ____ type of inheritance.

A) public

B) private

C) protected

D) static

Q3) The OOP terminology is influenced by the vocabulary of ____________________,the OOP language largely developed at a Xerox research center during the 1970s.

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

A)True

B)False

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

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

Chapter 12: Pointers, Classes, Virtual Functions, Abstract

Classes, and Lists

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) The ____________________ of a list is the number of elements in the list.

Q2) An object of the base class type cannot be passed to a(n)____________________ parameter of the derived class type.

Q3) A list is a collection of elements of the same type.

A)True

B)False

Q4) The statement that declares board to be an array of six pointers wherein each pointer is of type int is: int ____________________;

Q5) A class ____ automatically executes whenever a class object goes out of scope. A) constructor

B) destructor

C) pointer

D) exception

Q6) A pointer variable is a variable whose content is a memory address. A)True B)False

Q7) For classes with pointer member variables,you should include the copy constructor and the ____________________ in the class.

Q8) The binding of virtual functions occurs at program ____________________ time. Page 15

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

Page 16

Chapter 13: Overloading and Templates

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 a built-in operation on classes?

A) increment

B) assignment

C) decrement

D) relational

Q2) A(n)____________________ constructor converts its argument to an object of the constructor's class.

Q3) 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&);

Q4) Operators can be overloaded either for objects of the user-defined types,or for a combination of objects of the user-defined type and objects of the built-in type.

A)True

B)False

Q5) Passing a parameter to a class template has an effect at ____________________ time.

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

Chapter 14: Exception Handling

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) All derived classes of the class exception override the function ____________________ to issue their own error messages.

Q2) If a length greater than the maximum allowed for a string object is used,the class ____________________ deals with the error that occurs.

Q3) If you want to include members in your exception class,you typically include the function ____.

A) that

B) this

C) log

D) what

Q4) Which of the following options should you choose when an exception occurs in the program that analyzes an airline's ticketing transactions?

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.

Q5) The string concatenation operator is ____________________.

Q6) The class ____________________ contains the function what.

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

Chapter 15: Recursion

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) Infinite recursions execute forever on a computer.

A)True

B)False

Q2) 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

Q3) A(n)____________________ control structure is used to control the repeated calls in recursion.

Q4) The language of a computer,called ____________________ language,is a series of 0s and 1s.

Q5) Which of the following function headings can be used for a recursive definition of a function to calculate the nth Fibonacci number?

A) void rFibNum(int a, int b)

B) bool rFibNum(int a, int b)

C) bool rFibNum(int a, int b, int n)

D) int rFibNum(int a, int b, int n)

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

Chapter 16: Linked Lists

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) It is not possible to create an ordered linked list.

A)True

B)False

Q2) In a linked list,the address of the first node in the list is stored in a separate location,called the ____ or first.

A) head

B) pointer

C) front

D) top

Q3) Consider the accompanying statements.The list is empty if the pointer first is ____.

A) NULL

B) 0

C) last

D) next

Q4) You deallocate the memory for a linked list by calling the operator clear.

A)True

B)False

Q5) A(n)____________________ linked list is a linked list in which every node has a next pointer and a back pointer.

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

Chapter 17: Stacks and Queues

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) The infix expression (a + b)* (c - d / e)+ f is equivalent to the postfix expression ab + cde /-* f +

A)True

B)False

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

A) pop

B) push

C) enqueue

D) dequeue

Q3) A(n)____ is a list of homogenous elements in which the addition and deletion of elements occurs only at one end.

A) stack

B) queue

C) array

D) linked list

Q4) The elements at the ____________________ of a stack have been in the stack the longest.

Q5) An array is a(n)____________________ access data structure.

Page 21

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

Chapter 18: Searching and Sorting Algorithms

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) To construct a search algorithm of the order less than log<sub>2</sub>n,it cannot be ____________________ based.

Q2) The sequential search algorithm does not require that the list be sorted.

A)True

B)False

Q3) The swap function of quick sort is written differently from the swap function for selection sort.

A)True

B)False

Q4) The behavior of quick sort is ____ in the worst case and ____ in the average case.

A) O(nlog<sub>2</sub>n), O(nlog<sub>2</sub>n)

B) O(n<sup>2</sup>), O(n)

C) O(nlog<sup>2</sup>n), O(n<sup>2</sup>)

D) O(n<sup>2</sup>), O(nlog<sub>2</sub>n)

Q5) In a bubble sort,the smaller elements move toward the bottom,and the larger elements move toward the top of the list.

A)True

B)False

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

Chapter 19: Binary Trees

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) To delete an item from the binary search tree,you must do the following:

1.Find the node containing the item (if any)to be deleted.

2.Delete the node.

A)True

B)False

Q2) Each link in a binary tree node points to a(n)____ of that node.

A) parent

B) child

C) value

D) sibling

Q3) The listing of the nodes produced by the preorder traversal of a binary tree is called the ____________________.

Q4) In a binary search tree,the data in each node is ____ the data in the left child.

A) larger than

B) smaller than

C) equal to

D) larger or equal to

Q5) 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 23

Chapter 20: Graphs

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) Let e (u,v)be an edge in an undirected graph G.The edge e is said to be ____________________ on the vertices u and v.

Q2) Y is a(n)____ of X if every element of Y is also an element of X.

A) derivative

B) subset

C) inheritee

D) shallow copy

Q3) A graph is ____________________ if the number of vertices is zero.

Q4) The starting vertex of a shortest path in a graph is called the ____________________.

Q5) We can always traverse an entire graph from a single vertex.

A)True

B)False

Q6) The edges connecting two vertices can be assigned a non-negative real number,called the ____ of the edge.

A) key

B) weight

C) width

D) height

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

Chapter 21: Standard Template Library (STL)

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) In the ____ sort algorithm,the array containing the data is viewed as a binary tree.

A) modifying

B) heap

C) nonmodifying

D) numeric

Q2) Input iterators,with read access,step forward element by element.

A)True

B)False

Q3) If a container is declared as ____,then we must prevent the iterator from modifying the elements of the container,especially accidentally.

A) static

B) const

C) public

D) private

Q4) The operator ____________________,supported by the queue container class,removes the next element in the queue.

Q5) The ____________________ iterator is used to input data into a program from an input stream.

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

Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.