ch 1 and 2
An error in a program that involves a violation of language rules will be detected at _ time.
compile
Application software
is any software that is runs with the support of the operating system.
A binary digit
is zero or one.
When a program runs on a computer, it is stored in
main memory
When a program is not running, it is stored
on a disk
Monitors, printers, status lights are all examples of _ devices
output
Flash drives, CDs, external disks are all examples of _ storage (memory) devices.
secondary
The rules that govern the correct order and usage of the elements of a language are called the _ of the language
syntax
A compiler
translates source code into executable code
RAM, random-access memory, is called that because
you can pick any two random locations and it will take the same time to access the data.
What's the difference in ASCII value between '3' and '0'? (consult a table of ASCII values):
3
The binary representation of an even number always ends in
0
The binary representation of a number divisible by 4 ends in
00
The binary equivalent of the decimal numeral 0 is:
00000000
The binary equivalent of the decimal numeral 2 is:
00000010
The binary equivalent of the decimal numeral 3 is:
00000011
The binary equivalent of the decimal numeral 5 is:
00000101
The binary equivalent of the decimal numeral 6 is:
00000110
The binary equivalent of the decimal numeral 9 is:
00001001
The binary equivalent of the decimal numeral 14 is:
00001110
The binary equivalent of the decimal numeral 23 is:
00010111
The decimal equivalent of the binary numeral 1 is:
1
The decimal equivalent of the binary numeral 1010 is
10
The decimal equivalent of the binary numeral 1111 is:
15
3K means about 3 thousand bytes. How would you express two hundred million bytes?
200MB
The decimal equivalent of the binary numeral 10101 is:
21
What's the difference in ASCII value between 'E' and 'A'? (consult a table of ASCII values):
4
What's the difference in ASCII value between 'e' and 'a'? (consult a table of ASCII values):
4
The decimal equivalent of the binary numeral 101010 is:
42
3K means about 3 thousand bytes. How would you express four trillion bytes?
4TB
The decimal equivalent of the binary numeral 111000 is:
56
3K means about 3 thousand bytes. How would you express five billion bytes?
5GB
What's the difference in ASCII value between '6' and '0'? (consult a table of ASCII values):
6
The decimal equivalent of the binary numeral 111111 is:
63
In modern computer systems, a byte consists of _ bits
8
he decimal equivalent of the binary numeral 1000 is:
8
Which of these is not a programming language?
HTML
What best defines a "programming language"?
It allows us to express an algorithm.
Which statement is NOT true:
Machine languages can be used to express algorithms. *Machine languages can be used to write programs that can run on any machine. Machine language consists of zeros and ones. Machine language is produced by compilers.
A bit is
a binary digit, like 0 or 1.
A byte in memory is identified by a unique number called its
address
An operating system
allocates resources like memory to programs that are running.
At each step of its operation, the input to a Central Processing Unit is
an instruction
When a program runs on a computer, the part of the computer that carries out the instructions is called the
central processing unit