100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Tentamen (uitwerkingen)

Introduction to Programming Final Exam Review (PYTHON)Study Test.

Beoordeling
-
Verkocht
-
Pagina's
17
Cijfer
A+
Geüpload op
06-04-2025
Geschreven in
2024/2025

Introduction to Programming Final Exam Review (PYTHON)Study Test. A ________ does not prevent the program from running, but causes it to produce incorrect result - CORRECT ANSWER Syntax Error A ______ is sequence of characters - CORRECT ANSWER String A ____ is a name that references a value in the computer's memory - CORRECT ANSWER Variable A _____ in python must be enclosed in either single or double-quotes - CORRECT ANSWER String Literal Short notes placed in different parts of a program explaining how these parts of the program work are called - CORRECT ANSWER Comments A(n) ______ makes a variable reference a value in the computer's memory - CORRECT ANSWER Assignment Statement The ___ symbol marks the beginning of a comment in python - CORRECT ANSWER # Values on the right and left of an operator symbol (+) are called: - CORRECT ANSWER Operands ______ can be used to read input that has been typed on the keyboard - CORRECT ANSWER input() having float(aroundSomething) - CORRECT ANSWER converts to a float A magic number is an: - CORRECT ANSWER unexplained value that appears in a program's code A _____ is a name that represents a value that does not change during the program's execution - CORRECT ANSWER Named Constant First characters of a variable names: - CORRECT ANSWER cannot be a number If a variable has not been assigned a value - CORRECT ANSWER 0 will not display since the variable was not assigned 0 to begin with A _____ can execute a set of statements only certain circumstances - CORRECT ANSWER Decision Structure A ____ provides one alternative path of executions - CORRECT ANSWER Single Alternative Decision Boolean has a value of either - CORRECT ANSWER True or False A compound boolean expression created with the "or" operator is true if: - CORRECT ANSWER Either of its sub-expressions are true A ____ can be nested inside another decision structure - CORRECT ANSWER Decision structure A compound boolean expression created with the "and" operator is true only when: - CORRECT ANSWER Both sub-expression sare true The while loop is a ___ type of loop - CORRECT ANSWER Pretest An ____ loop has no way of ending and repeats until the program is interrupted - CORRECT ANSWER Infinite Loop The -= operator is an example of a(n) _______ - CORRECT ANSWER augmented assignment operator A(n) ______ is a special value that signals when there are no more items from a list of items to be processed. This value cannot be mistaken as an item from the list - CORRECT ANSWER sentinel It is _____ that a condition-controlled loop always repeats a specific number of times - CORRECT ANSWER false x= x-1 does? - CORRECT ANSWER subtracts 1 from x It is necessary to initialize ______ - CORRECT ANSWER accumulator variables In a ________, the inner loop goes through all of its iterations for every single iteration of the outer loop - CORRECT ANSWER nested loop To calculate the total number of iterations of a nested loop, you ____ the number of iterations of all the loops - CORRECT ANSWER multiply Design technique that helps to reduce the duplication of code within a program and is a benefit of using functions is _____ - CORRECT ANSWER code reuse The first line of a function definition is known as the _____ - CORRECT ANSWER header You ____ a function to execute it - CORRECT ANSWER call A ______ is a variable that is created inside a function - CORRECT ANSWER local variable A(n) ____ is the part of a program in which a variable may be accessed - CORRECT ANSWER Scope A(n) _______ is a piece of data that is sent into a function - CORRECT ANSWER argument A(n) ______ is a special variable that receives a piece of data when a function is called - CORRECT ANSWER parameter

Meer zien Lees minder
Instelling
PYTHON.
Vak
PYTHON.










Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
PYTHON.
Vak
PYTHON.

Documentinformatie

Geüpload op
6 april 2025
Aantal pagina's
17
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Voorbeeld van de inhoud

Introduction to Programming Final Exam
Review (PYTHON)Study Test.

A ________ does not prevent the program from running, but causes it to produce incorrect result -
CORRECT ANSWER Syntax Error



A ______ is sequence of characters - CORRECT ANSWER String



A ____ is a name that references a value in the computer's memory - CORRECT ANSWER Variable



A _____ in python must be enclosed in either single or double-quotes - CORRECT ANSWER String Literal



Short notes placed in different parts of a program explaining how these parts of the program work are
called - CORRECT ANSWER Comments



A(n) ______ makes a variable reference a value in the computer's memory - CORRECT ANSWER
Assignment Statement



The ___ symbol marks the beginning of a comment in python - CORRECT ANSWER #



Values on the right and left of an operator symbol (+) are called: - CORRECT ANSWER Operands



______ can be used to read input that has been typed on the keyboard - CORRECT ANSWER input()



having float(aroundSomething) - CORRECT ANSWER converts to a float



A magic number is an: - CORRECT ANSWER unexplained value that appears in a program's code

,A _____ is a name that represents a value that does not change during the program's execution -
CORRECT ANSWER Named Constant



First characters of a variable names: - CORRECT ANSWER cannot be a number



If a variable has not been assigned a value - CORRECT ANSWER 0 will not display since the variable was
not assigned 0 to begin with



A _____ can execute a set of statements only certain circumstances - CORRECT ANSWER Decision
Structure



A ____ provides one alternative path of executions - CORRECT ANSWER Single Alternative Decision



Boolean has a value of either - CORRECT ANSWER True or False



A compound boolean expression created with the "or" operator is true if: - CORRECT ANSWER Either of
its sub-expressions are true



A ____ can be nested inside another decision structure - CORRECT ANSWER Decision structure



A compound boolean expression created with the "and" operator is true only when: - CORRECT ANSWER
Both sub-expression sare true



The while loop is a ___ type of loop - CORRECT ANSWER Pretest



An ____ loop has no way of ending and repeats until the program is interrupted - CORRECT ANSWER
Infinite Loop



The -= operator is an example of a(n) _______ - CORRECT ANSWER augmented assignment operator

, A(n) ______ is a special value that signals when there are no more items from a list of items to be
processed. This value cannot be mistaken as an item from the list - CORRECT ANSWER sentinel



It is _____ that a condition-controlled loop always repeats a specific number of times - CORRECT
ANSWER false



x= x-1 does? - CORRECT ANSWER subtracts 1 from x



It is necessary to initialize ______ - CORRECT ANSWER accumulator variables



In a ________, the inner loop goes through all of its iterations for every single iteration of the outer loop
- CORRECT ANSWER nested loop



To calculate the total number of iterations of a nested loop, you ____ the number of iterations of all the
loops - CORRECT ANSWER multiply



Design technique that helps to reduce the duplication of code within a program and is a benefit of using
functions is _____ - CORRECT ANSWER code reuse



The first line of a function definition is known as the _____ - CORRECT ANSWER header



You ____ a function to execute it - CORRECT ANSWER call



A ______ is a variable that is created inside a function - CORRECT ANSWER local variable



A(n) ____ is the part of a program in which a variable may be accessed - CORRECT ANSWER Scope



A(n) _______ is a piece of data that is sent into a function - CORRECT ANSWER argument



A(n) ______ is a special variable that receives a piece of data when a function is called - CORRECT
ANSWER parameter
€11,79
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

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.
ROSEGRADES Nursing
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
214
Lid sinds
2 jaar
Aantal volgers
87
Documenten
12161
Laatst verkocht
1 week geleden
TOPGRADE

I HELP STUDENTS WITH REVISION MATERIALS WITH BETTER GRADES GUARANTEED. BEST OF LUCK.

3,4

30 beoordelingen

5
10
4
3
3
11
2
2
1
4

Recent door jou bekeken

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

Veelgestelde vragen