Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Unit_1_Computer_Applications[1].doc
Скачиваний:
427
Добавлен:
11.02.2016
Размер:
12.51 Mб
Скачать

Variables and the Declaration Statement

А variable is а quantity that is referred to by name, such as а, b, с, d, and average in the above program. А variable can take on many values during program execution, but you must make sure that they are given an initial value, as С does not do so automatically. However, before variables can be used in а program, they must be declared in а type declaration statement.

    1. The Function _______ must appear only once in а program.

    2. /* CALCULATE AVERAGES */ is а _______ line.

    3. The statement float а,b,c,d,average; is а _______ 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 С program must end with а _______, which acts as а statement _______.

    8. If you forget to include the correct punctuation, the _______ will produce a _______ error.

    9. А quantity referred to by name is known as а _______.

    10. А _______ _______ statement must be used to declare variables.

B Find words in the text which mean:

    1. brackets 4. recognised

    2. not fixed 5. completed

    3. systematically check 6. starting

Exercise 7. The table below shows С's relational operators. Fill the gaps in the table.

С symbol

Meaning

= =

equal tо

<

equal to or less than

>

>=

!=

Exercise 8. Using the completed table from Exercise 7, write sentences to illustrate the following:

  1. a! = b 4. a >= b

  2. a > b 5. a < b

  3. a <= b 6. a = = b

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

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

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

Exercise 10. Word-play

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 is done for you.

  1. high-level a. mestnttae

  2. machine b. thirmacite

  3. systems c. peat

  4. object d. taporeo

  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

Unit 18 computer networks

Exercise 1. Try to answer these questions.

      1. What is а LAN?

      2. What is а WAN?

      3. What is а distributed system?

Exercise 2. Reading.

A Before reading the text, match these words and phrases with their definitions.

  1. protocol а. analyze the syntax of а string of input symbols

  2. bulletin board b. a teleconferencing system allowing users to read messages left by other users

  3. user interface с. agreement governing the procedures used to exchange information between co-operating computers

  4. make а query d. means of communication between а human user and а computer system

  5. parse е. taking place at exactly the same time as something else

  6. synchronous f. request а search

B Read quickly through the text below, then match each paragraph with the appropriate summary.

    1. Network uses, past and present

    2. How distributed systems work

    3. Networks and the future

    4. What networks are and how they operate

    5. The growth of networks, past and present

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