Unit 1 Study Guide Flashcards

1
Q
Which of the following are computer hardware components?
A. input devices
B. Output devices
C. Main memory
D. Secondary memory
E.  CPU
A

All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
Computer software is composed of 
A. Compiler
B. Programs
C. Decimal data
D. Operating system
A

A-B-D

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

List computer input devices

A

Mouse, keyboard, digital pen, trackball, trackpad, voice control, touch control

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

List computer output devices

A

Printer, monitor, speakers, USB drive, disc, CD, DVD

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

What are main memory, secondary memory and the CPU?

A

Main memory -
Secondary memory -
CPU - central processor unit. Brains of the computer that processes data and commands

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

How do programs, the compiler and the operating system interact?

A

?

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

What is single line versus multiple line?

A

?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
What is output by the following?
Print (''she sells |nseashells")
Print ("by the seashore")
A. She sells seashells by the seashore
B. She sells
     Seashells
     By the seashore
C. She sells seashells
     By the seashore
A

C. She sells seashells

By the seashore

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.  
A. Natural language
B. Algorithms
C. Formal language
D. Code
A

A. Natural language

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

What is the CPU?
A. Central Processing Unit. Brains of the computer.
B. Command Perhiperhal unit. Handles all input/output devices
C. Computer Programming Unit. Stores the program commands
D. Central Programming Unit. Translates high level language into code

A

A. Central Processing Unit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
What is output by.   Print ("/\\")
                                   Print ("\\/")
A. /\\\\/
B. /\\
     \\/
C. /\\ \/
A

B. /\

\/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
The program that runs on a computer are called
A. Concatenation
B. Browser
C. Hardware
D. Software
A

D. Software

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

What is output by the following? Assume user enters Sally & John. X = input (“What is your name?”)
Y = input (“What is your friend’s name?”)
Print (“Hi” + x “and” y)
A. Hi x and y
B. Hi Sally and John
C. Hi + Sally + and + John
D. Hi + x + and + y

A

B. Hi Sally and John

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
Instructions written in code that computers follow are called:
A. Input
B. Compilers
C. Programs
D. Operating systems
A

C. Programs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
Which of these is NOT a valid variable name?
A. Appointment_hour
B. %information
C. FirstName
D. Grade3
A

B. %information

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
A name given to a spot in memory is called:
A. Input
B. Output
C.  Variable
D. Print
A

C. Variable

17
Q
Which of the following is NOT an output device?
A. Screen
B. Speakers
C. Camera 
D. Printer
A

C. Camera

18
Q

_______________ means a series of interconnected things or events such as instructions in computer code.

A

Concatenation

19
Q

___________ are a linear sequence of data or commands

A

Strings

20
Q

What does \ mean? It is called an _________ character.

A

Escape character. Tells the compiler to treat the next character differently. Such as \n or \t or new line or TAB

21
Q

\n designates what?

A

\n - new line starts

22
Q

What is the compiler?

A

Software program that converts instructions into machine code or lower level form so that they can be read and executed by a computer.

23
Q

Software that supports basic computer functions such as executing applications, controlling peripherals, and scheduling tasks is called ____________

A

Operating system

24
Q
Codes instructions that enable a computer to perform particular tasks are called:
A. Operating system
B. Compiler
C. Programs
D. Typecasting
A

C. Programs

25
Q

Variable names can contain spaces. T/F

Variable names must start with a letter or
the characters @,#,$, %. T/F

A

F - no spaces

F. - Letter or @, #, $ NOT %