100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Data Structures chapter 1 Exam Questions with Answers

Rating
-
Sold
-
Pages
5
Grade
A+
Uploaded on
12-04-2025
Written in
2024/2025

Data Structures chapter 1 Exam Questions with Answers What are the four phases of software development? - Correct Answers: analysis design implementation testing and debugging algorithm - Correct Answers: step by step problem solving process which a solution is arried at in a finite amount of time structured design - Correct Answers: dividing the problem into smaller subproblems, aka top-down design, stepwise refinement, and modular programing structured programming - Correct Answers: the process of implementing a structured design Object oriented design - Correct Answers: identify the components called objects, which form the basis of the solution, and determine how these objects interact with one another Object Oriented programing - OOP - Correct Answers: progrmaing language that implements OOD what are the following basic principles of OOD - Correct Answers: Encapsulation - combines data and operations in a single unit Inheritance - ability to create new data types from existing data types Polymorphism - ability to use the same expression to denote different operations what is the difference between "cerr" and "cout" - Correct Answers: "cerr" - corresponds to the unbuffered standard error stream. output is immediatly sent to the standard error stream, usually the screen "cout" - output goes first to the buffer, then to the standard error stream Precondition - Correct Answers: statement specifying the conditions that must be true before the function is called Postcondition - Correct Answers: statement specifying what is true after the function call is completed testing and debugging - Correct Answers: testing - testing the correctness of the program, making sure it does what it needs to do debugging - finding and fixing the errors, if they exist test case - Correct Answers: consists of a set of inputs, user actions, or other initial conditions, and the expected output in order to attempt to find problems. must be properly documented black box testing - Correct Answers: do not know the internal working of the algorithm or function boundary values - Correct Answers: testing values that surround and fall on the boundaries white box testing - Correct Answers: relies on the internal structure and implementation of a function or algorithm, objective is to ensure every part of function or algorithm is executed at least once asymptotic - Correct Answers: the study of the function f as n becomes larger and larger without bound class - Correct Answers: collection of a fixed number of components. members of class are components of a class ex: class classIdentifier { class members list }; true or false, you cannot initialize a variable when you declare it - Correct Answers: true you cannot what are access specifiers - Correct Answers: private, public, and protected what is the default access specifier of a class - Correct Answers: private what is a public member - Correct Answers: accesible outside the class unlike private which is not accessible outside the class how do you make a member of a class public - Correct Answers: you use the member access specifier public with a colon default constructor - Correct Answers: constructor without parameters unified modeling language - Correct Answers: a class and its members can be described graphically using this notation public is listed with + private is listed with - protected is listed as # class object or class instance - Correct Answers: class variable is this legal? clockType myClock(); - Correct Answers: no!! must be written without parenthesis how to access members of a class - Correct Answers: classObjectNrName what is the dot "." operater? - Correct Answers: member access operator scope resolution operator - Correct Answers: :: references identifiers ex: void clockType::setTime(int hours, int mins, int secs) client - Correct Answers: a program or software that uses and manipulates the objects of a class instance variables - Correct Answers: variables such as hr, min, and sec, every object has its own instance of the data class object - Correct Answers: can be either automatic (created each time the control reaches tis declaration, and destoryed when the control exits the surroundingblock) or static (created once, when the control reaches its declaration, and destroyed when the program terminates) can you delcare an array of class objects? - Correct Answers: yes, class objects have the same scope as other variables. a member of a class is local to the class and you access a public class member outside the class by usingthe class object name and the member access operator "." default constructor - Correct Answers: constructor with no parameters, or has all default parameters destructors - Correct Answers: does not have a datatype like constructors class can only have one destructor and it has no parameters. the name of a destructor is the "~" followed by the name of the class ex: ~clockType(); automatically executes whent he class object goes out of scope abstraction - Correct Answers: separating the design details from its use abstraction is process of separating logical properties from the implementation details abstract data type or ADT - Correct Answers: a data type that separates the logical properties from the implementation details has 3 things associated with it name of the ADT = type name set of values belonging to the ADT = domain set of operations

Show more Read less
Institution
Data Structures And Algorithm Analysis In C+
Course
Data Structures and Algorithm Analysis in C+









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Data Structures and Algorithm Analysis in C+
Course
Data Structures and Algorithm Analysis in C+

Document information

Uploaded on
April 12, 2025
Number of pages
5
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Data Structures chapter 1
Exam Questions with Answers
What are the four phases of software development? - Correct Answers: analysis

design

implementation

testing and debugging



algorithm - Correct Answers: step by step problem solving process which a solution is arried at in a finite
amount of time



structured design - Correct Answers: dividing the problem into smaller subproblems, aka top-down
design, stepwise refinement, and modular programing



structured programming - Correct Answers: the process of implementing a structured design



Object oriented design - Correct Answers: identify the components called objects, which form the basis
of the solution, and determine how these objects interact with one another



Object Oriented programing - OOP - Correct Answers: progrmaing language that implements OOD



what are the following basic principles of OOD - Correct Answers: Encapsulation - combines data and
operations in a single unit

Inheritance - ability to create new data types from existing data types

Polymorphism - ability to use the same expression to denote different operations



what is the difference between "cerr" and "cout" - Correct Answers: "cerr" - corresponds to the
unbuffered standard error stream. output is immediatly sent to the standard error stream, usually the
screen

"cout" - output goes first to the buffer, then to the standard error stream

, Precondition - Correct Answers: statement specifying the conditions that must be true before the
function is called



Postcondition - Correct Answers: statement specifying what is true after the function call is completed



testing and debugging - Correct Answers: testing - testing the correctness of the program, making sure it
does what it needs to do

debugging - finding and fixing the errors, if they exist



test case - Correct Answers: consists of a set of inputs, user actions, or other initial conditions, and the
expected output in order to attempt to find problems. must be properly documented



black box testing - Correct Answers: do not know the internal working of the algorithm or function



boundary values - Correct Answers: testing values that surround and fall on the boundaries



white box testing - Correct Answers: relies on the internal structure and implementation of a function or
algorithm, objective is to ensure every part of function or algorithm is executed at least once



asymptotic - Correct Answers: the study of the function f as n becomes larger and larger without bound



class - Correct Answers: collection of a fixed number of components. members of class are components
of a class

ex:

class classIdentifier

{

class members list

};
R310,35
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
EXAMSTUVIA

Document also available in package deal

Get to know the seller

Seller avatar
EXAMSTUVIA stuvia
Follow You need to be logged in order to follow users or courses
Sold
2
Member since
1 year
Number of followers
2
Documents
1114
Last sold
4 months ago
Stuvia Exam

Assignments, Case Studies, Research, Essay writing service, Questions and Answers, Discussions etc. for students who want to see results twice as fast. I have done papers of various topics and complexities. I am punctual and always submit work on-deadline. I write engaging and informative content on all subjects. Send me your research papers, case studies, psychology papers, etc, and I’ll do them to the best of my abilities. Writing is my passion when it comes to academic work. I’ve got a good sense of structure and enjoy finding interesting ways to deliver information in any given paper. I love impressing clients with my work, and I am very punctual about deadlines. Send me your assignment and I’ll take it to the next level. I strive for my content to be of the highest quality. Your wishes come first— send me your requirements and I’ll make a piece of work with fresh ideas, consistent structure, and following the academic formatting rules. For every student you refer to me with an order that is completed and paid transparently, I will do one assignment for you, free of charge!!!!!!!!!!!!

Read more Read less
0,0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions