Главная

Популярная публикация

Научная публикация

Случайная публикация

Обратная связь

ТОР 5 статей:

Методические подходы к анализу финансового состояния предприятия

Проблема периодизации русской литературы ХХ века. Краткая характеристика второй половины ХХ века

Ценовые и неценовые факторы

Характеристика шлифовальных кругов и ее маркировка

Служебные части речи. Предлог. Союз. Частицы

КАТЕГОРИИ:






Variables and the Declaration Statement




A variable is a quantity that is referred to by name, such as a, b, c, d, and

25 average in the above program. A variable can take on many values

during program execution, but you must make sure that they are given an initial value, as C does not do so automatically. However, before variables can be used in a program, they must be declared in a type declaration statement.

1 The Function_________ must appear only once in a program.

2 /• CALCULATE AVERAGES V is a__________ line.

3 The statement float a,b,c,d, average; is a_________ statement.

4 The program below contains________ function statements.

5 The assignment statements are on lines________ and___________

6 The main part of the program is enclosed within.

7 Each line of any C program must end with a________, which acts as a

statement__________.

8 If you forget to include the correct punctuation, the_______ will produce

a__________ error.

9 A quantity referred to by name is known as a_

10 A____________________ statement must be used to declare variables.


Task 12 Find words in the text which mean:

1 brackets (lines 5-10)

2 not fixed (lines 10-15)

3 systematically check (lines 10-15)

4 recognized (lines 15-20)

5 completed (lines 2 0-2 5)

6 starting (lines 2 5-2 9)


Task 13


The table below shows C's relational operators. Fill the gaps in the table.


 


C symbol


Meaning


equal to

equal to or less than


Task 14


Writing

Using the completed table above, write sentences to illustrate the following:

1 a!= b :____________________ :___________________________

2 a>b

3 a <= b

4 a >= b_________________________________________________________

5 a < b ________________________

6 ci = = b______________________________.............


 


Task 15


Speaking

Read the statements below. Which do you agree with more? Why?

Learning a programming language is like learning any natural language. The only difference is that you are communicating with a machine instead of another person/

'I get annoyed when I hear people comparing programming languages with natural languages. They have almost nothing in common.'



Word-play

Task 16 Solve the anagrams in the right-hand column and match them with the words

in the left-hand column to complete the phrases. The first one has been done for you.

1 high-level a mestnttae_______________

2 machine \ b thirmacite _________

3 systems \ c peat

4 object \ d taporeor________________

5 linkage \ e omelud

6 magnetic \ f egguanal language

7 binary g trodite

8 declaration h deco__________________

9 comment i enil

10 relational j nituroe


Language focus D






Не нашли, что искали? Воспользуйтесь поиском:

vikidalka.ru - 2015-2024 год. Все права принадлежат их авторам! Нарушение авторских прав | Нарушение персональных данных