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
Document preview thumbnail
Vista previa 3 fuera de 16 páginas
Examen

engr 102 exam 2 Questions with Correct Answers | Updated (100% Correct Answers)

Document preview thumbnail
Vista previa 3 fuera de 16 páginas

engr 102 exam 2 Questions with Correct Answers | Updated (100% Correct Answers)

Vista previa del contenido

1


engr 102 exam 2 Questions with Correct
Answers | Updated (100% Correct Answers)
Top Down Design Answer: Starting with a broad concept and
breaking it down into smaller and smaller pieces.

end result of top down design Answer: hierarchy

2 things a unit of design should be Answer: coherent and constant

parts of a hierarchy Answer: tree, root, node, parent, child, leaves

tree Answer: A hierarchy of data in which data are organized into
nodes, each of which have exactly one parent node. The exception
is the root node, which has no parents.

root Answer: at the base of hierarchy (highest level)

node Answer: an individual element of hierachy

2 parts of a node Answer: a parent and a child (breakdown of
parent)

leaves Answer: a node without children (lowest level)

advantages of hierarchy Answer: provides coherency, provides
conceptual separation, helps manage complexity




© 2025 All rights reserved

,2
disadvantages of hierarchy Answer: can create artifical boundaries,
not always clear how things are separated, they dont capture all
relationships

attributes of a balanced hierarchy Answer: useful way to organize
ideas and processes

console Answer: default interactive window

files Answer: a way of storing information outside of main memory

file extensions Answer: the endings of file names that indicate to
the computer the format for how the underlying bits are organized.

2 things to designate how to open a file Answer: variable and file
identifier

how to open files Answer: <file ID> = open("filename",
"designator")

do when finished with file Answer: <file ID>.close()

alternative form of opening files Answer: with <open command> as
<file ID>:

file designators and their function Answer: r = read

w = write

a = append

© 2025 All rights reserved

, 3
rb or wb = read/write binary

r+ = read and write

<null> = read when none given

when to use separate open and close statements Answer: using
multiple files at once or for a long time

when open / close are not nested

when to use formulation to open and close Answer: ensuring your
file closes correctly

clearly delineating which part of the code is doing the operation

how to write in a file Answer: <file ID>.write("string to write")

when using 'write' (not print) Answer: only 1 string, only writes in
strings, no carriage function/ new line

reading from files Answer: <string variable> = <file ID>.readline()

for reading multiple lines Answer: for <line ID> in <file ID>:

do something with string ID

( * loops through file like a list *)

most useful string processing Answer: "split" method


© 2025 All rights reserved

Información del documento

Subido en
16 de enero de 2026
Número de páginas
16
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$13.99

¿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

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Passit
3.5
(23)
Vendido
128
Seguidores
6
Artículos
14482
Última venta
2 semanas hace



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