返回卡包市场

Unit 11 Programming Techniques

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

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

卡片预览 (24 张)

#1
正面 (问题)

What is an IDE?

背面 (解答)

Integrated Development Environment A software which enables you to enter, edit, compile, interpret and run your programs

#2
正面 (问题)

How can an IDE make entering program code as easy and quick as possible? (4)

背面 (解答)

• Add line numbers • Automatically indent code • Auto-complete commands • Comment or un-comment a region

#3
正面 (问题)

What is an Algorithm?

背面 (解答)

A sequence of instructions that can be followed to solve a problem

#4
正面 (问题)

What is Pseudocode?

背面 (解答)

A type of instructions that are somewhere between English and a programming language

#5
正面 (问题)

What is an Identifier?

背面 (解答)

A name that points to memory location

#6
正面 (问题)

What is Assignment?

背面 (解答)

Assigning a value to the memory location

#7
正面 (问题)

What is the difference between a Variable and a Constant?

背面 (解答)

A variable can be changed a constant can’t

#8
正面 (问题)

Why would someone use a Constant instead of a Variable?

背面 (解答)

Reduces the risk of errors by reducing access to the memory location

#9
正面 (问题)

What does MOD do?

背面 (解答)

Outputs the remainder after dividing 2 numbers

#10
正面 (问题)

What does DIV do?

背面 (解答)

Outputs the integer answer after dividing 2 numbers

#11
正面 (问题)

What does a Boolean Condition evaluate to?

背面 (解答)

True or Flase

#12
正面 (问题)

What does AND do?

背面 (解答)

Returns TRUE if both conditions are true

#13
正面 (问题)

What does OR do?

背面 (解答)

Returns TRUE if either of the conditions is true

#14
正面 (问题)

What does NOT do?

背面 (解答)

A TRUE expression becomes FALSE and vice versa

#15
正面 (问题)

What is Iteration?

背面 (解答)

Repetition of sections of code. There are 3 types of loop: While, Do and For

#16
正面 (问题)

What is a Subroutine?

背面 (解答)

A set of instructions with a name. Program flow will ‘jump’ to that subroutine when called. When the subroutine has finished, the program will continue from where it was called

#17
正面 (问题)

What is a Library Subroutine?

背面 (解答)

A subroutine that comes pre-defined with the programming language

#18
正面 (问题)

How do you pass data to a Subroutine?

背面 (解答)

Put arguments in parentheses after calling the subroutine

#19
正面 (问题)

Why is the order of the parameters in the parentheses in the Subroutine important?

背面 (解答)

Each parameter order corresponds to a different variable in the subroutine

#20
正面 (问题)

How can a Function return a value?

背面 (解答)

Using a return statement

#21
正面 (问题)

What’s the difference between a Local and Global Variable?

背面 (解答)

A local variable is contained in a subroutine and can only be used, referenced or changed in that subroutine. A global variable is defined in the main program and can be used in any subroutine called from the main program

#22
正面 (问题)

What are the advantages of a Local Variable? (2)

背面 (解答)

• The subroutines will be independent of a particular program and can be re-used in different programs • There is no chance of accidentally changing a variable in the main program that is used in a subroutine or vice versa

#23
正面 (问题)

What is Modular Programming?

背面 (解答)

Where a major task is broken down into smaller subtasks that may be further broken down until each ‘module’ performs a single function

#24
正面 (问题)

What are the advantages of Modular Programming? (4)

背面 (解答)

• Large programs are broken down into subtasks that are easier to program and manage • Each module can be individually tested • Modules can be re-used several times in a program • Large programs are much easier to debug and maintain