The Basics Flashcards

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

What determines whether a string is legal?

A

Syntax

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

What determines whether a string has meaning?

A

Static semantics

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

What assigns a meaning to a legal sentence?

A

Semantics

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

What does a fixed computer do?

A

Single tasks (like a calculator, cash register, or digital washing machine).

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

What is declarative knowledge?

A

Facts and information.

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

What does a stored program computer do?

A

Stores and manipulates data, much like the one you’re using right now!

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

What is imperative knowledge?

A

Recipes and methods - how to come about finding declarative knowledge.

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

What does ALU stand for?

A

Arithmetic Logic Unit

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

What are scalar objects?

A

Objects that cannot be subdivided

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

What are non-scalar objects?

A

Objects that have internal structure that can be accessed.

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

What are the three types of scalar objects?

A

int, float, and bool

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

What are ints?

A

Integers, whole numbers

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

What are floats?

A

Floating point numbers, used to represent real numbers, things that have decimal and patrons to them

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

What are bools?

A

Booleans, a type of bool which are used to represent the truth values of true and false

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

What are expressions?

A

The combination of objects and operators, each of which denotes an object of some type.

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

What is the syntax for the most simple expression?

A
17
Q

What is the quotient component?

A

The digit(s) before the decimal point

18
Q

What are strings?

A

str, Non-scalar objects that sequences of characters