Computer Science
Computer Science
code: 4281
NEB -XII
Model Question
2079(2023)
Computer Science
Candidates are required to give their answer in their own words as far as practicable. The figures in the
margin indicate full marks.
Time:-2 hrs. Full Marks:- 50
Group A
Rewrite the correct options of each questions in your answer sheet. (9x1=9)
1. In which normal form of database, atomicity is introduced?
A) First B) Second C) Third D) Fourth
3. Which one of the following SQL commands is executed to display all the records having a second
letter in the LNAME (LAST NAME) as “A” from the customer table?
A) SELECT * FROM CUSTOMER WHERE LNAME LIKE “?A%”;
B) SELECT * FROM CUSTOMER WHERE LNAME LIKE “_A%”;
C) SELECT * FROM CUSTOMER WHERE LNAME LIKE “A%”;
D) SELECT * FROM CUSTOMER WHERE LNAME LIKE “%A”;
7. Which of the following commands is executed in PHP to concatenate the variables $x with $y?
A) $x + $y B) $x=$y C) concat ($x,$y) D) $x.$y
10. Which type of database system (centralized or distributed) is mostly preferred by financial institution
like a bank? Give any four suitable reasons. [1+4]
OR
Nowadays most of the business organizations prefer applying relational model for database design
in comparison to other models. Justify the statement with your arguments. 5
11. Develop a program in JavaScript to exchange/swap the values of any two variables. 5
OR
How can you connect a database with PHP? Demonstrate with an example. 5
12. Describe the concept of Object Oriented and Procedure Oriented Programming in brief. 2+3
16. Develop a program in C using structure to ask the information of any 12 students with roll_number,
name and marks scored in sub1, sub2, and sub3. Also, display them in proper format along with the
calculation of total and percentage. [Note: the full marks of each subject is 100].
OR
Demonstrate a program in C to create a data file named score.dat to store students’ information
with Reg_no, name, gender, and address. The program should ask the user to continue or not.
When finished, the program should also display all the records in the proper format.
-0-