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
Tentamen (uitwerkingen)

COSC 2 Exam Questions and Answers Latest Update Graded A+

Beoordeling
-
Verkocht
-
Pagina's
6
Cijfer
A+
Geüpload op
23-10-2024
Geschreven in
2024/2025

COSC 2 Exam Questions and Answers Latest Update Graded A+ Programs that use _____ code logic are unstructured programs that do not follow the rules of structured logic. - Answers spaghettia With a(n) ____, you perform an action or task, and then you perform the next action, in order. - Answers sequence structure The following pseudocode is an example of a ____ structure. get firstNumber get secondNumber add firstNumber and secondNumber print result - Answers sequence Pseudocode uses the end-structure statement ____ to clearly show where the structure ends. - Answers endif The following pseudocode is an example of a ____ structure. if firstNumber is bigger than secondNumber then print firstNumber else print secondNumber endif - Answers decision Fill in the blank in the following pseudocode: if someCondition is true then do oneProcess ____ do theOtherProcess endif - Answers else if-else examples can also be called ____ because they contain the action taken when the tested condition is true and the action taken when it is false. - Answers dual-alternative selections The action or actions that occur within a loop are known as a(n) ____. - Answers loop body You may hear programmers refer to looping as ____. - Answers iteration The following pseudocode is an example of a ____ structure. get number while number is positive add to sum get number endwhile - Answers loop The following pseudocode is an example of ____. do stepA do stepB if conditionC is true then do stepD else do stepE endif while conditionF is true do stepG endwhile - Answers stacking Attaching structures end to end is called ____ structures. - Answers stacking The following pseudocode is an example of ____. if conditionA is true then do stepE else do stepB do stepC do stepD endif - Answers Nesting Placing a structure within another structure is called ____ structures. - Answers nesting The maximum number of entry points that any programming structure can have is ____. - Answers one A structured program includes only combinations of the three basic structures: ____. - Answers sequence, selection, and loop Structures can be stacked or connected to one another at their ____. - Answers entry or exit points A ____ read is an added statement that gets the first input value in a program. - Answers priming The priming read is an example of a(n) ____ task. - Answers housekeeping In older languages, you could leave a selection or loop before it was complete by using a ____ statement. - Answers go to Structured programs can be easily broken down into routines or ____ that can be assigned to any number of programmers. - Answers modules One way to straighten out an unstructured flowchart segment is to use the ____ method. - Answers spaghetti bowl A loop must return to the ____ question at some later point in a structure. - Answers loop controlling The do loop is a variation of the ____ loop. - Answers while The case structure is a variation of the ____ structure. - Answers selection A ____ expression is one that represents only one of two states, usually expressed as true or false. - Answers boolean The keyword that is NOT included in a single-alternative selection is ____. - Answers else The ____ clause is the part of the decision that holds the action or actions that execute when the tested condition in the decision is true. - Answers if then ____ operators require two operands. - Answers binary Both operands in a comparison expression must be the same ____. - Answers data type Usually, ____ variables are not considered to be equal unless they are identical. - Answers string

Meer zien Lees minder
Instelling
COSC 2
Vak
COSC 2

Voorbeeld van de inhoud

COSC 2 Exam Questions and Answers Latest Update Graded A+

Programs that use _____ code logic are unstructured programs that do not follow the rules of structured
logic. - Answers spaghettia

With a(n) ____, you perform an action or task, and then you perform the next action, in order. - Answers
sequence structure

The following pseudocode is an example of a ____ structure.

get firstNumber

get secondNumber

add firstNumber and secondNumber

print result - Answers sequence

Pseudocode uses the end-structure statement ____ to clearly show where the structure ends. - Answers
endif

The following pseudocode is an example of a ____ structure.

if firstNumber is bigger than secondNumber then

print firstNumber

else

print secondNumber

endif - Answers decision

Fill in the blank in the following pseudocode:

if someCondition is true then

do oneProcess

____

do theOtherProcess

endif - Answers else

if-else examples can also be called ____ because they contain the action taken when the tested
condition is true and the action taken when it is false. - Answers dual-alternative selections

The action or actions that occur within a loop are known as a(n) ____. - Answers loop body

, You may hear programmers refer to looping as ____. - Answers iteration

The following pseudocode is an example of a ____ structure.

get number

while number is positive

add to sum

get number

endwhile - Answers loop

The following pseudocode is an example of ____.

do stepA

do stepB

if conditionC is true then

do stepD

else

do stepE

endif

while conditionF is true

do stepG

endwhile - Answers stacking

Attaching structures end to end is called ____ structures. - Answers stacking

The following pseudocode is an example of ____.

if conditionA is true then

do stepE

else

do stepB

do stepC

Geschreven voor

Instelling
COSC 2
Vak
COSC 2

Documentinformatie

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

Onderwerpen

$8.49
Krijg toegang tot het volledige document:

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


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.
TutorJosh Chamberlain College Of Nursing
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
440
Lid sinds
1 jaar
Aantal volgers
16
Documenten
31724
Laatst verkocht
12 uur geleden
Tutor Joshua

Here You will find all Documents and Package Deals Offered By Tutor Joshua.

3.5

73 beoordelingen

5
26
4
16
3
14
2
1
1
16

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

Bezig met je bronvermelding?

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

Bezig met je bronvermelding?

Veelgestelde vragen