Module 1 Chapter 1 Programming Basics Flashcards

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

What is an algorithm?

A

An algorithm is a set of rules or a sequence of steps specifying how to solve a problem. They all have input, processing and output.

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

Give five examples of the different data types used in programming

A
  • Integer
  • Real/ Float
  • Boolean
  • Character
  • String
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are variables?

A

Identifiers given to memory locations whose contents will change during the course of the program.

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

What are constants?

A

Identifiers given to memory locations whose contents never change during the course of the program. Not all programming languages allow you to define constants.

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