Unit 3 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a proposition?

A

A statement

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

When evaluated propositions can result in 2 different results, what are they?

A

True or False

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

What is a boolean expression?

A

A statement that is either True of False.

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

What is a truth table?

A

A truth table is a mathematical table to show the output from inputs that are either true or false and are subject to a given rule.

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

What are the 7 different boolean rules?

A

AND, OR, XOR, NOT, NAND, NOR and XNOR

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

What is a bitmask?

A

A bitmask is used to carry out bitwise operations

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

Why would you use a bitmask?

A

Allows for a byte, nibble or a word to be turned on or off in a single operation.

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

Use the mask 00010000, to find the 4th most significant bit of 10010001.

A

00010000

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

What is data encryption?

A

Data encryption refers to the process that translates data into a
code that can only be accessed using the decryption key.

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

Using an XOR function encrypt 01011011, using 11001110 as the key.

A

10010101

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

Using an XOR function decrypt 10010101, using 11001110 as the key.

A

01011011

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

What is a compiler?

A

A program that converts an entire high-level language code program into machine code that can be executed by a computer.

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

What is an interpreter?

A

A program that converts high-level code program line by line into machine code.

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

What is an assembler?

A

An assembler is a program that converts assembly language into machine code.

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

What happens in lexical analysis?

A

Redundant parts of the code are removed.
Keywords, constants and identifiers are replaced by token.
A symbol table is created.

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

What happens during syntax analysis?

A

The structure is checked of that code.
Tokens are checked to see if they match the languages ‘grammar’.
Each token is passed to see if it uses the correct syntax.

18
Q

What happens during semantic analysis?

A

Variables are check to ensure they are properly declared and used.
Variables are checked to ensure they are the correct data type.

19
Q
A