CMPS 290/375 Flashcards

1
Q

What is a Compiler

A

A computer program (or set of programs) that transforms source code written in a programming language (the source language) into another computer language (the target language, often having a binary from known as object code).

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

What is a Decompiler

A

A program that translates from a low level language to a higher level language.

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

What is the most common reason for converting source code?

A

To create an executable program.

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

What is the primary use of a compiler?

A

The ____ is primarily used for programs that translate source code from a high-level programming language to a lower level language (e.g., assembly language or machine code).

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

What is an Assembler?

A

A computer program which translates assembly language to an object file or machine language format.

Creates object code by translating combinations of mnemonics and syntax for operations and addressing modes into their numerical equivalents.

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

What is an Instruction?

A

A single operation of a processor defined by the processor instruction set.

Patterns of bits that by physical design correspond to different commands to the machine.

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

What are the sizes of most modern processors?

A

16 to 64bits

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

What is the Instruction Set Architecture (ISA)?

A

The part of the computer architecture related to programming, including the native data types, instructions, registers, addressing modes, memory architecture, interrupt and exception handling, and external I/O.

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

What is a Bit

A

A binary digit

The basic unit of information in computing and digital communication

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

What is a Byte

A

A unit of digital information in computing and telecommunications that consists of 8 bits

Smallest addressable unit of memory

-128 to 127

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

What is Assembly Language

A

A low-level porgramming language for a computer, or other programmable device, in which there is a very strong (generally one-to-one) correspondence between the language and the architectures machine code instructions.

There is a different assembly language for each architecture, unlike high level languages.

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

What is Machine Language

A

A set of instructions executed directly by a CPU

Each instruction performs a very specific task, such as load, a jump, or an ALU operation on a unit of data in a CPU register or memory

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

What is Moore’s Law

A

The observation that the number of transistors in a dense integrated circuit doubles approximately every two years

This trend is theorized to continue for two more decades.

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

What is Two’s Compliment

A

To get the two’s compliment of a binary number, the bits are inverted or “flipped”, by using the bitwise NOT operation: the value of 1 is then the resulting value, ignoring the overflow which occurs when taking the two’s compliment of 0.

EX) number 5
0000 0101
^ that 0 means +

INVERT
1111 1010

Add 1 to the LSB
1111 1011

The result is a signed binary nmber representing the decimal value -5

To reverse then flip the bits again and then flip the LSB

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

How to Add Binary

A
0 1 1 1
\+ 1 1 1 0
=
----------
  0 1 1 1
\+1 1 1 0
=       1
---------
     1
  0 1 1 1
\+ 1 1 1 0
=     0 1
------
  1  1
  0 1 1 1
\+ 1 1 1 0
=   1 0 1
-----
  1  1
   0 1 1 1
\+  1 1 1 0
= 0 1 0 1
-------
= 10101
How well did you know this?
1
Not at all
2
3
4
5
Perfectly