Trending ▼   ResFinder  

CBSE Pre Board Class 12 2017 : Computer Science (Army Public School)

10 pages, 27 questions, 6 questions with responses, 6 total responses,    2    0
Somnath PaulChoudhury
St. Mary's ICSE School, Koparkhairane, Navi Mumbai
+Fave Message
 Home > spch >   F Also featured on: School Page cbse12_pre_boards

Formatting page ...

Army Public School Bengdubi Pre Board Examination 2016-17 Class XII Science Sub: Computer Science Time 3 hours Max Marks 70 General Instructions: i). All Questions are compulsory, programming language is C++. ii). 15 minutes time has been allotted to read this question paper. ------------------------------------------------------------------------------------------------------------------------------------1. [1+1+2+2+2+2+2=12] a. Why function prototypes are required? b. Observe the following code and write the name(s) of the header file(s), which will be essentially required to run it in a C++ compiler: int num; cin>>num; char string[50]; itoa(num, string, 10); cout<<setw(20)<<num<<" "<<setw(30)<<string; cout<<num<<" "<<string; c. Observe the following C++ code carefully and rewrite the same after removing all syntax error(s) present in the code. Ensure that you underline each correction in the code. #include<iostream.h> #include<string.h> void strfunc(char str) { strcopy(str,"Computer Science"); cout<<str<<endl; } void main { char *str='CS 083'; strfunc[str]; cout<<str; } d. Find the output if following C++ sequence is run in compiler

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Eshant Mahale

(6)

ResPaper Admins

(1)

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

© 2010 - 2024 ResPaper. Terms of ServiceContact Us Advertise with us

 

spch chat