Which of the following is NOT an input device? - ANSWER-printer
Which of the following are true about main and secondary memory? - ANSWER-Main memory is short term memory used by the CPU in processing commands, secondary memory is more permanent and used for storage.
Which of the following co...
Which of the following is NOT an input device? - ANSWER-printer
Which of the following are true about main and secondary memory? - ANSWER-Main
memory is short term memory used by the CPU in processing commands, secondary
memory is more permanent and used for storage.
Which of the following controls computer memory? - ANSWER-operating system
What is the correct order for the steps the compiler uses in translating code? -
ANSWER-Check for mistakes, Translate commands to machine language, Run the
commands
What is input? - ANSWER-Putting information into the computer
Which of the following is a legal variable name? - ANSWER-temperatureAM
The two basic categories of variable data types are: - ANSWER-Strings and numbers
What command is used to change a string into a number? - ANSWER-int
What is output by the following?
print ("Twinkle, \ttwinkle, \tlittle star") - ANSWER-Twinkle, twinkle, little star
What is output by the following?
print (type("95")) - ANSWER-<type 'str'>
What is output by the following? Assume the user enters 5 and 4
x = input ("Enter a number: ")
y = input ("Enter a number: ")
print ("Values: " + x + y) - ANSWER-Values: 54
Consider the following code:
x = "apple"
y=x
z = "banana"
print (x + " " + y + "\n" + z)
What is output? - ANSWER-apple apple
banana
Which of the following correctly inputs two numbers and print the sum? - ANSWER-n1 =
int(input("Enter a number: "))
n2 = int(input("Enter a number: "))
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 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 Topgrades20. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £8.24. You're not tied to anything after your purchase.