1 / 11

Computer and Communication Technology board papers

Students can also check the solved 2017 Computer and Communication Technology board papers for both region Delhi and ALL INDIA<br>https://www.zigya.com/blog/click-download-cbse-computer-communication-technology-solved-board-papers/

php1deldev
Télécharger la présentation

Computer and Communication Technology board papers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CBSE Computer and Communication 2017 Board Questions www.zigya.com

  2. Computer and Communication Technology CBSE2017 ExamYear 2017 • Study, Assignments, Solved Previous Year Papers . Questions and Answers. FreeForever. • Short AnswerType • Write the type of C++tokens (keywords and user-defined identifiers) from the following : • For • delete • default • Value • Answer • Anil typed the following C++code and during compilation, he found four errors as follows: • Function strlen should have aprototype • Undefined symbolcout • Undefined symbolendl • Function getchar should have aprototype • On asking his teacher told him to include necessary header files in the code. Write the names of the header files, which Anil needs to include, forsuccessful • compilation and execution of the following code: • voidmain() • { • char S[] ="Hello"; • for(int i = 0; i<strlen(S); i++) S[i] =S[i]+1; • cout<<S<<end1; getchar(); • } • Answer • Rewrite the following C++code after removing any/all syntactical errors with each correction underlined. • Note:Assumeallrequiredheaderfilesarealreadybeingincludedintheprogram. • voidmain() • { • cout<<"Enter aninteger”; Like. Share. Bookmark. Download. Make Notes. Print - Your Favourite Questions. Joinwww.zigya.com

  3. Computer and Communication Technology CBSE2017 ExamYear 2017 Study, Assignments, Solved Previous Year Papers . Questions and Answers. FreeForever. cin>>N; switch(N%2) case 0 cout<<"Even"; Break; case 1 cout<<"Odd";Break; } Answer Find and write the output of the following C++program code : #define Big(A,B)(A>B)?A+1:B+2 voidmain() { char W[] = "Exam"; intL=strlen(W); for(int i=0; i<L-1;i++) W[i] =Big(W[i],W[i+1]); cout<<W<<endl; getch(); } Answer Find and write the output of the following C++ programcode: Note:Assumeallrequiredheaderfilesarealreadybeingincludedintheprogram. voidmain() { intA[]={10,12,15,17,20,30}; for(int i = 0; i<6;i++) { if(A[i]%2==0) A[i] /=2; elseif(A[i]%3==0) A[i] /=3; if(A[i]%5==0) A[i]/=5; } for(i = 0; i<6;i++) Like. Share. Bookmark. Download. Make Notes. Print - Your Favourite Questions. Joinwww.zigya.com

  4. Computer and Communication Technology CBSE2017 ExamYear 2017 • Study, Assignments, Solved Previous Year Papers . Questions and Answers. FreeForever. • cout<<A[i]<<"#"; • getch(); • } • Answer • Look at the following C++ code and find the possible output(s) from the options (i) to (iv) following it. Also, writethemaximumvaluesthatcanbeassignedtoeachofthevariablesRandC. • Note: • Assumealltherequiredheaderfilesarealreadybeingincludedinthecode. • The function random(n) generates an integer between 0 andn-1 • voidmain() • { • randomize(); • intR=random(3),C=random(4); • int MAT[3][3] ={{10,20,30},{20,30,40},{30,40,50}}; • for(int I=0; I<R;I++) • { • for(int J=0; J<C;J++) • cout<<MAT[I][J]<<""; • cout<<endl; • } • } (i) (ii) 10,20,3010,20,30 20,30,4020,30,40 30,40,50 (iii) (iv) 10,20 20,30 30,40 10,20 20,30 Answer 7. Differentiate between private and public members of a class in the context of ObjectOriented Like. Share. Bookmark. Download. Make Notes. Print - Your Favourite Questions. Joinwww.zigya.com

  5. Computer and Communication Technology CBSE2017 ExamYear 2017 • Study, Assignments, Solved Previous Year Papers . Questions and Answers. FreeForever. • Programming. Also, give a suitable example illustrating accessibility/non-accessibility of each using a class and an object inC++. • Answer • Observe the following C++ code and answer the questions (i) and (ii). Note: Assume all necessary files areincluded. • classEXAM • { • longCode; • char EName[20]; float Marks; public: • EXAM() //Member Function1 • { • Code=100;strcpy(EName,"Noname");Marks=0; • } • EXAM(EXAM &E) //Member Function2 • { • Code=E.Code+1; strcpy(EName,E.EName); Marks=E.Marks; • } • }; • voidmain() • { • ___________________ //Statement1 • ___________________ //Statement2 • } • Which Object-Oriented Programming feature is illustrated by the Member Function 1 and Member Function 2 together in the classEXAM? • WriteStatement1andStatement2toexecuteMemberFunction1andMemberFunction2respectively. • Answer Like. Share. Bookmark. Download. Make Notes. Print - Your Favourite Questions. Joinwww.zigya.com

  6. Computer and Communication Technology CBSE2017 ExamYear 2017 Study, Assignments, Solved Previous Year Papers . Questions and Answers. FreeForever. 9. Write the definition of a class RING in C++with the following description: • PrivateMembers • RingNumber • Radius • Area // data member of integertype // data member of floattype // data member of floattype • CalcArea() // Member function to calculate andassign • // Area as 3.14 *Radius*Radius • PublicMembers • GetArea() // A function to allow user to enter valuesof • // RingNumber and Radius. Also,this • // function should call CalcArea() tocalculate • //Area • - ShowArea() // A function to display RingNumber,Radius • // andArea • Answer • 10. Answer the questions (i) to(iv) based on the following: • classOne • { • int A1; protected: • floatA2; • public: • One(); • void Get1(); voidShow1(); • }; • class Two : privateOne • { • int B1; protected: • floatB2; • public: Like. Share. Bookmark. Download. Make Notes. Print - Your Favourite Questions. Joinwww.zigya.com

  7. Computer and Communication Technology CBSE2017 ExamYear 2017 Study, Assignments, Solved Previous Year Papers . Questions and Answers. FreeForever. Two(); void Get2(); voidShow(); }; class Three : publicTwo { intC1; public: Three(); void Get3(); voidShow(); }; voidmain() { Three T; _______; } //Statement1 //Statement2 Which type of Inheritance out of the following is illustrated in the aboveexample? -Single Level Inheritance, Multilevel Inheritance, MultipleInheritance. Write the names of all the member functions, which are directly accessible by the object T of class Three as declared in main()function. WriteStatement2tocallfunctionShow()ofclassTwofromtheobjectTofClassThree. What will be the order of execution of the constructors, when the object T of class Three is declared insidemain()? Answer 11. Write the definition of a function Reverse(int Arr[], int N) in C++, which should reverse the entire content of thearrayArrhavingNelements,withoutusinganyotherarray. Example: if the array Arrcontains Like. Share. Bookmark. Download. Make Notes. Print - Your Favourite Questions. Joinwww.zigya.com

  8. Computer and Communication Technology CBSE2017 ExamYear 2017 Study, Assignments, Solved Previous Year Papers . Questions and Answers. FreeForever. 131015205 Then the array shouldbecome 520151013 NOTE: Thefunctionshouldonlyrearrangethecontentofthearray. Thefunctionshouldnotcopythereversedcontentinanotherarray. The function should not display the content of the array. Answer Write a definition for a function ADDMIDROW(int MAT[][10], int R, int C) in C++, which finds sum of the middle row elements of the matrix MAT (Assuming C represents the number of Columns and R represents the number of rows, which is an oddinteger). Forexample,ifthecontentofarrayMAThavingRas3andCas5isasfollows: 12345 21345 34125 The function should calculate the sum and display the following: Sum of Middle Row:15 Answer T[25][30] is a two dimensional array, which is stored in the memory along the row with each of its element occupying 2 bytes, find the address of the element T[10][15], if the element T[5][10] is stored at the memory location25000. Answer Write the definition of a member function ADDMEM() for a class QUEUE in C++, to add a MEMBER in a dynamically allocated Queue of Members considering the following code is already written as a part of the program. structMember Like. Share. Bookmark. Download. Make Notes. Print - Your Favourite Questions. Joinwww.zigya.com

  9. Computer and Communication Technology CBSE2017 ExamYear 2017 Study, Assignments, Solved Previous Year Papers . Questions and Answers. FreeForever. { intMNO; charMNAME[20]; Member*Next; }; classQUEUE { Member*Rear,*Front; public: QUEUE(){Rear=NULL;Front=NULL;} void ADDMEM(); voidREMOVEMEM(); ~QUEUE(); }; Answer Convert the following Infix expression to its equivalent Postfix expression, showing the stack contents for each step ofconversion. P + ( Q - R ) * S /T Answer Aditi has used a text editing software to type some text. After saving the article as WORDS.TXT, she realisedthatshehaswronglytypedalphabetJinplaceofthealphabetIeverywhereinthearticle. Write a function definition for JTOI() in C++ that would display the corrected version of the entire content ofthefileWORDS.TXT withallthealphabets“J”tobedisplayedasanalphabet"I"onscreen. Note: Assuming that WORD.TXT does not contain any J alphabet otherwise. Example: If Aditi has stored the following content in the file WORDS.TXT: "WELL, THJS JS A WORD BY JTSELF. YOU COULD STRETCH THJS TO BE ASENTENCE" The function JTOI() should display the followingcontent: "WELL, THIS IS A WORD BY ITSELF. YOU COULD STRETCH THIS TO BE ASENTENCE" Answer Write a definition for function COUNTDEPT( ) in C++ to read each object of a binary file TEACHERS.DAT, find anddisplaythetotalnumberofteachersinthedepartmentMATHS.AssumethatthefileTEACHERS.DATis Like. Share. Bookmark. Download. Make Notes. Print - Your Favourite Questions. Joinwww.zigya.com

  10. Computer and Communication Technology CBSE2017 ExamYear 2017 Study, Assignments, Solved Previous Year Papers . Questions and Answers. FreeForever. createdwiththehelpofobjectsofclassTEACHERS,whichisdefinedbelow: classTEACHERS { int TID; charDEPT[20]; public: voidGET() { cin>>TID;gets(DEPT); } voidSHOW() { cout<<TID<<":"<<DEPT<<endl; } char *RDEPT(){returnDEPT;} }; Answer 18. Find the output of the following C++ code considering that the binary file BOOK.DAT exists on the hard disk with a data of 200books. classBOOK { int BID;charBName[20]; public: void Enter();voidDisplay(); }; voidmain() { fstream InFile; InFile.open("BOOK.DAT",ios::binary|ios::in); BOOKB; InFile.seekg(5*sizeof(B)); InFile.read((char*)&B,sizeof(B)); cout<<"Book Number:"<<InFile.tellg()/sizeof(B) +1; Like. Share. Bookmark. Download. Make Notes. Print - Your Favourite Questions. Joinwww.zigya.com

  11. Computer and Communication Technology CBSE2017 ExamYear 2017 Study, Assignments, Solved Previous Year Papers . Questions and Answers. FreeForever. InFile.seekg(0,ios::end); cout<<" of "<<InFile.tellg()/sizeof(B)<<endl; InFile.close(); } Answer Like. Share. Bookmark. Download. Make Notes. Print - Your Favourite Questions. Joinwww.zigya.com

More Related