COSC 1436 Test 1 Review
Questions and answers
The set of rules for forming sentences in a language is called the language
___________ . - answer syntax
A Python script is __________ . - answer a program file that can be run or
distributed to other people
Translators are used to ____________ . - answer convert high level program
code into executable code
Which of the following outputs data when a Python program is run? -
answer the print statement
Python program code tends to generate fewer error messages than other
programming languages because ___________ . - answer complicated
syntax is replaced with specific indentations called "control structure"
Which of the following is an output device? - answer Speaker
The CPU is responsible for _________ ? - answer processing data
Which of the following is an input device? - answer Scanner
Information is represented in hardware memory ________ . - answer as
patterns of binary digits
An interface that accepts inputs from a keyboard and displays text output
on a monitor is called a ____________ . - answer terminal based interface
, A _____________ organizes the monitor screen around the metaphor of a
desktop. - answer Graphical User Interface
An algorithm has a __________ number of instructions and ________ after
arriving at a solution to its associated problem. - answer limited, halts
In what sense is a desk top computer a general-purpose problem-solving
machine? - answer They are capable of performing a task described by
any algorithm.
The following code will produce what output? x = 34.50001 print(round(x))
- answer 35
If the value of the variable X is "dog" and the value of the variable Y is
"cat" what will be the value returned by the operation: X+Y? - answer
dogcat
What data type would be used to represent the area of a circle? - answer
float
The Python scientific notation for 123400000 would be written as? -
answer 1.234e8
The following output is produced by what code? Output example:
FirstName - answer print ("First\nLast")
What symbol is used to begin an end-of-line comment? - answer a
"pound" sign #
Why is it a bad idea to skip the programming (analysis and design) in the
software development process? - answer Because there is a lot more to
software development than writing code
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 GUARANTEEDSUCCESS. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $14.49. You're not tied to anything after your purchase.