Computer Science HSS-II (B)
Computer Science HSS-II (B)
(iii) Briefly describe any three types of deployment phase. 03 OR Briefly describe the five states of process with diagram. 03
Write down any three differences between if-else-if and What is understood by functional and non-functional
(iv) 03 OR 03
switch statements. requirements in requirement gathering phase of SDLC?
What will be the output of the following code segment?
What will be the output of following code segment? for(int i=0; i<3;i++)
int i=3; {
(v) int j=i++; 03 OR cout<< “Enter a character”; 03
int k=++i; cin>>ch;
cout<<i<< “ ” <<j<< “ “ <<k; out.put(ch);
}
Write down the output of the following code segment.
What will be the output of the following code? {int a=7, b=12;
int m=5, c=0; fun(a,b);
while(c<100) cout<<a<< “ ” <<b;
{ }
(vi) 03 OR 03
m=m+1; void fun(int m,int &n)
c=c+1; {
} n=n-2*m;
cout<<m; m=2*m;
}
int arr[3][4]={{12,0,5,10},{7,8,19,30},{33,1,2,22}}; Write a program that inputs a string and displays the
(vii) 03 OR 03
Write down a statement that replaces 19 with 50. number of character in it.
Fill in the following table with Yes/No. Consider the following array declaration:
Access Public Private int arr[8];
(viii) Access of members in same class 03 OR a. How many elements are there in the array? 03
Access of members in derived class b. Determine the highest index of the array.
Access of members outside the class c. Determine the lowest index of the array.
(ix) What are strings? Briefly explain how to declare a string. 1+2 OR Differentiate between local and static variables. 03
(xiv) Explain the role of Project manager in SDLC. 03 OR What is the use of break statement in c++? 03
(B) ——