COSC 2 Exam Questions and Answers Latest Update Graded A+
6 views 0 purchase
Course
COSC 2
Institution
COSC 2
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 se...
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
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller TutorJosh. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $7.99. You're not tied to anything after your purchase.