COSC 1436 Midterm UPDATED ACTUAL Questions and CORRECT Answers
4 views 0 purchase
Course
COSC 1436
Institution
COSC 1436
COSC 1436 Midterm UPDATED ACTUAL
Questions and CORRECT Answers
algorithm - CORRECT ANSWER- a process or set of rules to be followed in calculations
or other problem-solving operations
argument - CORRECT ANSWER- a value that you pass to a routine. For example, if
SQRT is a routine that retur...
COSC 1436 Midterm UPDATED ACTUAL
Questions and CORRECT Answers
algorithm - CORRECT ANSWER- ✔✔a process or set of rules to be followed in calculations
or other problem-solving operations
argument - CORRECT ANSWER- ✔✔a value that you pass to a routine. For example, if
SQRT is a routine that returns the square root of a value, then SQRT(25) would return the
value 5. The value 25 is the argument.
benefits of using functions - CORRECT ANSWER- ✔✔
block - CORRECT ANSWER- ✔✔a structure of source code where some is grouped together
(think: what would be going between the brackets)
break - CORRECT ANSWER- ✔✔break is used within loops and switch statements to jump
to the end of the code block. It causes the "//code..." above to be skipped and terminates the
loop. In switch case statements, break causes the remaining cases to be skipped--it prevents
"falling through" to other cases.
byte - CORRECT ANSWER- ✔✔unit of digital information that most commonly consists of
eight bits
character - CORRECT ANSWER- ✔✔a character is a unit of information that roughly
corresponds to a grapheme, grapheme-like unit, or symbol
cin - CORRECT ANSWER- ✔✔input code; prompting user to assign a value to a given
variable
combined assignment - CORRECT ANSWER- ✔✔
comment - CORRECT ANSWER- ✔✔preceded by \\, a comment is a note only for the
programmer that the code does not run
, compiler - CORRECT ANSWER- ✔✔a computer program (or a set of programs) that
transforms source code written in a programming language (the source language) into another
computer language (the target language), with the latter often having a binary form known as
object code.
continue - CORRECT ANSWER- ✔✔instead of forcing termination, it forces the next
iteration of the loop to take place, skipping any code in between. For the for loop, continue
statement causes the conditional test and increment portions of the loop to execute.
cout - CORRECT ANSWER- ✔✔program command to display something (a prompt,
variables, etc.) on the module
CPU - CORRECT ANSWER- ✔✔computer component that's responsible for interpreting and
executing most of the commands from the computer's other hard- and software
Do-While Loop - CORRECT ANSWER- ✔✔a do while loop executes a block of code at
least once, and then repeatedly executes the block, or not, depending on a given exit
condition at the end of the block.
end1 - CORRECT ANSWER- ✔✔creates a new line in displayed text
Escape sequence - CORRECT ANSWER- ✔✔an escape sequence is two or more characters
that often begin with an escape character that tells the computer or software program to
perform a function or command (such as \n for new line)
Expression - CORRECT ANSWER- ✔✔a combination of one or more explicit values,
constants, variables, operators, and functions that the programming language interprets
(according to its particular rules of precedence and of association) and computes to produce
(called "return")
For Loop - CORRECT ANSWER- ✔✔a repetition control structure that allows you to
efficiently write a loop that needs to execute a specific number of times
Function - CORRECT ANSWER- ✔✔instructions used to create the output from its input
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 MGRADES. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $10.49. You're not tied to anything after your purchase.