Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
final revision sheet prep3.doc
Скачиваний:
0
Добавлен:
01.07.2025
Размер:
833.02 Кб
Скачать

Royal International Language School

Computer Revision Sheet (Prep.3) Second Term

Q1: State whether the following statements are true () or false (X)

1-The variable name should express its content.

( )

2-Dim G As Boolean = False

( )

3-Each data type has special storage area in the computer memory.

( )

4- Variables of types (Integer & Long & Double) are used to store Integers only.

( X )

5-Is not allowed using the distance in the name of the variable.

( )

6-In the assignment statement the value which needs to be stored should be suitable to the variable type.

( )

7-When declaring a variable in a certain procedure, this variable can be used in the same procedures only.

( )

8-The arithmetic operation between the brackets precedes all the operations.

( )

9- User input is received through several controls including TextBox

( )

10- Dim Double As Byte = “22”

( X )

11- A2014 is a correct variable name

( )

12-“Me” expresses the current “Form“ window.

( )

13-(Try Catch) are used in discovering the resulting errors while the program is running.

( )

14- (π) value which equals (3.14) is an example for the variables.

( X )

15- One of the Rules for naming variables or constants in the program is: variable names must begin with a letter or a number.

( X )

15-The words (Dim, Integer or Double) can be used as variable names

( X )

16-From Precedence rules is Addition precedes division on program execution

( X )

17-From Precedence operation is that multiplication operation precedes subtraction operation on program execution

( )

18-Executing Brackets precedes other operation on program execution

( )

19-The internal memory of the computer consists of a group of Bytes.

( )

20-Allow the variable name has no sings distance point and the question mark and the exclamation mark.

( )

21-Use the word “dim” to declare variables and constants.

( X )

22- The Variables of type (Integer & Long) are used to store integers only.

( )

23- Declaring variables is done using the Dim statement.

( )

24- The variable of type Double takes the value True or False.

( X )

25-To declare group of variables in one sentence is written is “dim” for each variable.

( X )

26-Be announced constants using inter Const.

( )

27-Is allowed using the apostrophe in the name of variable.

( X )

28-Me is a guiding word which expresses the Label.

( X )

29- Object and Boolean are of the variables data types

( )

30-The variables type ( Double ) is faster than the variables type ( Single ) in the arithmetic operations

( X )

31-There is no difference between the arithmetic operation and the assignment order

( X )

32-Variable of type integer can store whole numbers from 0 to 255

( )

33-Boolean variables stores the values “true” or “false”

( )

34-When typing (‘) at the code line this code does not work when starting the program.

( )

35- Dim X As Byte = “Sara” is a true code.

( X )

36- The code (Dem Z As Type) causes (Runtime) error

( X )

37- Data can be classified into variable and constant

( X )

38-The variables types (Integer – Long - Short) are used for storing the numbers containing decimals.

( X )

Q2- Complete the following sentences:

  1. The variable type Char is used to store single character in it

2- The variable type Boolean is used to when choosing true or false

3- The variables types Single, Double are used for storing the values which contain decimals

4- The variable type Byte is used for storing values in the form of integers and it takes a less space the memory to storing.

5- The result of the arithmetic operation H*3+7 when H = 4 is 19

Q.3- Choose the correct Answer:

  1. You can use word …………. To announce the names of the variables in the program.

(Start – Dim – End)

  1. The following words of the types of variables except the word.

(Me – Byte – Single)

  1. The numeric variable that stores only whole numbers from 0 – 255 is of data type

(Byte – Integer – String)

  1. A variable of type (Boolean – Integer – String) stores the values true\false.

  2. To store a digit with decimal points (fractions) we use a variable of data type

(Integer – Short – Single).

  1. To end “Try … Catch” statement, use:

(Stop Try – End Try – Stop Catch)

  1. To store whole numbers only we use a variable of data type (Single – Double - Integer).

  2. Use code ……………. To detect errors that occurs while the program is running and handling.

(Catch – End Try – Try/Catch)

  1. On executing the equation (4*3+2), the result will be (9 - 20 - 14).

  2. The result of the arithmetic operation (2^3+1) is (10 – 16 – 9).

  3. When executing the following code: Dim X As Integer = 3/2 , X value is:

( 1 – 1.5 – 0.05 - 2 )

  1. The ………….. sign is called the assignment operator.

( “ “ - “ * “ - “ = “ )

  1. Using ………… as a variable name will be incorrect.

(23 world war – Birth Day – Double - All the previous)

  1. From the statement (H = 22 Mod 7) it appears that (H) value is …………

( A. (H=3) - B. (H=5) - C. (H=1) )

  1. After executing the assignment code: N = 21 / (3 + 2 * 2) , N value is:

( 13 – 30 – 3 – [-3] )

  1. When executing the code: Dim S As Integer = 6.4 : MsgBox(S), is:

(0.7 – 6.7 – 6 – 7)

  1. ………………… error is the result of the user input of incorrect values.

(Syntax – Logical – Runtime)

  1. When A = 5, B = 2 the result of (5 * 6 – A ^ B) is …………..

( 5 – 35 – 10 – 50)

  1. What is the value displayed in (label) control, when executing the following code:

Dim intNum As Integer = 10

intNum = intNum + 2

intNum = intNum Mod 3

Label1.Text = intNum

  1. 3 b) 0 c) 4

20- Assigning values to constants is done:

a) When you declare constants only.

b) During the implementation of program’s instructions.

c) When you declare constants as well as during the implementation of program’s instructions.

21- Select the result of the following Arithmetic expression: 2 * (7+2) - 2

a) 16 b) 14 c) 5

Q.4: Write the programming code for the following:

  1. Declaring a constant name “BD” for storing the date “1/1/2010”.

Const BD As Date = #1/1/2010#

  1. Declaring a decimal constant “A1” for storing the value 85.50

Const A1 As Single = 85.50

  1. Declaring a constant name “D” for storing the value 32000

Const D As Short = 32000

  1. Declaring a variable name “U_Name” for storing characters.

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]