Computer Science HSSC-II (D)
Computer Science HSSC-II (D)
Write down any three features of Multi-user Operating How is an argument pass by value different from an
(i) 03 OR 03
System. argument pass by reference?
Briefly explain the three steps of requirement engineering Write down any three differences between post-tested and
(iii) 03 OR 03
phase of SDLC. pre-tested loops with example.
Briefly explain how a pointer variable is declared by using Write down a piece of code in c++ that shows the use of
(viii) 03 OR 03
an example. inline function.
Given the array definition:
Write a piece of code that shows how a string copies into float a[5]={1,2,3};
(ix) 03 OR 1+2
another string using strcpy( ) function. a. How many elements are there in the array?
b. What are the values of the first and last elements?
(x) Differentiate local and global variables. 03 OR Briefly explain the concept of data hiding in c++. 03
Explain the difference between the following statements if Write down the use of function overloading in terms of:
P is a pointer variable: Number of arguments
(xi) 03 OR 03
cout<<P; Datatypes of arguments
cout<<*P; Return types
Write a c++ code that reads 03 characters from user and
(xii) How is constructor different from destructor? 03 OR 03
stores them in a file.