18.08.2020

Test on the topic of the basics of programming. Programming knowledge test. Target audience of the programming test


Grade 9

This test can be used like final test on this topic " Program control computer operation "according to the textbookI. G. Semakina, L. A. Zalogovoy, S. V. Rusakova, L. V. Shestakova "Informatics and ICT 9: a textbook for grade 9".

Key to the test:

Ioption: 1g; 2d; 3d; 4a; 5c; 6a; 7c; 8b; 9b; 10b.

IIoption: 1b; 2d; 3b; 4b; 5g; 6a; 7c; 8g; 9b; 10a.

Assessment:

10 points - "5"

8-9 points - "4"

6-7 points - "3"

Option 1.

1. To separate operators from each other in the Pascal language use:
a) space; b) colon; c) a comma; d) semicolon.

2. Of the proposed program headers, the correct one is:
a)Program sum; v) programm sum;
b) programmsumma; G) programsumma.

3. To display the results in the Pascal programming language, use keyword:
a)VAR; b) READ; v) BEGIN; G) WRITE.

4. The square root of a number is calculated by the function:
a)SQRT (X); b) SQR (X); v) ABS (X); G) INT (X).

5. The final value of the variable Y as a result of performing the following actions:
Y: = 5;

X: = 2;

Y: = (Y-2 * X) / 2 + X
will be equal to:
a) 0.5; b) 2; c) 2.5; d) 5.

6. As a result of the program


program my _ klass ;
begin
write (25/2,5*2);
writeln (‘Smiles’);
end .


we will see on the screen:
a) 5 smiles; at 5
smiles;

b) 25 smiles; d) 25
smiles.

7. In this fragment of the program


program error ;
begin
summa :=25-14;
end .


consider it a mistake:
b) long variable name;

for i :=1 to 5 do B [ i ]:= 5+ i ;


a) 9; b) 8; at 7; d) 6.

9. As a result of executing a program fragment


for i :=1 to 10 do begin
if a [ i ]>0 then a [ i ]:= a [ i ]/2
else a [ i ]:= i ;
end ;


the following will happen:
a) positive values ​​of array elements will be doubled, and negative values ​​will be replaced by index values;
b) positive values ​​of array elements will be halved, and negative values ​​will be replaced by index values;
c) negative values ​​of array elements will be doubled, and positive values ​​will be replaced by index values;
d) negative values ​​of array elements will be halved, and positive values ​​will be replaced by index values.

writeln (‘ New array ’);
for i: = 1 to 20 writeln (a [i]);
end.


the following will happen:

Test on the topic "Programming language Pascal"

Option 2.

1. The beginning of the program section, which describes the types of variables used, is determined by the keyword:
a)program; b) var; v) begin; G) write.

2. Of the proposed headings, the wrong one is:
a)programsumma;
b) programsumma _ chisel;
v) programchisla;
G) programmsumma.

3. To enter data in the Pascal programming language, use the keyword:
a)VAR; b) READ; v) BEGIN; G) WRITE.

4. Squaring a number is calculated by the function:
a)SQRT (X); b) SQR (X); v) ABS (X); G) INT (X).

5. The final value of the variable X as a result of performing the following actions:

X: = 2;

Y: = 0;

X: = (Y + X) * 5-2 + X
will be equal to:
a) 0; b) 2; at 8; d) 10.

6. In this fragment of the program

program mistakes ;
begin
writeln (‘
mistakes No ’);

writeln (‘5*5=’,25);
end .


consider it a mistake:
a) incorrect program name;
b) the absence of a variable;
c) undefined variable name;
d) writing an arithmetic expression.

7. As a result of the program

program klass;
begin
writeln (45 / (12-3));
writeln (‘
classes ’);
end.


we will see on the screen:
a) 5 classes; at 5
classes;

b) 9 classes; d) 9
classes.

8. The values ​​of a one-dimensional array are set using a loop:
for i :=1 to 5 do A[ i ]:= 2+ i ;

As a result, the value of B will be equal to:
a) 9; b) 8; at 7; d) 6.

9. As a result of executing the program fragment

for i: = 1 to 10 do begin
if a [i]> 0 then a [i]: = a [i] / 3
else a [i]: = 2;
end;


the following will happen:
a) positive values ​​of array elements will increase threefold, and negative values ​​will be replaced by 2;
b) positive values ​​of array elements will decrease by three times, and negative values ​​will be replaced by 2;
c) negative values ​​of array elements will be doubled, and positive values ​​will be replaced by 3;
d) negative values ​​of array elements will be halved, and positive values ​​will be replaced by 3.

10. As a result of executing a program fragment

writeln (‘ New array ’);
for i: = 1 to 20 readln (a [i]);
end.


the following will happen:
a) a new array will be formed;
b) the new array will be printed;
c) only indexes will be printed;
d) only indexes will be formed.

Sources of information:

    I. G. Semakin, L. A. Zalogova, S. V. Rusakov, L. V. Shestakova "Informatics and ICT 9: textbook for grade 9": Moscow, "Binom. Knowledge laboratory ", 2011-2013

    N.N. Samylkin "Building test items on Informatics: Methodological Guide ": Moscow," Binom. Knowledge laboratory ", 2003

    ON. Sukhikh "Lesson developments in informatics grade 9": Moscow, "VAKO", 2012

If you have already studied several topics on the C ++ language, or simply know this programming language well, you are given the opportunity to test your knowledge by passing the test in an interactive mode! The table below shows 6 stages (parts) of testing. Test questions were specially divided into separate subgroups. This is done in order to reduce the number of questions in a separate test. As you can see, the test questions are organized in order from easy to hard, basics first, branch statements, loops, etc. For example, if you pass test 3, it is assumed that you have already passed tests 1 and 2. Of course, if you do not it's interesting to pass tests 1 and 2, you don't have to. I recommend that you start from the very beginning, with test 1. I guarantee that you will learn something new for yourself.

C ++ testing (part 1) Programming basics, loops (for, while, do while), multiple choice operator switch 30
C ++ testing (part 2) Arithmetic and logical operations, selection operator if, input / output, data type casting. 34
C ++ testing (part 3) Strings, links, pointers, arrays. 33

Programming is the process of writing, testing, debugging, and maintaining software code. Program code written in some programming language from scratch or using ready-made developments. Writing applications requires a lot of knowledge, such as knowledge of the subject area, knowledge of algorithms, and of course the ability to use development tools.

To prepare young specialists for the study of specific programming languages ​​and technologies, the Programming - Basics test was created.

Target audience of the programming test

The Fundamentals of Programming test contains very simple questions and most likely will not cause difficulties for people who have some, even minimal, programming experience.

The test is intended primarily for those who are just starting to learn programming. After consolidating theoretical knowledge, we suggest you choose one of the many ways for your further development in the field of software development.

Programming test structure

The test questions have not yet been divided into topics, as their list is being approved.

Nevertheless, the following categories of questions can already be distinguished:

  • Basic concepts and terms
  • Boolean algebra
  • Number systems
  • Simple algorithms

Further development of the test Fundamentals of programming

The most important definitions of programming terms will soon be added to the test.

To develop algorithmic thinking, the test will be supplemented with questions with pseudocode fragments.

We hope that the test will be useful to everyone who is just starting to learn programming. We are waiting for your suggestions and comments.


2021
maccase.ru - Android. Brands. Iron. news