Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Examen

Data Structures chapter 1 Exam Questions with Answers

Puntuación
-
Vendido
-
Páginas
5
Grado
A+
Subido en
12-04-2025
Escrito en
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

Mostrar más Leer menos
Institución
Data Structures And Algorithm Analysis In C+
Grado
Data Structures and Algorithm Analysis in C+

Vista previa del contenido

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

};

Escuela, estudio y materia

Institución
Data Structures and Algorithm Analysis in C+
Grado
Data Structures and Algorithm Analysis in C+

Información del documento

Subido en
12 de abril de 2025
Número de páginas
5
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$18.49
Accede al documento completo:

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Conoce al vendedor
Seller avatar
SAVEMYEXAMS

Documento también disponible en un lote

Conoce al vendedor

Seller avatar
SAVEMYEXAMS stuvia
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
2
Miembro desde
1 año
Número de seguidores
2
Documentos
1594
Última venta
10 meses hace
SAVEMYEXAMS

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!!!!!!!!!!!!

Lee mas Leer menos
0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes