100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Computer Science- Test 1 Review 100% Correct

Rating
-
Sold
-
Pages
2
Grade
A+
Uploaded on
31-10-2024
Written in
2024/2025

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: ")) print("The answer is: " + str(n1+n2)) Consider the following code: x = input ("What year is it?") print x The value stored in x is: - ANSWER-a String Consider the following code: print ("computer" + "science") What is output? - ANSWER-computerscience What is one downside of converting analog information to a digital format? - ANSWER-Some information may be lost when it is converted. The symbol used to create a comment is: - ANSWER-# Which of the following will correctly output: I know there's a proverb which that says "To err is human," but a human error is nothing to what a computer can do if it tries. - Agatha Christie - ANSWER-quote = ""To err is human,"" print ("I know there's a proverb which that says n"+ quote + "nbut") print ("a human error is nothing to what a computer") print ("can do if it tries.nn- Agatha Christie") When do we use numbers instead of strings? - ANSWER-When you need to do calculations Which of the following about computers is NOT true? - ANSWER-Computing devices translate digital to analog information in order to process the information.

Show more Read less
Institution
Computer Science-
Course
Computer Science-








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Computer Science-
Course
Computer Science-

Document information

Uploaded on
October 31, 2024
Number of pages
2
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Computer Science- Test 1 Review 100% Correct


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

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Topgrades20 West Virginia University
View profile
Follow You need to be logged in order to follow users or courses
Sold
12
Member since
2 year
Number of followers
10
Documents
812
Last sold
9 months ago

3.5

2 reviews

5
0
4
1
3
1
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions