1.Database management system - is: 2. In Access, the basic object is:
3. In Access, the line is called:
4. In Access, a column called:
5. A structure of a table is:
6. In Access, there is a data type:
7. The process of creating a table in Access by choosing from existing fields: (The template tables)
8. In Access, in the template table fields delete button of the selected fields: (<.)
9. In Access, you can enter to create a table in Design view:
10. In Access field names are allowed to:
11. In Access to the field names must not contain:
12. In Access, the key field is used to:
13. In Access mode allows you to change the layout of the table, query, report:
14. Sorting is:
15. The logical OR operand is:
16. The logical operand AND means:
17. The logical operand NOT means:
18. In what menu item in Access there is a Filter: (Entries)
19. In Access, the number of types of links:
20. To link the tables use the command:
21. In Access possible to establish a connection between the tables:
22. In Access the proportion (1 - 1) corresponds to the relationship:
23. In Access the proportion (∞ - 1) corresponds to the relationship:
24. In Access sampling means is:
25. In Access to include the desired field in the request form should be:
26. In Access Expression Builder is used to:
27. In Access field names in calculated fields should be taken:
28. In Access function COUNT:
29. The Access operation of calculating the mean value:
30. In Access, the main difference between AutoForm regime in the column of the table mode:
#include <iostream>
int main() {
const int SIZE = 10;
bool isSence = false;
int sum = 0;
int count = 0;
int arr[SIZE];
for (int i = 0; i < SIZE; i++)
{
arr[i] = rand() % 20 - 10; // "рандомно" заполняем массив от -10 до 10
std::cout << arr[i] << "\t"; // выводим массив в консоль
if (arr[i] >= 0)
isSence = true;
}
for (int i = 0; i < SIZE; i++)
{
if ((isSence) && (arr[i] > 0))
sum += arr[i]; //sum = sum + arr[i];
count++;
}
if (isSence)
std::cout << "\nсреднее арифметическое положительных чисел = " << double(sum) / count << std::endl; // явное приведение типов
else
std::cout << "\nВ массиве нету положительных чисел или нету нулей и/или отрицательных чисел" << std::endl;
return 0;
}