0% found this document useful (0 votes)
15 views10 pages

Computer Science

12 class past paper

Uploaded by

nomankhan512785
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)
15 views10 pages

Computer Science

12 class past paper

Uploaded by

nomankhan512785
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/ 10
SECTION -A Time allowed: 20 minutes Marks: 15 Note: Section-A is compulsory. All parts of this section are to be answered on the separately provided OMR Answer Sheet which should be completed in the first 25 minutes and handed over to - the Centre Superintendent, Deleting/overwriting is not allowed. Do not use lead encil. Choose ect anova B / c/ ae evant bubble for estion on the OMR Answer ac according to the instructions st there. Each part carries one mark. 1, Which operating system is used in super computer, where thousands of processors work together? A. _ Distributed B. Parallel processing C. Multiprogramming D Multiprocessor D\ CO om. 2s a of the scl Ge Operating cies in home Appliances a Site oven? Batch processing a“ Distributed C. Embedded D. Parallel processing _ Which of the following phase involved monitoring, evaluating, repairing. and improving the system throughout the life time of the system? A. Development B. Invest ation C. elie cal » In SDLC plementation from an ee to a new system K y is called : A. Step-by-step implementation B. Phased implementation C. Parallel implementation D. __ Pilot implementation » Which header file must be included in the program to use setw( )? A. conio.h B. _ string.h C. iomanip.h D.° _ iostream.h 6. What will be the output of ing statement? Wa am int x= 3 et eaten ais ey D. : w os uo he What will be output of following code ifa= 15andb=10? a>b?a-b:a+b; Aree a5 Baits 16 Gets Die 25 8. Which of the following accesses is the seventh element stored in ret A. __ array(6); : array C. _array(7); oa 9. How isa f (Wdecla if it does not nce wi type? a(NN cong B. double oi void D. int 10. The dereference operator is denoted by: Asan cay B. Ore % D. 8& 11. Which of the following indicates the address of a variable “temp” of type float? . A. #temp “i C. — &float te 2 rot mp& 12, Which» alee ‘symbols is used i destructor of a class? ae . * D. iw 13. class A inherits from class B, then . iscalled sof A.Aiscalled Parent class, Sub class Sub class, Parent class Abstract class, Base class Child class, Sub class 14. Which header fi et oa, the'file? write an A. Gor B. __ ofstream ANN istream D. — fstream 15. Which of the following functions is used to read string “computer” character by character from file? A. — write () B.°- get () Ge Spukt) D. gets () LSP SoS Time allowed; 2:40 hours Total Marks: 60 Note: Sections ‘B’ ‘C’ and ‘D’ comprise pages 1-3 and questions therein are to be answered on the separately provided answer book. Use supplementary answer sheet i.e, sheet B if ‘required, Write your answers neatly and legibly. SECTION — B (Marks 18) Note: Section-B consists of following topics of the syllabus: 1. Operating Systems 2. System Development Life Cycle Object Oriented Programming In Control Structure Pointers Q2. Attempt any SIX parts from the following. All parts carry equal marks, — (6x3 = 18) i, List the personnel involved in System Development Life Cycle. ii, . Draw a labeled diagram to show the states of a Process. NN ii, What is the m pee Gthod of ‘Gn imple a Ree System _ Dev ae and Why? : iv. oat out valid and invalid variable “names, Give reasons if a variable is invalid, a. name b. AAA c 9a d... US$ e ab f. C++ v. . Evaluate the following expressions: a. (2-8.5)(6/7+4.2) b. ple later vi. Write the output of the falls free progra oS “—_ void main rw: i a=b=x=v=0; whee ++} y= tty; cout<< “a =." <= 0; i--) { ; a{i] = 2 * a[i+1] -i; See << afi]; viii, List fon ne toe in aby oan and trunc pee ix, A between _—_ default constructor and user-defined constructor. SECTION - D (Marks 24) Note: Attempt any THREE questions. All questions carry equal marks. (3 x 8 = 24) Q4. Write a C++ program implementing a class with the name Time. Thi ass should have a con ution Fp inti alize the hours a seconds to zero, ‘The ‘should have another n name ToSecond and display the time pass by the object into seconds, (8) Q5. What are the different functions performed by an operating system. (8) Q6. Write aC++ program implementing a " class with the name Time ~ (8) This class should have a constructor to initialize the hours, ae seconds to zero. gies B\ cow The class sh A er function . name? display the time the object into seconds, Q7. \ Trace the values of variables with each iteration of program statement in the given table. (8) #include void main( ) { int arr[5] = {12, 43, 36, 8,7}; int c, s = 0; for (c= 0;c <= 4; c++) { if (arr[c] % 3 = = 0) { cout << arr[c] << “\n”; $ += arr[c]; yecey cout<<"Sum = eS ry ee oe 0 Rae eee oe ee ee pi cc Soe ae SECTION -A Time allowed: 20 minutes Marks: 15 Note: Section-A is compulsory. All parts of this section are to be answered on the separately provided OMR Answer Sheet which should be completed in the first 25 minutes and handed over to - the Centre Superintendent, Deleting/overwriting is not allowed. Do not use lead encil. Choose ect anova B / c/ ae evant bubble for estion on the OMR Answer ac according to the instructions st there. Each part carries one mark. 1, Which operating system is used in super computer, where thousands of processors work together? A. _ Distributed B. Parallel processing C. Multiprogramming D Multiprocessor D\ CO om. 2s a of the scl Ge Operating cies in home Appliances a Site oven? Batch processing a“ Distributed C. Embedded D. Parallel processing _ Which of the following phase involved monitoring, evaluating, repairing. and improving the system throughout the life time of the system? A. Development B. Invest ation C. elie cal » In SDLC plementation from an ee to a new system K y is called : A. Step-by-step implementation B. Phased implementation C. Parallel implementation D. __ Pilot implementation » Which header file must be included in the program to use setw( )? A. conio.h B. _ string.h C. iomanip.h D.° _ iostream.h 6. What will be the output of ing statement? Wa am int x= 3 et eaten ais ey D. : w os uo he What will be output of following code ifa= 15andb=10? a>b?a-b:a+b; Aree a5 Baits 16 Gets Die 25 8. Which of the following accesses is the seventh element stored in ret A. __ array(6); : array C. _array(7); oa 9. How isa f (Wdecla if it does not nce wi type? a(NN cong B. double oi void D. int 10. The dereference operator is denoted by: Asan cay B. Ore % D. 8& 11. Which of the following indicates the address of a variable “temp” of type float? . A. #temp “i C. — &float te 2 rot mp& 12, Which» alee ‘symbols is used i destructor of a class? ae . * D. iw 13. class A inherits from class B, then . iscalled sof A.Aiscalled Parent class, Sub class Sub class, Parent class Abstract class, Base class Child class, Sub class 14. Which header fi et oa, the'file? write an A. Gor B. __ ofstream ANN istream D. — fstream 15. Which of the following functions is used to read string “computer” character by character from file? A. — write () B.°- get () Ge Spukt) D. gets () LSP SoS

You might also like