.


:




:

































 

 

 

 


;




3) , ;

4) .

 

51. N :

1) const N=5;

2) N: const=5;

3) N=5;

4) N: integer=5.

 

52. :

1) < >: - <>;

2) < >: = <>;

3) < >:: = <>;

4) <>: = < >.

 

53. :

1) while < > do <>;

2) for < >:= < > to < > do <>;

3) repeat < > until < >;

4) case k of < >.

 

54. :

1) while < > do <>;

2) for i:=1 to n do <>;

3) repeat < > until < >;

4) case k of < >.

 

55. :

1) while < > do <>;

2) for < >:= < > to < > do <>;

3) repeat < > until < >;

4) case k of < >.

 

56. String :

1) 256;

2) 255;

3) 1024;

4) 2400.

 

57. :

Var s1, s2: string;

Begin

s1:= copy (, 4,3);

writeln (s1);

end.

1) ;

2) ;

;

4) .

 

58. :

var s: integer;

begin s:= length () End.

1) s=0;

2) s=1;

3) s=8;

4) s= true.

 

59. :

1) var b: boolean; begin b:=7; writeln (:, b); end.

2) var b: boolean; begin b:= false; if not b then writeln (!);

end.

3) var b: boolean; begin b:=Hello, World; writeln (b); end.

4) var b: boolean; c: real; begin c:= sqr (b);

writeln (:, c); end.

 

60. :

const n=2;

var k: integer; m, 1: real;

begin

1:=0;

For k:=1 to 6 do

m:=k/n;

1:=1+m

end.

1) 1=10.5;

2) 1=20.5;

3) 1=1.5;

4) 1=10.

 

61. :

type digits = set of 0..9;

var d1, d2, d3: digits;

begin

d1:=[1, 3, 5];

d2:=[0, 4, 5];

d3:= d1*d2;

end.

1) d3=[0, 1, 3, 4, 5];

2) d3=[0, 1, 3, 4];

3) d3=[5];

4) d3=[1, 3, 5, 0, 4, 5].

 

62. :

Var n, i: integer;

Begin

n:=0;

For i:=1 to 10 do n:=n+i

end.

1) 55;

2) 10;

3) 25;

4) 225.

 

63. a: array [1..n, 1..m] of Integer; n, m . ( ), . :

1) b: array [1..n+m] of Integer;

2) b: array [1..n*m] of Integer;

3) b: array [n+m] of Integer;

4) b: array [1..2*(n+m)] of Integer.

 

64. Round(7.9)

1) 7

2) 8

3) 9

4)

 

65. : n, 100<n<1000, :

1) chr (n/100);

2) chr ((n/100)*10);

3) (n div 1000 mod 10);

Chr ((n mod 1000) div 100).

 

66.

1) , ;

, ;

3)

4)

 

67. : x [a;b].

1) a>=x<=b;

2) x [a;b];

3) (x >=a) and (x<=b)

4) x = [a,b]

 

68. : a 7.

1) (a mod 2=1) and (a mod 7=0);

2) a mod 2=7;

3) (a mod 2=0) and (a mod 7) = 0;

4) (a div 2=1) and (a div 7) = 1.

 

69. : 3 .

1) (k div 100=3) or (k div 10=3) or (k mod 10=3);

2) (k div 100=3) or (k div 10 mod 10=3) or (k mod 10=3);

3) (k mod 100=3) or (k mod 10=3) or (k mod 1=3)

4)

 

70. x y mod 5 = x ?

1) 0, 1, 2, 3, 4

2) 0, 1

3) x

4) x

 

71. x x div 5 = 8?

1) 13

2) x

3) 40, 41, 42, 43, 44

4) x

 

72. x x div 5 = x mod 5 ?

1) x

2) 0

3) 0, 6, 12, 18, 24

4) -24, -18, -12, -6, 0, 6, 12, 18, 24

 

73. 1 + 25 div 5 mod 2

1) 1

2) 2

3) 26

4) 10

 

74. insert(b1, b2, length(b1)) b1 = 11; b2 = 22

1) 1221

2) 121

3) 2112

4) 212

 

75. :

if a>b then c:=1;

if a>b then d:=2;

if a<=b then c:=3;

if a<=b then d:=4;

 

1) if a>b then c:=1 and d:=2 else c:=3 and d:=4;

2)

3) if a>b then c:=1; d:=2 else c:=3; d:=4;

4) if a>b then

Begin

c:=1; d:=2;

End

Else

Begin

c:=3; d:=4

End;

 

76. :

1) , ,

2) ,





:


: 2016-10-07; !; : 1083 |


:

:

, .
==> ...

1343 - | 1261 -


© 2015-2024 lektsii.org - -

: 0.021 .