返回卡包市场

Section 1 - Fundamentals of Programming

暂无描述。系统推荐的高质量记忆内容,适合每天坚持背诵学习。

卡片总数: 24内容版本: v4公开卡包更新时间: 8/1/2026

卡片预览 (24 张)

#1
正面 (问题)

What is an algorithm?

背面 (解答)

A set of rules/a sequence of steps you can follow to solve a problem. They have inputs, processing and outputs.

#2
正面 (问题)

What is psuedocode?

背面 (解答)

The midpoint between a natural language and a programming languages. There are no concrete rules or syntax with multiple ways of writing the same statement.

#3
正面 (问题)

What does the trunc function do?

背面 (解答)

Rounds a real number down to the nearest whole number

#4
正面 (问题)

What does the div function do?

背面 (解答)

Floor division

#5
正面 (问题)

What does the mod function do?

背面 (解答)

Gives the remainder

#6
正面 (问题)

What are variables?

背面 (解答)

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

#7
正面 (问题)

What are constants?

背面 (解答)

A type of variable where the value never changes as the program is being run

#8
正面 (问题)

What is the advantage of using constants?

背面 (解答)

• There is no chance a programmer accidentally changes it’s value during the program • It is more readable than using values • If you change the value of the constant you don’t have to manually change it on every line it appears

#9
正面 (问题)

What are the 3 programming constructs?

背面 (解答)

• Sequence • Selection • Iteration

#10
正面 (问题)

What is sequence?

背面 (解答)

2 or more statements following one after the other

#11
正面 (问题)

What is selection?

背面 (解答)

A statement used to select which statement will be executed next, depending on some condition

#12
正面 (问题)

What are relational operators used for?

背面 (解答)

Formulating the condition for selection

#13
正面 (问题)

What is the CASE statement?

背面 (解答)

An alternative structure to the IF statement that is useful when there is a choice between several alternatives

#14
正面 (问题)

What is the XOR operator?

背面 (解答)

Exclusive OR, i.e either a or b but not both

#15
正面 (问题)

What is an iterative statement?

背面 (解答)

A statement causing the code to perform a loop, repeating a number of statements

#16
正面 (问题)

What is indefinite iteration?

背面 (解答)

Where the iteration continues until a specified condition is met

#17
正面 (问题)

What is definite iteration?

背面 (解答)

Where the number of loops is decided in advance

#18
正面 (问题)

What is the difference between a WHILE loop and a REPEAT UNTIL loop?

背面 (解答)

In a while loop the condition is checked at the start so will iterate 0 or more times, whilst a REPEAT UNTIL loop is checked at the end so will always iterate at least once

#19
正面 (问题)

What is a data structure?

背面 (解答)

A collection of elementary data types with built-in methods to facilitate processing in some way

#20
正面 (问题)

What is an array?

背面 (解答)

A finite, ordered set of elements of the same data type. Finite means there is a set number of elements in the array whilst ordered implies there is a first, second, third, etc

#21
正面 (问题)

How can you reference each element of an array?

背面 (解答)

By using an index (usually starting at 0)

#22
正面 (问题)

What is a tuple?

背面 (解答)

An ordered list of elements

#23
正面 (问题)

What is a n-dimensional array?

背面 (解答)

A set of elements of the same data type, indexed by a tuple of n integers

#24
正面 (问题)

What is a subroutine?

背面 (解答)

A named block of code which performs a specific task within a program