A b c d kompilyatsiyadagi xatolik E`lon qilingach char a o`zgaruvchisining qaysi biri to`g`ri emas? A “3”


Download 79.17 Kb.
bet7/19
Sana27.03.2023
Hajmi79.17 Kb.
#1301029
1   2   3   4   5   6   7   8   9   10   ...   19
Bog'liq
DASTURLASH 1 baza @tatu1k

A)x+y=8
B)x+y=4
C)x+y=7
D)x+y=6
63.Destruktorga nechta parameter jo’natish mumkin?
A)Destruktorga parameter jo’natish mumkin emas
B)Ko’pi bilan 3 ta
C)Ko’pi bilan 10 ta
D)Ko’pi bilan 1 ta
64.class A{
public:
void display (){
cout<<”Hello world”;}
};
class B:public A{
public:
void print(){
cout<<”Hello world”;
};
Voris sinfining nomini ko’rsating.
A)B
B)A
C)A va B
D)Voris kalssi yaratilmagan
65.C++ tilida shartsiz o’tish operatori …hisoblanadi.
A)goto
B)if
C)continue
D)switch
66.Fayllar bilan ishlashda fayllarni ochishning r rejimi vazifasi qanday?
A)Fayllarni o’qish uchun ochiladi
B)Fayllarni yozish uchun hosil qiladi
C)Fayllarni davomiga qo’shish uchun ochiladi
D)Fayllarni yozish va o’qish uchun ochiladi
67.Quyidagi dastur qismida s satriga 243 kiritilsa dastur natijasini chop eting
#include
#include
using namespace std;
int main()
{
char s[100];
cin>>s;
int n=(int)strlen(s);
for(int i=0;i cout<}
A)505251
B)495150
C)341
D)243
68.Qaysi javobdagi variantda ikki o’lchovli dinamik massivlarni e’lon qiladi?
A)double**a;int n;cin>>n;
A=new double*[n];
for(int i=0;iB)char array[20];
C)array anarray[20][20];
D)int array[20,20];
69.Bir nechta sinflardan meros olish jarayonini ko’rsating?
A)class Derived:Access Base_1,Access Base_2,..{};
B) class Derived:Access{ Base_1,Access Base_2,..}{};
C) class Derived:Access Base_2:Access Base{};
D) class Base_1,Base_2,..Access Derived{};
70.Voris sinfning to’g’ri e’lonini aniqlang?
A)class MoreDetails:public Details;
B)class MoreDetails::Details;
C)class MoreDetails:public class Details;
D) class MoreDetails:class (Details);
71.Kod fragmenti bajarilgandan so’ng x o’zgaruvchining qiymatini aniqlang
int x=1,y=0;
while(y<10)
y=3*(++x)+1;
A)3
B)2
C)4
D)1
72.Ushbu dastur bajarilgandan so’ng ekranda nima paydo bo’ladi?
#include
#include
using namespace std;
int k;
int main()
{
k=321;
printf("%d",k++);
return 0;
}
A)321
B)322
C)324
D)320
73. Dasturning bajarilishi natijasida ekranda qanday qiymat ko’rsatadi?
string s="Shkoli",s1="_Deti",s3="Student";
s.swap(s1);
s.erase(0.4);
s1.assign(s);
cout<

Download 79.17 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   10   ...   19




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