Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Билеты 2 семестр основы алгоритмизации (англ).doc
Скачиваний:
1
Добавлен:
19.11.2019
Размер:
484.86 Кб
Скачать

Санкт-Петербургский колледж информатизации и управления

(наименование среднего учебного заведения)

Рассмотрено предметной комиссией

“ “ ___________20 г.

Председатель__________

Экзаменационный билет №__1_

По Основы алгоритмизации и____

программирования_______

(предмет)

Группа__341a___ Cеместр__VI______

«Утверждаю»

Зам. директора по учебной работе

_________________

“ “_______20 г.

1. Delphi integrated development environment

2. Problem (A). Read an input integer array from the StringGrid component (using loop), evaluate the sum of its elements and display the result on the form. Your application may have a user interface like that:

Problem (B). Read an input string. Calculate the number of the signs ‘+’ and ‘-‘ in the string separately and together. Your application may have a user interface like that::

Problem (C). Read an input integer array from the file, display it on the form using Memo or StringGrid components. Evaluate the sum of the array’s elements between the first and the last negative elements. Display the result on the form and write it to the file. Your application may have a user interface like that:

On clicking the button “read it from a file” standard dialog box for selecting and opening files must appear:

Some tests for your program:

Input data

Output data

3, -4, 2, -5, 6, 7, -3, 2

2+(-5)+6+7=10

3, 5, 10, 1, 5, 4, 2, 0

The array doesn’t contain negative elements

3, -4, 2, 5, 6, 7, 3, 2

The array contains only one negative element

Преподаватель ___________________________

Санкт-Петербургский колледж информатизации и управления

(наименование среднего учебного заведения)

Рассмотрено предметной комиссией

“ “ ___________20 г.

Председатель__________

Экзаменационный билет №__2_

По Основы алгоритмизации и____

программирования_______

(предмет)

Группа__341a___ Cеместр__VI______

«Утверждаю»

Зам. директора по учебной работе

_________________

“ “_______20 г.

1. Variables and variable declarations, statements, assignment statement.

2. Problem (A). Read an input real array from the StringGrid component (using loop) and display its minimal element on the form. Your application may have a user interface like that:

Problem (B). Read an input string. Determine if the string represents binary number. Your application may have a user interface like that:

Problem (C). Read an input integer array from the file, display it on the form using Memo or StringGrid components. Evaluate the number of odd array’s elements between its minimal and maximal elements (provided that all the elements are unique). Display the result on the form and write it to the file. Your application may have a user interface like that:

On clicking the button “read it from a file” standard dialog box for selecting and opening files must appear (see Variant 1, Problem3).

Some tests for your program:

Input data

Output data

3, 4, 12, 5, 6, 7, -3, 2

1 (6)

3, 0, 10, 1, 5, 4, 2, 100

3 (10,4,2)

300, 41, 23, 5, 61, 7, -3, 2

0

Преподаватель ___________________________

Санкт-Петербургский колледж информатизации и управления

(наименование среднего учебного заведения)

Рассмотрено предметной комиссией

“ “ ___________20 г.

Председатель__________

Экзаменационный билет №__3_

По Основы алгоритмизации и____

программирования_______

(предмет)

Группа__341a___ Cеместр__VI______

«Утверждаю»

Зам. директора по учебной работе

_________________

“ “_______20 г.

1. Working with events and event handlers.

2. Problem (A). Read an input integer value from the Edit component. If the value is negative, color the form into blue, if the value is positive, color the form into red, if it is equal to 0, color the form into yellow.

Problem (B). Read an input string from the file. Output it on the form in the reverse order. Your application may have a user interface like that:

Problem (C). Read an input real array from the file, display it on the form using Memo or StringGrid components. Output all positive array’s elements between the first minimal and the last zero elements. Write the result to the file if needed. Your application may have a user interface like that:

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