Section 2A - Programming Basics Flashcards

1
Q

What are variables?

A

Variables are any data that is stored in memory locations, and as the program runs, the values in these locations change.

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

What is an integer?

A

A integer is a whole number such as 1, 2 or 3

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

What is a real/ float?

A

A number with a decimal point such as 3.456

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

What is a char/character?

A

A single character, where the character is anything that can be typed

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

What is a string?

A

Zero or more characters. A string can be null (empty), just 1 characters or many characters

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

What is a boolean?

A

A boolean variable has the value True or False

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

What is a constant?

A

A value which does not change in the memory

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

What does ASCII stand for?

A

“American Standard Code for Information Interchange”

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

What is Robust code?

A

Code which will not result in the program crashing due to an unexpected user input

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

What is an array?

A

An array is a list which stores a collection under 1 identifier

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

What is a data structure?

A

When we group data items together so they can be treated as a set of data

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