Correct answer selected:
a. c=d+88++
Question 171
f = i = 1; while (i<=4) f = f*i ++; proqram fraqmentində f-in qiymətini təyin
edin.
Incorrect answer selected:
c. 6
Question 172
Aşağıdakı proqram fraqmenti icra olunduğu zaman hansı qiymət çap
olunacaq? void F(int *p, int *q, int n){ for (*q = 0; n > 0; n--) *q = *q + *p++;
} main(){ int x,A[5]={1,3,7,1,2}; F(A,&x,5); std :: cout<
Incorrect answer selected:
Question 173
Aşağıdakı proqram fraqmenti icra olunduğu zaman hansı qiymət çap
olunacaq? #include int main() { int x = 3; switch(x) { case 0: x = 1; std ::
cout << x << std :: endl; break; case 3: std :: cout << x << std :: endl;
break; default: x = 2;std :: cout << x << std :: endl; } return 0; }
Correct answer selected:
Question 174
int a; for(a = 0; a < 10; a++) {} proqram kodu yerinə yetirildikdən sonar a
dəyişəni hansı qiyməti alacaq?
Correct answer selected:
d. 10
Question 175
for(i=1;i<100;i++) A[i]=i*i; for(i=1;i<100;i++) B[i]=A[i]-100; - B massivinin
neçə elementi müsbət qiymət alacaq?
Correct answer selected:
c. 90
Question 176
#include void mul(int,int) ; int S; void main() {int a=2,b=3;
mul(a,b);a=b=2*S; mul(a,b); cout< < S; Sleep(100000); } void mul(int x,int
y) {S=x*y;} praqram kodunun icrasının nəticəsini müəyyənləşdirin.
Incorrect answer selected:
b. 64
Question 177
e+sqrt(e)*1e1/2*a ifadəsinin qiyməti e = 4, a = 3olduqda nəyə bərabər
olacaq?
Correct answer selected:
a. 34
Question 178
int d=5; bool b = true, c; c = (!b||(d>3)); ifadəsinin nəticəsi nəyə bərabərdir?
Correct answer selected:
a. true
Dostları ilə paylaş: |