WorksheetsОБП(рк-1)-1-50 сқр.
Total questions: 50
Worksheet time: 25mins
Name
Class
Date
1.
a)arr[0]
b)arr[1]
c)arr[first]
d)arr
e)&arr
2.
a)int sandar;
b)int sandar [] = {1, 2, 3.4};
c)int sandar[5];
d)int sandar[] = {{1,2}, {2,4}};
e)int sandar [5, 5];
3.
a)1
b)0
c)288
d)286
e)қате код
4.
a)Экранға ештеңе шықпайды.
b)Hello;
c)HelloGooBye;
d)Hello GoodBye;
e)Good Bye;
5.
a)39.69
b)36
c)3969
d)әдіс қате шақырылған
e)0
6.
a)2 2
b)2 -2
c)-2 2
d)4 2
e)2
7.
a)0;
b)қате код.
c)9;
d)15;
e)21;
8.
a)b>var;
b)b_var;
c)b.var;
d)var;
e)b:var;
9.
a)Person var;
b)struct var;
c)struct Person var;
d)Person.var;
e)Person:var.
10.
a)structa_struct {int a;};
b)struct {int a;}
c)structure a_struct {int a;};
d)structa_structint a;
e)structa_struct {int a}.
11.
a)structure
b)struct
c)record
d)object
e)class
12.
a)Employee типті Askar структурасы дұрыс инициализацияланбаған;
b)printInformation(int Employee) әдісінде тип пен параметр дұрыс жазылмаған.
c)Askar структурасы инициализациялаған кездегі параметр саны әр түрлі;
d)Askar структурасы инициализациялаған кездегі параметр типтері мен Employee структурасындағы айнымалымалылар типтері сәйкес кеймейді;
e)код қатесіз орындалады.
13.
a)The int is 5454456410
b)The float is 5454456410
c)The char is 5454456410
d)The long is 5454456410
e)ешқандай әдіс орындалмайды.
14.
Kim-нің жалақысын қалай экранға шығарамыз
a)
cout<<salary;
b)
cout<Kim.salary;
c)
cout<Kim.Employee.salary;
d)
cout<Kim.CEO.salary;
e)
Kim.Employee.CEO.salary;
15.
a)0
b)3
c)7
d)35
e)58
16.
a)n=6 n=7
b)n=7 n=6
c)n=5 n=7
d)n=8 n=7
e)n=6 n=8
17.
a)0
b)3
c)5
d)6
e)7
18.
a)0
b)3
c)7
d)35
e)58
19.
a){ … }
b)begin … end
c) ( … )
d) [ … ]
e)// … //
20.
a)closed() функциясы арқылы
b)close() функциясы арқылы
c)fclose() функциясы арқылы
d)ficlose() функциясы арқылы
e)eof() функциясы арқылы
21.
a)0
b)1
c)5
d)10
e)20
22.
a)18
b)17
c)16
d)15
e)0
23.
a)4
b)5
c)6
d)11
e)индекс шекарасы бұзылды
24.
a)6
b)5
c)2
d)1
e)0
25.
a)16
b)12
c)8
d)4
e)индекс диапазоны шекарадан шығып кетті
26.
a)-1
b)0
c)2
d)6
e)индекс диапазоны шекарадан шығып кетті
27.
a)0
b)-2
c)2
d)5
e)индекс диапазоны шекарадан шығып кетті
28.
a)15
b)-5
c)12
d)-6
e)индекс диапазоны шекарадан шығып кетті
29.
a)7
b)4
c)2
d)-1
e)-5
30.
a)10 9
b)10 11
c)8 9
d)11 10
e)11 7
31.
a)Hello
b)Hello world
c) worldHello
d) world
e)s+ world
32.
a)Hello
b)Hello world
c) worldHello
d) world
e)s+ world
33.
a)қайтару мәнінің типін void-тен vector -ға өзгерту
b) tmp параметрін сілтеме бойынша қабылдау
c)сілтеме бойынша тек a параметрін қабылдау
d)ештеңе өзгертіп қажет емес
e)a және b параметрін сілтеме(&) бойынша қабылдау
34.
a)Hello
b), world
c)Hello, world
d)Бұл код компиляцияланбайды
e)t , world
35.
a)ifstream
b)ofstream
c)open()
d)close()
e)file
36.
a)ifstream
b)ofstream
c)open()
d)close()
e)file
37.
a)fstream
b)ifstream
c)ofstream
d)open()
e)close()
38.
a)
#include <iomanip>
b)
#include <iostream>
c)
#include <cmath>
d)
#include <vector>
e)
#include <fstream>
39.
a)f.open("file.txt", ios::trunc);
b)f.open("file.txt", ios::binary);
c)f.open("file.txt", ios::out);
d)f.open("file.txt", ios::app);
e)f.open("file.txt", ios::in);
40.
a)f.open("file.txt", ios::trunc);
b)f.open("file.txt", ios::app);
c)f.open("file.txt", ios::binary);
d)f.open("file.txt", ios::out);
e)f.open("file.txt", ios::in);
41.
a)тұрақтыларды қолдану үшін
b)үлкен сандарды сақтау үшін
c)бір типтегі бірнеше айнымалыларды сақтау үшін
d)әр түрлі типтегі бірнеше айнымалыларды сақтау үшін
e)бағдарламаның жұмысын жеделдету үшін
42.
a)29738
b)28379
c)28
d)29
e)82973
43.
a)15
b)21
c)0
d)1
e)6
44.
a)15
b)1234
c)5
d)0
e)Функция мән қайтармайды
45.
a)/
b)#
c)//
d)\\
e)::
46.
a)int numbers[];
b)int numbers[6];
c)int nums2[] = nums1;
d)int numbers[] = {1, 2, 3, 4, 5, 6};
e)double numbers[size];
47.
a)2
b)8
c)16
d)64
e)120
48.
a)a = 1, b = 2
b)a = 2, b = 1
c)a = 1, b = 1
d)a = 2, b = 2
e)a = 3, b = 4
49.
a)a = 1, b = 1
b)a = 1, b = 2
c)a = 2, b = 1
d)a = 2, b = 2
e)a = 3, b = 4
50.
a)0 0
b)4 5
c)5 4
d)16 25
e)25 16
100 %
