Chapter 1 Flashcards

1
Q

____ is the physical aspect of the computer that can be seen.

A

Hardware

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

___ is the brain of a computer.

A

Central Processing Unit

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

Speed of the CPU may be measured in ____.

A

gigahertz

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

Why do computers use zeros and ones?

A

Digital devices have two stable states and it’s natural to use one state for 0 and the other for 1.

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

One byte has __ bits.

A

8

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

One gigabyte has __ bytes.

A

1 Billion

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

Computer’s ___ is volatile; any information stored in it is lost when the system’s power is turned off.

A

memory

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

Which of the following are storage devices?

A

Floppy and hard disk, flash stick, CD-ROM

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

____ is a device to connect a computer to a local area network (LAN).

A

Network Interface Card

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

___ are instructions to the computer.

A

Software and programs

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

Computers can execute the code in ___

A

machine language.

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

___ translates high-level language program into machine language program.

A

Compiler (High-level language)

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

___ is an operating system.

A

Windows XP

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

____ is a program that runs on a computer to manage and control a computer’s activities.

A

Operating system

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

Python was created by _____

A

Guido van Rossum

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

Which of the following statements is true?

A

Python 3 is a newer version, but is not backward compatible with Python 2.

17
Q

___ is an object-oriented programming language.

A

Java, C++, C#, Python

18
Q

____ is interpreted.

A

Python

19
Q

To start Python from the command prompt, use the command ___

A

python

20
Q

Python syntax is case-sensitive.

A

True

21
Q

Which of the following code is correct?

A

print(“Programming is fun”)
print(“Python is fun”)

No indentation and correct quotes.

22
Q

Python line comment begins with

A

#

23
Q

Python paragraph comment uses the style

A

/* comments */

24
Q

A ___ error does not cause the program to abort, but produces incorrect results.

A

Syntax?

25
Q

In Python, a syntax error is detected by the ___ at ____.

A

Compiler/ at compile time

interpreter/ at runtime

26
Q

To show the current location and direction of the turtle object, use ___.

A

turtle.show()

27
Q

To move the turtle to a point at (4,5) use ___.

A

turtle.goto(4,5)

28
Q

To draw a circle with radius 50, use ___.

A

turtle.circle(50)

29
Q

To lift the pen, use ___.

A

turtle.penup()

30
Q

To put the pen down, use _____.

A

turtle.pendown()