📚 A-Level Edexcel Programming: Operators, Control Structures and OOP | A-Level Edexcel 编程:运算符、控制结构与面向对象
Programming forms the core of the Edexcel A-Level Computer Science specification. To succeed in Paper 2 you must be confident in using pseudocode to express data types, operators, selection, iteration, subroutines and object-oriented principles.
编程是 Edexcel A-Level 计算机科学课程的核心。要想在 Paper 2 中取得好成绩,你必须熟练使用伪代码表达数据类型、运算符、选择结构、迭代结构、子程序以及面向对象原则。
1. Data Types and Variables | 数据类型与变量
Every value in a program belongs to a data type. The most common primitive types tested by Edexcel are integer, real, Boolean, character and string.
程序中的每个值都属于某种数据类型。Edexcel 考查的最常见原始类型包括整型、实数型、布尔型、字符型和字符串型。
Variables are named storage locations. You should declare them with a name and type before use, for example DECLARE age AS INTEGER.
变量是命名的存储位置。你应该在使用前用名称和类型声明它们,例如 DECLARE age AS INTEGER。
- Integer: whole numbers such as -3, 0, 42
- Real: decimal numbers such as 3.14, -0.001
- Boolean: TRUE or FALSE
- Character: a single symbol such as ‘a’ or ‘7’
- String: a sequence of characters such as ‘hello’
整型:如 -3、0、42 等整数;实数型
Published by TutorHao | A-Level 编程 Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)
屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导Cancel reply