Fundamentals of Software Development Practice Exam - 949 Verified Questions

Page 1


Fundamentals of Software Development Practice Exam

Course Introduction

This course introduces students to the essential principles and practices of software development. Covering the software development lifecycle, students learn about requirements gathering, system design, coding, testing, debugging, and maintenance. Emphasis is placed on problem-solving techniques, programming fundamentals, version control, and collaborative workflows. Through hands-on projects and exercises, students gain practical experience with modern development tools, methodologies, and best practices, preparing them for continued study or entry-level roles in the software industry.

Recommended Textbook

Starting Out with C++ from Control Structures to Objects 9th Edition by Tony Gaddis

Available Study Resources on Quizplus

21 Chapters

949 Verified Questions

949 Flashcards

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

Page 2

Chapter 1: Introduction to Computers and Programming

Available Study Resources on Quizplus for this Chatper

47 Verified Questions

47 Flashcards

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

Sample Questions

Q1) In the process of translating a source file into an executable file, which of the following is the correct sequence?

A) Source code, preprocessor, modified source code, linker, object code, compiler, executable code

B) Preprocessor, source code, compiler, executable code, linker, modified source code, object code

C) Source code, compiler, modified source code, preprocessor, object code, linker, executable code.

D) Source code, preprocessor, modified source code, compiler, object code, linker, executable code.

E) Source code, linker, object code, compiler, modified source code, preprocessor, executable code.

Answer: D

Q2) In C++, key words are written in all lowercase letters. A)True

B)False

Answer: True

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

Chapter 2: Introduction to C

Available Study Resources on Quizplus for this Chatper

62 Verified Questions

62 Flashcards

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

Sample Questions

Q1) Which of the following is not a valid C++ identifier?

A) April2018

B) employee_number

C) _1user

D) 1user

E) theLittleBrownFoxWhoRanAway

Answer: D

Q2) What is the value of cookies after the following statements execute?

Int number = 38, children = 4, cookies;

Cookies = number % children;

A) 2

B) 4

C) 9

D) 9.5

E) .5

Answer: A

Q3) The preprocessor executes after the compiler.

A)True

B)False

Answer: False

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

Chapter 3: Expressions and Interactivity

Available Study Resources on Quizplus for this Chatper

45 Verified Questions

45 Flashcards

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

Sample Questions

Q1) Which line in the following program will cause a compiler error?

1 #include <iostream>

2 using namespace std;

3

4 int main()

5 {

6 \(\quad\)const int MY_VAL = 77;

7 \(\quad\)MY_VAL = 99;

8 \(\quad\)cout << MY_VAL << endl;

9 \(\quad\)return 0;

10 }

A) line 6

B) line 7

C) line 8

D) line 9

E) there will be no compiler error

Answer: B

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

Chapter 4: Making Decisions

Available Study Resources on Quizplus for this Chatper

51 Verified Questions

51 Flashcards

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

Sample Questions

Q1) Which statement allows you to properly check the char variable code to determine whether it is equal to a C and then output This is a check?

A) if code is equal to C

cout << "This is a check\n";

B) if (code = "C")

cout << "This is a check\n";

C) if (code == 'C')

cout << "This is a check\n";

D) if (code == C)

cout << "This is a check" << endl;

Q2) This operator takes an operand and reverses its truth or Falsehood:

A) !&

B) ||

C) =!

D) !

E) None of these

Q3) The conditional operator takes two operands.

A)True

B)False

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

Page 6

Chapter 5: Loops and Files

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) The update expression of a for loop can contain more than one statement, for example:

for(i = 5; i <= 10; i++, total+= sales)

A)True

B)False

Q2) In a for statement, this expression is executed only once:

A) the test

B) null

C) initialization

D) validation

E) None of these

Q3) How many times will the following loop display "Looping again!"?

For (int i = 0; i <= 20; i++)

Cout << "Looping again!" << endl;

A) 20

B) 19

C) 21

D) an infinite number of times

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

Chapter 6: Functions

Available Study Resources on Quizplus for this Chatper

49 Verified Questions

49 Flashcards

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

Sample Questions

Q1) This statement causes a function to end.

A) end

B) terminate

C) return

D) release

E) None of these

Q2) Select all that apply. Which of the following statement(s) about global variables is(are) true?

A) A global variable is accessible only to the main function.

B) A global variable is declared in the highest-level block in which it is used.

C) A global variable can have the same name as a variable that is declared locally within a function.

D) A global variable is the same as a named constant.

E) If a function contains a local variable with the same name as a global variable, the global variable's name takes precedence within the function.

Q3) A local variable and a global variable may not have the same name within a program.

A)True

B)False

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

Chapter 7: Arrays and Vectors

Available Study Resources on Quizplus for this Chatper

56 Verified Questions

56 Flashcards

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

Sample Questions

Q1) To access an array element, use the array name and the element's ___________.

A) data type

B) subscript

C) value

D) name

E) None of these

Q2) What is the last legal subscript that can be used with the following array?

Int values[5];

A) 0

B) 5

C) 6

D) 4

E) 1

Q3) An array initialization must be all on one line.

A)True

B)False

Q4) Each individual element of an array can be accessed by the array name and the element subscript.

A)True

B)False

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

Chapter 8: Searching and Sorting Arrays

Available Study Resources on Quizplus for this Chatper

30 Verified Questions

30 Flashcards

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

Sample Questions

Q1) Assume you have two integer variables, num1 and num2. Which of the following is the correct way to swap the values in these two variables?

A) int temp = num1; Num2 = num1; Num1 = num2; B) int temp = num2; Num2 = num1; Num1 = temp; C) num1 = num2; Num2 = num1;

D) int temp = num1; Num2 = temp; Temp = num2; Num1 = temp; E) None of these

Q2) Before you can perform a selection sort, the data must be stored in ascending order. A)True B)False

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

10

Chapter 9: Pointers

Available Study Resources on Quizplus for this Chatper

47 Verified Questions

47 Flashcards

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

Sample Questions

Q1) Select all that apply. Which of the following can be used as pointers?

A) array names

B) numeric constants

C) keywords

D) None of these

Q2) Assuming ptr is a pointer variable, what will the following statement output?

Cout << *ptr;

A) the value stored in the variable whose address is contained in ptr

B) the string "*ptr"

C) the address of the variable whose address is stored in ptr

D) the address of the variable stored in ptr

E) None of these

Q3) What will the following code output?

Int number = 22;

Int *var = &number;

Cout << var << endl;

A) the address of number

B) 22

C) an asterisk followed by 22

D) an asterisk followed by the address of number

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

Chapter 10: Characters, C-Strings, and More About the String Class

Available Study Resources on Quizplus for this Chatper

47 Verified Questions

47 Flashcards

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

Sample Questions

Q1) The function that reverses the order of a C-string is

A) reversstr

B) strrev

C) reverseit

D) back

E) None of these

Q2) Select all that apply. Whitespace encompasses which of the following?

A) a tab

B) a newline

C) a space

D) None of these

Q3) Which of the following defines an array of C-strings that will hold 49 characters and the null terminator?

A) char [49];

B) char str[50];

C) char[50] str;

D) character str[50];

E) None of these

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

Chapter 11: Structured Data

Available Study Resources on Quizplus for this Chatper

46 Verified Questions

46 Flashcards

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

Sample Questions

Q1) Structure variables may be passed as arguments to functions.

A)True

B)False

Q2) A function cannot modify the members of a structure.

A)True

B)False

Q3) You may use a pointer to a structure as a

A) function parameter

B) structure member

C) function return type

D) All of these

E) None of these

Q4) If a function is legally prototyped to return an integer value, it can return a structure member that is an integer data type.

A)True

B)False

Q5) Any mathematical operation that can be performed on regular C++ variables can be performed on structure members.

A)True

B)False

Page 13

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

Chapter 12: Advanced File Operations

Available Study Resources on Quizplus for this Chatper

38 Verified Questions

38 Flashcards

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

Sample Questions

Q1) The __________ marker is the character that marks the end of a file and is automatically written when the file is closed.

A) End Of File (EOF)

B) No More Data (NMD)

C) Data Stream Close (DSC)

D) Data Read Stop (DRS)

E) None of these

Q2) Which of the following statements opens a file named info.txt for both input and output?

A) dataFile.open("info.txt", ios::in && ios::out);

B) dataFile.open("info.txt", ios::in, ios::out);

C) dataFile.open("info.txt", input || output);

D) dataFile.open("info.txt", ios::in | ios::out);

E) None of these

Q3) All stream objects have __________ which indicate the position of the stream.

A) error state bits

B) condition statements

C) markers

D) intrinsic error messages

E) None of these

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

Chapter 13: Introduction to Classes

Available Study Resources on Quizplus for this Chatper

54 Verified Questions

54 Flashcards

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

Sample Questions

Q1) You must use the private access specification for all data members of a class.

A)True

B)False

Q2) In C++11 you can use __________ to initialize a member variable in its declaration statement.

A) general member initialization

B) default initialization

C) in-place initialization

D) initialization overload

E) None of these

Q3) The constructor function may not accept arguments.

A)True

B)False

Q4) More than one constructor function may be defined for a class.

A)True

B)False

Q5) You can use the technique known as a member intialization list to initialize members of a class.

A)True

B)False

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

Chapter 14: More About Classes

Available Study Resources on Quizplus for this Chatper

46 Verified Questions

46 Flashcards

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

Sample Questions

Q1) Which type of function is not a member of a class but has access to the private members of the class?

A) static

B) constructor

C) destructor

D) friend

E) None of these

Q2) If a member is declared __________, all objects of that class have access to that variable.

A) static

B) dynamic

C) inline

D) default

E) None of these

Q3) When a class contains an instance of another class, it is known as

A) object overloading

B) operator overloading

C) object composition

D) dynamic composition

E) None of these

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

Chapter 15: Inheritance, Polymorphism, and Virtual Functions

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

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

Sample Questions

Q1) A derived class may become a base class if another class is derived from it. A)True

B)False

Q2) The following statement allows the __________ members of the Car class to access __________ members of the Vehicle class. class Car : Public Vehicle

A) private, private

B) public, private

C) protected, private D) public, protected

E) None of these

Q3) When arguments must be passed to the base class constructor, they are passed from the derived class constructor's header line.

A)True

B)False

Q4) More than one class may be derived from a base class. A)True

B)False

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

Chapter 16: Exceptions and Templates

Available Study Resources on Quizplus for this Chatper

36 Verified Questions

36 Flashcards

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

Sample Questions

Q1) Given the following code, what will happen if the value of denom is 0? double divide(int numer, int denom)

{ if (denom == 0)

\(\quad\)throw "ERROR: Cannot divide by zero.\n"; else

\(\quad\)Return static_cast&lt;double&gt;(numer)/denom; }

A) Nothing will happen because there is no catch block.

B) The program will display ERROR: Cannot divide by zero.and then move to the statement following the if/else block.

C) The program will display ERROR: Cannot divide by zero.and then halt.

D) There is no throw point because there is no try block.

E) None of these

Q2) A program may not contain both a "regular" version of a function and a template version of the function.

A)True

B)False

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

18

Chapter 17: The Standard Template Library

Available Study Resources on Quizplus for this Chatper

38 Verified Questions

38 Flashcards

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

Sample Questions

Q1) Select all that apply. Which of the following are member functions of the vector class that use emplacement?

A) insert()

B) push_back()

C) emplace()

D) emplace_back()

E) None of these

Q2) The three sequence container objects provided by the STL are

A) set, multiset, and map

B) vector, deque, and list

C) map, list, and array

D) multimap, map, and multilist

E) None of these

Q3) A mutable iterator gives you read/write access to the element to which the iterator points.

A)True

B)False

Q4) A set is an associative container containing elements that must all be unique.

A)True

B)False

Page 19

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

Chapter 18: Linked Lists

Available Study Resources on Quizplus for this Chatper

41 Verified Questions

41 Flashcards

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

Sample Questions

Q1) If the head pointer points to nullptr, this indicates

A) the list has been previously created and then destroyed

B) the list needs to be destroyed

C) there are no nodes in the list

D) the list is full and cannot accept any new nodes

E) None of these

Q2) A linked list can grow and shrink as a program runs.

A)True

B)False

Q3) To delete an entire list, normally you must traverse the list, deleting each node, one by one.

A)True

B)False

Q4) The Standard Template Library (STL) provides a linked list container.

A)True

B)False

Q5) Deleting an entire list simply requires the use of the delete operator.

A)True

B)False

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

Chapter 19: Stacks and Queues

Available Study Resources on Quizplus for this Chatper

47 Verified Questions

47 Flashcards

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

Sample Questions

Q1) A __________ stack or queue is built around the linked list.

A) dynamic

B) static

C) deque-based

D) floating-point

E) None of these

Q2) Static stacks have a __________ size and are implemented as __________.

A) fixed, linked lists

B) variable, arrays

C) fixed, arrays

D) variable, linked lists

E) None of these

Q3) A queue is a data structure that stores and retrieves item in the __________ manner.

A) last in, first out

B) first in, last out

C) first in, first out

D) random

E) None of these

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

Chapter 20: Recursion

Available Study Resources on Quizplus for this Chatper

27 Verified Questions

27 Flashcards

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

Sample Questions

Q1) The speed and amount of memory available to modern computers diminishes the performance impact of recursion so much that inefficiency is no longer a strong argument against it.

A)True

B)False

Q2) The recursive factorial function calculates the factorial of its parameter. Its base case is when the parameter is A) returned

B) received

C) one

D) zero

E) None of these

Q3) The QuickSort algorithm works on the basis of A) three sublists

B) two sublists and a pivot

C) two pivots and a sublist

D) three pivots

E) None of these

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

22

Chapter 21: Binary Trees

Available Study Resources on Quizplus for this Chatper

39 Verified Questions

39 Flashcards

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

Sample Questions

Q1) The InOrder, PreOrder, and PostOrder traversals can be accomplished using A) recursion

B) no pointers

C) no arguments

D) no parameters

E) None of these

Q2) When an application begins by searching a binary tree, it starts at

A) the outermost leaf node

B) the middle node, halfway between the root and the longest branch

C) the rightmost child of the root node

D) the root node

E) None of these

Q3) Binary trees can be divided into

A) branches

B) leaves

C) subtrees

D) sawdust

E) None of these

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

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.