Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Document preview thumbnail
Voorbeeld 3 van de 23 pagina's
Tentamen (uitwerkingen)

ENGR 102 Exam 2 Questions with Correct Answers | Updated (100% Correct Answers)

Document preview thumbnail
Voorbeeld 3 van de 23 pagina's

ENGR 102 Exam 2 Questions with Correct Answers | Updated (100% Correct Answers)

Voorbeeld van de inhoud

1


ENGR 102 Exam 2 Questions with Correct
Answers | Updated (100% Correct Answers)
We'll use top-down design as a way of organizing many of our
programs. Which of the following steps is included in the top-down
design process?

A. Break the problem into individual "large" steps

B. Break individual "large" steps into smaller steps

C. Stop the design process when the code should be "obvious" from
the description Answer: A,B,C

A hierarchy helps manage complexity. Answer: True

Top-down design refers to taking a problem and creating a
hierarchy by breaking it down from the top-most level of the
hierarchy downward. Answer: True

You can use the top-down design method to approach many
problems, including engineering challenges. Answer: True

Example: University -> Academic/Non-Academic -> Colleges/Offices
-> Departments -> Individuals

Question to answer (T/F): When we encounter a hierarchy like this in
computing, we usually call it a "Branch". Answer: False

© 2025 All rights reserved

,2
A hierarchical tree structure will have a "root" at the base. Answer:
True

In a hierarchical tree structure, any one "leaf" node will have a
"parent" (the node just above). Answer: True

In a hierarchical tree structure, any one "leaf" node will have
"children" (the nodes that descend from it, below). Answer: False

In a hierarchical tree structure, the nodes without children are called
"roots". Answer: False

The following are some of the advantages of Hierarchies:

- They can create artificial boundaries

- Can lead to too much conceptual separation between things that
are similar Answer: False

In a hierarchy, a node without children is called a "seed" Answer:
False

In computing, a hierarchy is often called a "tree" Answer: True

In a hierarchy, the "root" node has no parents and many children
Answer: True

Hierarchies help us manage and organize complex things Answer:
True

© 2025 All rights reserved

, 3
Top-down design should usually be my first way of approaching a
programming problem Answer: True

It is common practice to list all functions near the beginning of a
program, before any of the "main" code. Answer: True

print_messages()

def print_messages():

print("Message 1")

print("Message 2") Answer: False

You can call one function from another. Answer: True

When the interpreter encounters a function definition, it
"remembers" what the name of the function is and how many
parameters it takes. It does not actually go through the function
body. Answer: True

The scope of a variable refers to the regions of the program where
that variable is valid, and can be accessed. Answer: True

A local variable is a variable defined in the context of just a
particular function. Answer: True

Local variables are shared between functions. Answer: False

def my_function():

© 2025 All rights reserved

Documentinformatie

Geüpload op
16 januari 2026
Aantal pagina's
23
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden
€12,38

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
Passit
3,5
(23)
Verkocht
128
Volgers
6
Items
14482
Laatst verkocht
2 weken geleden

Echte notities, van echte studenten
Elk document op Stuvia is geschreven door een medestudent die hetzelfde vak deed. Zo leer je van iemand die het al heeft gehaald.



Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen