Page 575 - Cs_withBlue_J_C11_Flipbook
P. 575
SECTION – C
Answer any two questions.
Each program should be written in such a way that it clearly depicts
the logic of the problem stepwise.
This can be achieved by using comments in the program and mnemonic names or pseudo codes
for algorithms. The programs must be written in Java and the algorithms must be written in
general / standard form, wherever required / specified.
(Flowcharts are not required.)
Question 9: [5]
A department shop wants to take stock of all types of products in a binary file “stock.txt” to store product name,
product code, quantity of item and price. Create a binary file to store the data.
Question 10: [5]
Write a program code to create the following class with the given data members and methods.
class name : recursion_bin_dec
data members : int b,d
methods()
void input() – Enters value in b in binary (0’s and 1’s)
void convert() – Using recursion, converts the number to its decimal value
void print() – Displays the decimal
Question 11: [1x5=5]
(a) Define Data Privacy.
(b) When was "Data Protection Act" implemented?
(c) What is Source Code?
(d) Define Virtual Reality.
(e) What is Phishing?
573
Model Test Paper 573

