Introduction to Software Development Exam Answer Key - 881 Verified Questions

Page 1


Introduction to Software Development

Exam Answer Key

Course Introduction

Introduction to Software Development provides students with a comprehensive overview of the fundamental concepts, methodologies, and tools used in the creation of software applications. This course covers the basics of programming languages, software development life cycles, problem-solving strategies, version control, and collaborative development practices. Students will gain hands-on experience through practical programming exercises, project work, and exposure to contemporary development environments. By the end of the course, students will have equipped themselves with essential skills to design, develop, and test simple software solutions, preparing them for more advanced studies in software engineering and related fields.

Recommended Textbook

C++ Programming Program Design Including Data Structures 8th Edition by D. S. Malik

Available Study Resources on Quizplus

21 Chapters

881 Verified Questions

881 Flashcards

Source URL: https://quizplus.com/study-set/3128

2

Chapter 1: An Overview of Computers and Programming Languages

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) Main memory is an ordered sequence of items, called ____.

A) pixels

B) registers

C) memory cells

D) addresses

Answer: C

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

Q3) Assembly language uses easy-to-remember instructions called ____________________.

Answer: mnemonics

Q4) When the computer is turned off, everything in secondary memory is lost.

A)True

B)False

Answer: False

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

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

Sample Questions

Q1) The memory space for a(n) ____________________ data value is 64 bytes. Answer: long long

Q2) ____________________ can be used to identify the authors of the program, give the date when the program is written or modified, give a brief explanation of the program, and explain the meaning of key statements in a program. Answer: Comments comments

Q3) A(n) ____________________ is a sequence of zero or more characters. Answer: string

Q4) In a C++ program, one and two are double variables and input values are 10.5 and 30.6.After the statement cin >> one >> two; executes, ____.

A) one = 10.5, two = 10.5

B) one = 10.5, two = 30.6

C) one = 30.6, two = 30.6

D) one = 11, two = 31

Answer: B

Q5) ____________________ is the process of planning and creating a program. Answer: Programming programming

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

Chapter 3: Inputoutput

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) Suppose that alpha is an int variable and ch is a char variable.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) In C++, the dot is an operator called the ____________________operator. Answer: member access

Q3) It is a good idea to redefine cin and cout in your programs.

A)True

B)False

Answer: False

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

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) Suppose found = true and num = 6.The value of the expression (!found) || (num > 6) is ____________________.

Q2) When one control statement is located within another, it is said to be ____.

A) blocked

B) compound

C) nested

D) closed

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

Q5) Putting a semicolon after the parentheses following the expression in an if statement (that is, before the statement) is a(n) ____________________ error.

Q6) In C++, both ! and != are relational operators.

A)True

B)False

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

Chapter 5: Control Structures Ii Repetition

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) A(n) ____-controlled while loop uses a bool variable to control the loop.

A) counter

B) sentinel

C) flag

D) EOF

Q2) A loop that continues to execute endlessly is called a(n) ____ loop.

A) end

B) unhinged

C) infinite

D) definite

Q3) A semicolon at the end of the for statement (just before the body of the loop) is a(n) ____________________ error.

Q4) The control statements in the for loop include the initial statement, loop condition, and update statement.

A)True

B)False

Q5) A loop ____________________ is a set of statements that remains true each time the loop body is executed.

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

Page 7

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

Chapter 6: User-Defined Function

Available Study Resources on Quizplus for this Chatper

41 Verified Questions

41 Flashcards

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

Sample Questions

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

Q2) Assume the following.

Static_cast<int>('a') = 97

Static_cast<int>('A') = 65

The output of the statement: Cout << static_cast&lt;int&gt;(tolower('B')) << endl;

Is ____.

A) 65

B) 67

C) 96

D) 98

Q3) Which of the following function prototypes is valid?

A) int funcExp(int x, float v);

B) funcExp(int x, float v){};

C) funcExp(void);

D) int funcExp(x);

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

Chapter 7: Namespaces, the Class String, and

User-Defined Simple Data Types

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) The general syntax for accessing a namespace member is: namespace_name->identifier.

A)True

B)False

Q2) A data type wherein you directly specify values in the variable declaration with no type name is called a(n) ____________________type.

Q3) If a global identifier in a program has the same name as one of the global identifiers in the header file, the compiler generates a(n) ____________________ error.

Q4) No arithmetic operations are allowed on the enumeration type.

A)True

B)False

Q5) In C++, namespace is a reserved word.

A)True

B)False

Q6) In C++, [] is called the array subscript operator.

A)True

B)False

9

Q7) The values in the domain of an enumeration type are called

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

Chapter 8: Arrays

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) Arrays can be passed as parameters to a function by value, but it is faster to pass them by reference.

A)True

B)False

Q2) The word ____________________ is used before the array declaration in a function heading to prevent the function from modifying the array.

Q3) All components of an array are of the same data type.

A)True

B)False

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

Q5) The ____________________ of an array is the address (that is, the memory location) of the first array component.

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

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) The components of a struct are called the ____ of the struct.

A) variables

B) identifiers

C) elements

D) members

Q2) A struct is a(n) ____________________, not a declaration.

Q3) Consider the following function prototype:int seqSearch(const listType& list, int searchItem); The actual parameter cannot be modified by ____.

A) seqSearch

B) listType

C) list

D) searchItem

Q4) To access a structure member (component), you use the struct variable name together with the member name; these names are separated by a dot (period).

A)True

B)False

Q5) Memory is allocated for struct variables only when you ____________________ them.

Q6) Arrays are passed by ____________________ only.

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

Chapter 10: Classes and Data Abstraction

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

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

Sample Questions

Q1) If the heading of a member function of a class ends with the word const, then the function member cannot modify the private member variables, but it can modify the public member variables.

A)True

B)False

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) A(n) ____________________ is a statement specifying the condition(s) that must be true before the function is called.

Q4) The components of a class are called the ____ of the class.

A) elements

B) members

C) objects

D) properties

Q5) The header file is also known as the ____________________.

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

41 Verified Questions

41 Flashcards

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

Sample Questions

Q1) Which of the following is a valid definition of the derived class bClass?

A) class aclass: public bClass

/ / . . . \)

B) Class bClass: public aClass

/ / . . . \)

C) Class aClass: bClass

/ / . . . \)

D) class bClass: aClass

\( / / . . . \)

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

A)True

B)False

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

Page 13

Chapter 12: Pointers, Classes, Virtual Functions, and

Abstract Classes

Available Study Resources on Quizplus for this Chatper

44 Verified Questions

44 Flashcards

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

Sample Questions

Q1) The seqSearch function returns true if an item in the list equals the searchItem. A)True

B)False

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

Q3) Given the declaration int *p; The statement p = new int[50]; dynamically allocates an array of 50 components of type int and p contains the base address of the array.

A)True

B)False

Q4) A(n) ____________________ is a collection of distinct elements of the same type.

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

Chapter 13: Operator Overloading and Templates

Available Study Resources on Quizplus for this Chatper

41 Verified Questions

41 Flashcards

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

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) Which of the following is the general syntax of the function prototype to overload the pre-increment operator ++ as a member function?

A) className operator++();

B) className operator++(int);

C) friend className operator++();

D) friend className operator++(int);

Q3) The general syntax for the function prototype to overload the assignment operator = for a class is ____.

A) friend className& operator=(const className&);

B) className& operator=(className&);

C) string className& operator=(className&);

D) const className& operator=(const className&);

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

15

Chapter 14: Exception Handling

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

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

Sample Questions

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

A) that

B) this

C) log

D) what

Q2) A(n) ____ is an occurrence of an undesirable situation that can be detected during program execution.

A) crash

B) exception

C) misfire

D) bug

Q3) The class ____ is designed to deal with errors that can be detected only during program execution.

A) error

B) exception

C) runtime_error

D) logic_error

Q4) The string concatenation operator is represented by the ____________________ symbol.

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

Chapter 15: Recursion

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

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

Sample Questions

Q1) The ____________________ Fibonacci number in a sequence is the sum of the second and third Fibonacci numbers.

Q2) Recursive algorithms are implemented using ____________________ functions.

Q3) Which of the following solutions is easier to construct for the Tower of Hanoi problem?

A) Recursive

B) Iterative

C) Procedural

D) Step-by-step

Q4) Consider the accompanying definition of a recursive function.Which of the statements represents the base case?

A) Statements in Lines 1-6.

B) Statements in Lines 3 and 4.

C) Statements in Lines 5 and 6.

D) Statements in Lines 3, 4, and 5.

Q5) Suppose that function A calls function B, function B calls function C, function C calls function D, and function D calls function A.Function A is then ____________________ recursive.

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

Chapter 16: Linked Lists

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) The link field of the last node of a linked list is ____.

A) nullptr

B) 1

C) n-1

D) n

Q2) The ____________________ constructor executes when an object is declared and initialized using another object.

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

A)True

B)False

Q4) Linked lists allow you to overcome the size limitations of an array data type.

A)True

B)False

Q5) The length of a linked list is the number of nodes in the list.

A)True

B)False

Q6) In a linked list, the link component of each node is a(n)

Q7) A linked list is a random access data structure. A)True

B)False

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

Chapter 17: Stacks and Queue

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

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

Sample Questions

Q1) In a(n) ____________________ simulation, the clock is implemented as a counter, and the passage of, say, one minute can be implemented by incrementing the counter by 1.

Q2) In the array representation of a stack, the stack is initialized simply by setting stackTop to ____________________.

Q3) The postfix expression 5 6 + 4 * 10 5 / - = evaluates to ____.

A) 10

B) 30

C) 42

D) 44

Q4) The postfix expression 14 2 5 + = will generate an error, because ____.

A) it contains an illegal operator

B) it does not have enough operands

C) it has too many operators

D) there will be too many elements in the stack when the equal sign is encountered

Q5) In ____________________ notation, operators are written after the operands.

Q6) Postfix notation requires the use of parentheses to enforce operator precedence.

A)True

B)False

Page 19

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

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) If n = 1000, to sort the list, bubble sort makes about ____ item assignments.

A) 10,000

B) 100,000

C) 250,000

D) 500,000

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

Q3) A comparison tree is a(n) ____________________ tree.

Q4) In a quick sort, all of the sorting work is done by the function

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

Chapter 19: Binary Trees

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

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

Sample Questions

Q1) When a class object is passed by value, the ____________________ constructor copies the value of the actual parameters into the formal parameters.

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

Q3) All binary tree traversals start at the left-most child node. A)True B)False

Q4) In a(n) ____________________ traversal, the binary tree is traversed as follows:1.Traverse the left subtree

2.Visit the node

3.Traverse the right subtree

Q5) The ____________________ of a binary tree is the number of nodes on the longest path from the root to a leaf.

Q6) The ____________________ of a path in a binary tree is the number of branches on that path.

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

Chapter 20: Graph Algorithms

Available Study Resources on Quizplus for this Chatper

48 Verified Questions

48 Flashcards

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

Sample Questions

Q1) Graph theory started in 1736 with the ____ problem.

A) Königsberg bridge

B) Tower of Hanoi

C) Westminster

D) League of Augsburg

Q2) A(n) ____________________ ordering of the vertices of the accompanying graph is 0, 1, 3, 4, 2, 5, 7, 8, 6, 9.

Q3) It is possible to design Prim's algorithm so that it is of the order O(n<sup>2</sup>).

A)True

B)False

Q4) If the elements of E(G) are ordered pairs, G is called a(n) ____ graph.

A) undirected

B) directed

C) weighted

D) spanning

Q5) The two most common graph traversal algorithms are depth first traversal and breadth first traversal.

A)True

B)False

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

Chapter 21: Standard Template Library

Available Study Resources on Quizplus for this Chatper

41 Verified Questions

41 Flashcards

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

Sample Questions

Q1) Functions begin and end do not take any parameters.

A)True

B)False

Q2) ____ returns the maximum number of elements that can be inserted into the vector container vecCont without reallocation.

A) vecCont.size()

B) vecCont.max_size()

C) vecCont.capacity()

D) vecCont.length()

Q3) The ____ operation removes the first element from the deque object deq.

A) deq.front()

B) deq.push_front()

C) deq.pop_front()

D) deq.push()

Q4) The expression ct.____________________ deletes all of the elements from the container ct.

Q5) The deq.front() operation on a deque object checks whether the container is empty.

A)True

B)False

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

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.