Quiz 1 Flashcards

1
Q

Which of the following is NOT an output device?

  • Screen
  • Camera
  • Speakers
  • Printer
A

Camera

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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.
A

The central processing unit, it acts as the brain of the computer and carries out commands

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Instructions written in code that a computer follows are called:

  • Compiler
  • Input
  • Operating System
  • Program
A

Program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The programs that run on a computer are called:

  • Hardware
  • Comments
  • Browser
  • Software
A

Software

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A name given to a spot in memory is called:

  • Print
  • Output
  • Input
  • Variable
A

Variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following is NOT a legal variable name?

  • grade3
  • firstName
  • appointment_hour
  • %information
A

%information

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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
A

she sells
seashells
by the seashore

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is output by the following?

print(“/\”)
print(“\/”)
/
\/

/\\/

/\
\/

/\/

A

/\

\/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

___________ is what we use to communicate day to day.

  • Code
  • Formal Language
  • Natural Language
  • Algorithms
A

Natural Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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
A

Hi Sally and John

How well did you know this?
1
Not at all
2
3
4
5
Perfectly