0% found this document useful (0 votes)
21 views7 pages

CS Question

The document is a question paper for a Computer Science and Application theory exam, covering various topics such as flowcharts, nested if statements, searching techniques, and C++ programming concepts. It includes multiple choice questions, short answer questions, and programming tasks, with a total of 70 marks and a pass mark of 21. The paper is structured into sections with specific marks allocated for each question.

Uploaded by

tamim04ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
21 views7 pages

CS Question

The document is a question paper for a Computer Science and Application theory exam, covering various topics such as flowcharts, nested if statements, searching techniques, and C++ programming concepts. It includes multiple choice questions, short answer questions, and programming tasks, with a total of 70 marks and a pass mark of 21. The paper is structured into sections with specific marks allocated for each question.

Uploaded by

tamim04ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 7
Total No. of Printed Pages--7 24 T--CSCA 2014 COMPUTER SCIENCE AND APPLICATION (Theory) Full Marks : 70 Pass Marks: 21 Time: 3 hours The figures in the margin indicate full marks for the questions 14C--5000/25 (Turn Over) (2) 1. Answer the following questions : 1*10=10 wary, ft erepryes Sey fit: fa) What is flowchart? Flowchart f¥? f) What is a nested if statement? Nested if faqfe 7 (o/ If x = 20 and y = 10, then which of these will the expression x > y&& (x*y) > y evaluate to? wt x=20 We y=10 B, BRM x>y&&(x*y)>y expression@r WA 23 @ False (i) 10 (ii) True (vy) 1 b What is nested class? Nested class f¥7 4) What is destructor? Destructor f¥? b wen of these is called first when an object of a derived class is created? Derived class “bm object «il create Fas WI RC 184 Ft CHT HT () Constructor of the base class (i) Constructor of the derived class of What are the two searching techniques available? ¥& 4144 searching technique f7 . ds What is MODEM? MODEM f¥? 14Cc—s000/28 1 Cantinued\ (3) @ Define TOP. TOP 4 7a Pret 1 wf FTP stands for FIP ?4 (@) format transfer protocol file transmission protocol file transfer protocol (iv) file technical protocol a/AWrite the first and the last value of i output by this loop. 2 ‘ems fmt loop-3 wat Sem CUA iT eH STF OTe A OT fra | n= 10; i= 0; while (+ti= 50) order = max + 20; else order = max; 14C—5000/25 (Turn Over ) (4) [c) What are the three visibility modes? What is the default mode to the members of a class? fe se visibility mode fF f*¥? Class? member 7WRq default mode f? (f) Given a stack as an array of 7 elements : 76 element ¥41 4b array Rory «bl stack WaT fim BITE: STACK: K, P,S,__, _, Can K be deleted before S? Why? TANS K delete Ha fcr? FI? ( What is the difference between LAN and MAN? LAN re MAN 4 Te onefay £7 How docs inheritance influence the working of constructors and destructors? Inheritance @ CHAR constructor BF destructor 4 fas ree fers Ft? , What is function? Write the difference between call-by-value and call-by-reference. 14253 Function f#? Call-by-value &1# call-by-reference 4 wea 97 Pra & Find the syntax error(s) (if any) in the following code and correct them : 3 wars fmt code core aff Fa GH BIR, Core GHA Cea we Wa FA: Class ABC { int x = 10; float y, public : ABC() fy = 53} 7 O void’ main( ) { ABC al, a2; 14C—5000/25 (5) 7 What are arithmetic operators in C++? Distinguish between unary and binary arithmetic operators. Give examples. 3 C++8 arithmetic operators f¥? Unary @# Binary arithmetic operator 4 wrera metry fe 7 Sarees fa J What is network topology? Write two advantages and two disadvantages of tree topology. 3 Network topology f¥? Tree topology 4 Yb Afar are yor oye Prat 1 &. write the steps to search 34 by using binary search in the following array amount [7] : 3 ‘wae fa ~R41 amount [7] GIS Binary Search 4 7AAS 34 F Te ‘Sear step GA frat: 50/45 | 40| 38 | 37/34] 25 Oj}1/2};3/4}|5/6 10. Answer the following questions : 3x4=12 rg erprpea Gea fan: of What is inheritance? What are the various types of inheritance in C++? Inheritance f$7 C++ fafa sea inheritance CIR fF fF? at Name different layers of ISO OSI model. ISO OSI model 4 fifa layer cara Tm fra | (pf What is meant by stack? Given a stack as an array of 7 elements, when will overflow and underflow occur? Stack aKa f¥? Array fion4 76 Gla ea abt stack fra aR! Sone underflow C#feai 2°47 Define global class and local class with example. ‘orang global class SF local class 4 Ke fir | 14C—5000/25 (Turn Over ) (6) 4. Define a Class Book with the following specifications : 4 ware Beery wa aaa BAT bl Class Book 4 7Ken frat : Private members— Book_No—integer type Book_Title—20 characters Price—float (price per copy) Total_Cost( }—A function to calculate the total cost of N number of copies, where N is passed to the function as argument Public members— INPUT( }—Function to read Book_No, Book_Title, Price PURCHASE(}—Function to ask the user to input the number of copies to be purchased. It invokes Total_Cost() and print the total cost to be paid ah Consider the following declarations and answer the questions given below : 4 wars Fin class cr Ricaoa AA emacaray Sey far : Class vehicle {private : int wheels; protected: int passenger; public : void inputdata (int, int); void outputdata (); B Class heavy_vehicle : protected vehicle { int diesel_petrol; 7 void readdata ‘(int, int}; void writedata(); Clase bus : private heavy_vehicle char make [20]; lic : + void fetchdata (char); void displaydata( ); pul h 14C—5000/25 ( Continued) (7) (@] Name the base class and derived class of the class heavy_vehicle. heavy_vehicle classcb@ base class ST derived class 4 4M frat (bf Name the data member(s) that can be accessed from function displaydata( ). displaydata( ) Fro access 4/44 41 data member Gita aw fret de) Name the data members that can be accessed by an object of bus class. bus class 4 object 4 access #f%4 “1 data member @4 a ‘fora {@j Is the member function outputdata() accessible to the objects of heavy_vehicle class? heavy_vehicle class 4 object 4 outputdata() wrt accessible ®i i 72%? What is postfix expression? Convert the following expression in postfix form : 14384 Postfix expression {7 wae fim feqfertt postfix Ws fora : NOT A OR NOT B NOT C sig anal is copy constructor? Write any four characteristics of destructor. 1+4=5 Copy constructor f¥? Destructor 4 f carat Bifabr Came fare 1 tee

You might also like