返回卡包市场

Computational Thinking (II) - Programming

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

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

卡片预览 (24 张)

#1
正面 (问题)

How many programming data types are there?

背面 (解答)

5

#2
正面 (问题)

What do data types do?

背面 (解答)

Store data as different types

#3
正面 (问题)

What happens to memory with data types?

背面 (解答)

Each data type is allocated a different amount of memory

#4
正面 (问题)

Why is it important to use the correct data type?

背面 (解答)

The code is more memory efficient, robust (hard to break) and predictable when the correct data types are used

#5
正面 (问题)

How can programming languages be typed?

背面 (解答)

Weakly typed or strongly typed

#6
正面 (问题)

What are the characteristics of weakly types programming languages?

背面 (解答)

Weakly try to convert data types to avoid errors *Can lead to unpredictable results

#7
正面 (问题)

What are the characteristics of strongly types programming languages?

背面 (解答)

Strongly don’t convert data types so will produce more errors *Give more predictable results

#8
正面 (问题)

What are the 5 main data types and what are their characteristics?

背面 (解答)

卡片背面图片
#9
正面 (问题)

What are the memory requirements for the 5 data types?

背面 (解答)

卡片背面图片
#10
正面 (问题)

What is casting?

卡片正面图片
背面 (解答)

Manual conversion between data types Can be done using int(), real() / float(), bool() and str() commands

#11
正面 (问题)

In casting, what would int(“1”) achieve?

背面 (解答)

Converts the string “1” to the integer 1

#12
正面 (问题)

In casting, what would real(1) achieve?

背面 (解答)

Converts the integer 1 to the real 1.0

#13
正面 (问题)

In casting, what would bool(1) achieve?

背面 (解答)

Converts the integer 1 to the Boolean value True

#14
正面 (问题)

In casting, what would str(True) achieve?

背面 (解答)

Converts the Boolean value True to the string “True”

#15
正面 (问题)

How is casting used with ASCII and what techniques allow it to be used?

背面 (解答)

ASCII numbers and characters can be found easily using casting ASC() and CHR() functions are used E.g. CHR(77) converts ASCII number 77 to ASCII character M E.g. ASC(b) converts ASCII character b to ASCII number 98

#16
正面 (问题)

What would be the best data types to use in the following:

卡片正面图片
背面 (解答)

卡片背面图片
#17
正面 (问题)

What are operators?

卡片正面图片
背面 (解答)

Special characters that perform certain functions

#18
正面 (问题)

What are the arithmetic operators?

背面 (解答)

Addition Subtraction Multiplication Division Exponentiation Quotient (DIV) Remainder / modulus (MOD)

#19
正面 (问题)

What does the exponentiation operator ^ do?

背面 (解答)

Raises a number to a power

#20
正面 (问题)

What does the quotient (DIV) operator do?

背面 (解答)

Returns the whole number

#21
正面 (问题)

What does the remainder / modulus (MOD) operator do?

背面 (解答)

Returns the remainder

#22
正面 (问题)

What do operators work on?

背面 (解答)

Integers / real data values (or a combination of the two)

#23
正面 (问题)

What mathematical rule do computers follow?

背面 (解答)

卡片背面图片
#24
正面 (问题)

Using BODMAS, calculate the following: 2 + 8 * 2 (2 + 8) * 2

卡片正面图片
背面 (解答)

2 + 8 * 2 = 18 (2 + 8) * 2 = 20

卡片背面图片