Quiz 1 Flashcards
Which of the following is NOT an output device?
- Screen
- Camera
- Speakers
- Printer
Camera
What is the CPU?
- The computer programming unit, it stores the computer’s operating system.
- The central programming unit, it translates high level language and commands that we type in into machine code.
- The central processing unit, it acts as the brain of the computer and carries out commands.
- Computer peripheral unit, it handles all input and output devices.
The central processing unit, it acts as the brain of the computer and carries out commands
Instructions written in code that a computer follows are called:
- Compiler
- Input
- Operating System
- Program
Program
The programs that run on a computer are called:
- Hardware
- Comments
- Browser
- Software
Software
A name given to a spot in memory is called:
- Output
- Input
- Variable
Variable
Which of the following is NOT a legal variable name?
- grade3
- firstName
- appointment_hour
- %information
%information
What is output by the following?
print(“she sells \nseashells”)
print(“by the seashore”)
-she sells seashells
by the seashore
-she sells seashells by the seashore
- she sells
seashells by the seashore - she sells
seashells
by the seashore
she sells
seashells
by the seashore
What is output by the following?
print(“/\”)
print(“\/”)
/
\/
/\\/
/\
\/
/\/
/\
\/
___________ is what we use to communicate day to day.
- Code
- Formal Language
- Natural Language
- Algorithms
Natural Language
What is output by the following? Assume the user enters Sally and John.
x = input(“What is your name? “)
y = input(“What is your friend’s name? “)
print(“Hi “ + x + “ and “ + y)
- Hi + x + and + y
- Hi Sally and John
- Hi + Sally + and + John
- Hi x and y
Hi Sally and John