0% found this document useful (0 votes)
24 views8 pages

2019 C++

2019 DU CPP PAPER

Uploaded by

somya.234017
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)
24 views8 pages

2019 C++

2019 DU CPP PAPER

Uploaded by

somya.234017
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/ 8
[This question paper contains 16 printed pages.] Your Roll No... Sr. No. of Question Paper : 8591 a Unique Paper Code : 32341101 Name of the Paper : Programming Fundamentals using C++ Name of the Course: ‘B.Sc. (H) Computer Science ‘Semester cal Duration ; 3 Hours Maximum Marks : 75 Instructions for Candidates 1. Write your Roll No. on the top immediately on receipt, of this question paper. 3. Attempt any four questions from Section B. 4, Parts of a question should be attempted together. SECTION A 1, (@) Consider the following declaration statements : float f; ap *b = af; tak P.T.O. a ll 8591 2 Identify the error and write the code to correct it, © @ (b) Assuming that the required header files have been included where required, what will be the output produced on execution of the following code segments : (@) double 21 double y = 56.77 int x = 347 564 if (x) ott ( zl os yt cout<0;, i++) 4 cout < cin 18452 (iii) wy>=2-4) G& (2-2) | ee oe! Foles = 2 Write a C++ function that takes an array of characters to convert all lowercase characters to uppercase (without using built-in functions) and return type is void. a) aetimn ypedsivold! we NGO @) 3. (a) What will be the output produced on execution of the following code segment #include using namespace std; void main() | { \ int is int j= 11: int m = 6; for(int £ = Li: P.T.O. 3591 8 { \ bil for(int t=1;t using namespace std; void main() { : int arr([]={12,34,56,89}; int temp; . int size = 4; for(int i=0,j=size-1;i P.T.O. 8591 ws ) 10 temp = arr[i]; arr(i] = arr(jl: arr{j] = temps y for (int i = Osicsizesi++) cout< if (n<0) using namespace std; fy | throw myexception(*Ne: | ; gative Ij class myexception number”) 7 | ( cout

You might also like