Pascal dasturlash tilidan test savollari va javoblari. Paskal tilida 70 ta elementdan iborat butun turdagi chiziqli massiv to’g’ri ko’rsatilgan javobni kursating


A) x=25 y=5 B)x=5 y=6 C) x=25 y=36 D) x=25 y=6


Download 19.47 Kb.
bet2/4
Sana09.01.2022
Hajmi19.47 Kb.
#266390
1   2   3   4
Bog'liq
Pascal-dasturlash-tilidan-test-Javoblari-bilan

A) x=25 y=5 B)x=5 y=6 C) x=25 y=36 D) x=25 y=6

5. Paskal tilida quyidagi dastur qismining bajarilishi natijasida ekranga chiqariladigan axborotni aniqlang. a:= ‘Uzbekistan’; K:=length(a); write(a,k:4);

A) 10Uzbekistan B) Uzbekistan10

C)Uzbekistan1010 D) Uzbekistan 10

6. Quyidagi paskal dasturi bajarilishi natijasida qora fonli ekranda nechta shakl aks etadi:

For k:=-1 to 3 do begin setcolor(k+2); circle(100,50,sqr(sqr(k))); end.

A) 4 ta B) 5 ta C) 3 ta D) 1 ta

7. Quyidagi dastur ekranga qanday so’z hosil qiladi?

Var a,b,c:string; begin a:=’sayyora’; b:=’quyosh’; delete(a,1,3); delete(b,1,3); c:=concat(b,a); delete(c,1,2); c:=concat(copy(a,4,1),c); Writeln(b); readln; end.

A) ayyor B) quyyor C) quy D) osh


8. var a,b,i:integer;

begin a:=3; b:=7; begin for i:=1 to b do a:=a + i; end; write(i); end. Natijani toping


Download 19.47 Kb.

Do'stlaringiz bilan baham:
1   2   3   4




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling