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: "))