100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

COSC 2 Exam Questions and Answers Latest Update Graded A+

Rating
-
Sold
-
Pages
6
Grade
A+
Uploaded on
23-10-2024
Written 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

Show more Read less
Institution
COSC 2
Course
COSC 2









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
COSC 2
Course
COSC 2

Document information

Uploaded on
October 23, 2024
Number of pages
6
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

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

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TutorJosh Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
342
Member since
1 year
Number of followers
16
Documents
28567
Last sold
1 day ago
Tutor Joshua

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

3.6

53 reviews

5
18
4
14
3
12
2
0
1
9

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions