|
Public: string a; string b
|
Sana | 04.03.2022 | Hajmi | 16,94 Kb. | | #482007 |
| Bog'liq talabalar bilimini baholash
#include
#include
#include
#include
using namespace std;
class test{
public:
string a;
string b;
string c;
string d;
string e;};
int main()
{ int k=10;
ofstream fayl;
fayl.open("test.txt");
test *a=new test[10];
a[0].a="Har hil obektlarni ifodalovchi baytlar ketma-ketligi nima deyiladi ?";
a[0].b="a ) binar fayllar";
a[0].c="b ) html fayllari";
a[0].d="c ) .cpp fayllari";
a[0].e="a";
a[1].a="int main(){\nint a = 11, b = 6;\nbool OK = a < 7 || b > 10;\ncout << OK;\nreturn 0;}\nUshbu dastur natijasini toping";
a[1].b="a ) 2";
a[1].c="b ) 1";
a[1].d="c ) 0";
a[1].e="c";
a[2].a="|-bu belgi qanday mantiqiy amal?";
a[2].b="a ) Mantiqiy va";
a[2].c="b ) Mantiqiy yoki";
a[2].d="c ) Mantiqiy emas";
a[2].e="b";
a[3].a="A=1 B=0 A^B ni qiymatini toping";
a[3].b="a ) 1";
a[3].c="b ) 0";
a[3].d="c ) 2";
a[3].e="b";
a[4].a="Aniq o`lchamda formatlab chiqarish operatori bu...";
a[4].b="a ) fixed";
a[4].c="b ) cout";
a[4].d="c ) print";
a[4].e="a";
a[5].a="Belgili tipni qabul qiluvchi o`zgaruvchilarni e`lon qilish uchun qaysi xizmatchi \nso`zidan foydalanish mumkin?";
a[5].b="a ) string";
a[5].c="b ) char";
a[5].d="c ) int";
a[5].e="b";
a[6].a="Bir xil toifali , chekli qiymatlarning tartiblangan to`plamiga nima deb ataladi?";
a[6].b="a ) string";
a[6].c="b ) char";
a[6].d="c ) massiv";
a[6].e="c";
a[7].a="Faqatgina funksiya tarkibida ishlashi mumkin bo`lgan o`zgaruvchi bu …?";
a[7].b="a ) lokal";
a[7].c="b ) mahalliy";
a[7].d="c ) global";
a[7].e="a";
a[8].a="Fayillar bilan ishlovchi funksiyalardan foydalanish uchun … sarlavha faylini \nprogrammaga qo`shish kerak";
a[8].b="a ) iostream";
a[8].c="b ) stidio.h";
a[8].d="c ) stdlib.h";
a[8].e="b";
a[9].a="Faylda ma`lumot bo`lmasa takrorlanish amalga oshmadigan sikl operatorni \nko`rsating";
a[9].b="a ) do while";
a[9].c="b ) for";
a[9].d="c ) while";
a[9].e="c";
cout << "Test loyhasi \n" << endl;
int y;
cout<<"Talabalar bilimini nazarat qiluvchi test dasturi "<cout<<"Test ishlash uchun 1 ni kiriting ."<cin>>y;
int s=0;
if(y==1){
system("cls");
cout<<"Talabalar bilimini nazarat qiluvchi test dasturi "<string x;
cout<<"Ism Familayingizni kiriting "<getline(cin,x);
getline(cin,x);
cout<<"Testni boshlash-1\n"<int u;
cin>>u;
if(u==1){
for(int i=0;i<10;i++){
cout<cout<cout<cout<string j;
cin>>j;
if(j==a[i].e){cout<<"To`gri javob \n"<else cout<<"Noto`g`ri javob \n"<}
system("cls");
cout<<"Xurmatli "<cout<<"Baza test.txt fayliga ko'chirildi "<for(int i=0;i<10;i++){
fayl<fayl<fayl<fayl<fayl<}
}
return 0;}
}
Do'stlaringiz bilan baham: |
|
|