0% found this document useful (0 votes)
34 views5 pages

Computer Science XII MGMT

The document outlines a model question paper for a Computer Science examination for NEB Grade XII, covering various topics such as database systems, programming languages, and software development methodologies. It includes multiple-choice questions, short answer questions, and long answer questions, with specific tasks like programming in JavaScript and C. The paper emphasizes the importance of understanding database design, object-oriented programming, and network topologies.

Uploaded by

dhimalrosika09
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views5 pages

Computer Science XII MGMT

The document outlines a model question paper for a Computer Science examination for NEB Grade XII, covering various topics such as database systems, programming languages, and software development methodologies. It includes multiple-choice questions, short answer questions, and long answer questions, with specific tasks like programming in JavaScript and C. The paper emphasizes the importance of understanding database design, object-oriented programming, and network topologies.

Uploaded by

dhimalrosika09
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Sub.

code: 4281 Group B


NEB -XII Short Answer Questions (5x5=25)
Model Question 10. Which type of database system (centralized or distributed) is mostly preferred
2079(2022) by financial institution like a bank? Give any four suitable reasons. [1+4]
OR
Computer Science
Nowadays most of the business organizations prefer applying relational model for
Candidates are required to give their answers in their own words as far as
database design in comparison to other models. Justify the statement with your
practicable. The figures in the margin indicate full marks.
arguments. 5
Time:-2 hrs. Full Marks:- 50
11. Develop a program in JavaScript to exchange/swap the values of any two variables. 5
Group A
OR
Rewrite the correct options for each question in your answer sheet. (9x1=9)
How can you connect a database with PHP? Demonstrate with an example. 5
1. In which normal form of database, atomicity is introduced?
12. Describe the concept of Object Oriented and Procedure Oriented Programming in
A) First B) Second C) Third D) Fourth
brief. 2+3
2. Which of the following techniques is not implemented to protect a database?
13. Write down any five qualities of good software. 5
A) Rollback B) Backup C) Recovery D) Firewall
14. Explain mobile computing with its advantages and disadvantages. 5
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?
Group C
A) SELECT * FROM CUSTOMER WHERE LNAME LIKE “?A%”;
Long Answer Questions [2x8=16]
B) SELECT * FROM CUSTOMER WHERE LNAME LIKE “_A%”;
Give the long answers to the following questions.
C) SELECT * FROM CUSTOMER WHERE LNAME LIKE “A%”;
15. Why do most of the business organizations prefer setting their network with the
D) SELECT * FROM CUSTOMER WHERE LNAME LIKE “%A”;
client-server architecture? Write its advantages and disadvantages. [2+6]
4. Which of the following is an incorrect IP address?
16. Develop a program in C using structure to ask the information of any 12 students
A) 192.168.0.1
with roll_number, name and marks scored in sub1, sub2, and sub3. Also, display
B) 192.168.1
them in proper format along with the calculation of total and percentage. [Note: the
C) 172.255.0.0
full marks of each subject is 100].
D) 202.10.79.4
OR
5. Which of the following is a server-side scripting language?
Demonstrate a program in C to create a data file named score.dat to store students’
A) JavaScript B) MySql C) PHP D) jQuery
information with Reg_no, name, gender, and address. The program should ask the
6. Which of the following keywords are used to declare a variable in JavaScript?
user to continue or not. When finished, the program should also display all the
A) int or var B) float or let C) var or let D) char or var
records in the proper format.
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
8. Which statement is incorrect about the object-oriented approach?
A) Emphasis is on data rather than procedure.
B) Data is hidden and cannot be accessed.
C) Objects communicate through functions.
D) It supports abstract data but not the class.
9. Which of the following feasibility study is concerned with cost benefit analysis?
A) Technical feasibility
B) Economic feasibility
C) Operational feasibility
D) Schedule feasibility
Sub.Code: 4281'A' 9. What devices are detecting and responding to changes in an environment that are
NEB - GRADE XII embedded in smartphones and an integral part of the Internet of Things (IoT)?
2079 (2022) A) Wi-Fi B) Barcode C) RFID D) Sensors
Computer Science
New Course Group 'B'
(For regular students) Short answer questions 5x5=25
Candidates are required to give their answers in their own words as far as 10. Differentiate the centralized and distributed database system.
practicable. The figures in the margin indicate full marks. OR
Time: 2 hrs. What are the purposes of normalization? Give an example of 2NF.
Full Marks: 50 11. Write a program to find the factorial of any given number using Javascript.
Attempt all the questions. OR
Group 'A' How do you fetch data from a database in PHP and display it in form? Describe.
Rewrite the correct options of each question in your answer sheet. 9x1=9 12. Compare the OOPs and procedural programing language.
1. Which of the following SQL statement is used to DELETE rows from a database 13. What are the major activities performed to design the software? Describe.
table? 14. Explain the popular five-application areas of AI.
A) DELETE B) REMOVE
C) DROP D) CLEAR Group 'C'
2. A field that is used to uniquely define a particular record in a table is called: Long answer questions 8x2=16
A) Primary Key B) Entity C) Relationship 15. Compare the star and ring topology with pros and cons. Which of data
D) Constraints communication cable is more appropriate to design the local area network?
3. What does "MAC" stands for in MAC Address? Describe. (5+3)
A) Mandatory Access Control B) Media Access Control 16. What is structure? Write a program to input roll, name and age of 5 students and
C) Micro Access Control D) Media Access Certificate display them properly using structure. (2+6)
4. What is the correct syntax for referring to an external JavaScript script? OR
A) <script src="myscript.js"></script> Write a C program to enter ID, employee_name, and post of the employee and
B) <script href="myscript.js"></script> store them in a data file named "emp.txt". Display each record on the screen in an
C) <js href="myscript.js"></js> appropriate format.
D) <js src="myscript.js"></js>
5. Which of the following is the correct way of defining a variable in PHP?
A) $variable name = value; B) $variable_name = value;
C) $variable_name = value D) $variable name as value;
6. What is the output of C program?
void main(){ int b=25;
//b memory location=1234;
int *p; p=&b; printf("%d %d", &b, p);}
A) 25 25 B) 1234 1234 C) 25 1234 D) 1234 25
7. Which feature of OOP has illustrated the code reusability?
A) Polymorphism B) Abstraction C) Encapsulation D) Inheritance
8. Which of the following is the discovering requirement from a user in the
requirement collection process?
A) Feasibility study B) Requirement Elicitation
C) Requirement Specification D) Requirement validation
Sub.Code : 4281 Group 'B'
NEB - GRADE XII Short answer questions 5x5=25
2080 (2023) 10. Explain the Relational Data model with an example. (5)
Computer Science OR
(New course) Write SQL DDLcommands to execute the following task with reference to the
(For students whose first two digits of registration number starts form 78 or schema given below :
79) student_info (regno as integer, name as character (25), class integer, gender
Candidates are required to give their answers in their own words as far as character (1), address character (25).
practicable. The figures in the margin indicate full marks. 11. Define a syntax for database connectivity.
Time: 2 hrs. Full Marks: 50 Write a server side scripting code to insert data into the table student having fields
Group 'A' (first name, last name, mark and email:) Assume that server name ="localhost",
Very short answer questions. 9x1=9 username ="root", password =" ", database name ="student DB". (1+4)
1. Which of the given sign is used as a shortcut for JQuery? OR
A) the % sign B) the & sign Write a JavaScript code to calculate the factorial of a given number. 5
C) the $ sign D) the @ sign 12. How is even-driven program (or OOP) differing from procedural-oriented
2. Which of the following is DML statement ? programming? Explain. (5)
A) Create B) Select C) Create view Alter D) Drop 13. Explain the importance of the system testing of the system development life
3. A collection of hyperlinked documents on the Internet is called: cycle (SDLC). (1+4)
A) HTML B) webpage C) www D) email system 14. What is cloud computing? Point Out the advantages and disadvantages of cloud
4. Which of following IPV4 address valid ? computing. 5
A) 192.168.1.1 C) 257.2.5.1
B) EEE.000.33.000 D) 202.70.71.262 Group 'C'
5. Which jQuerymethod is used to hide selected elements ? Long answer questions 8x2=16
A) hide ( ) B) hide (on) 15. What is network topology? Differentiate between guided (wire media) and
C) invisible ( ) D) display (none) unguided (wireless media) with example. (2+6)
6. Which function is used to connect to mySQL database ? 16. Write the advantage of pointer. Write a C-program to enter the radius of a
A) mySqLi_open ( ) B) mySqLi_connect ( ) football and find the area of football by using user defined function. (3+5)
C) var mySqLi_query ( ) D) $mySqLi_con ( ) OR
7. Which of the following is true about FILE *fpt ? Define the structure. Write a C-program using structure to input staff id, name
A) FILE is a keyword in c for representing files and fpt is a variable of FILE and the salary of 50 staffs. Display staff id, name and salary of those staff whose
type salary range from 25 thousand to 40 thousand. (2+6)
B) FILE is a buffered Stream.
C) FILE is a Stream.
D) FILE is a structure and fpt is a pointer to the structure of FILE type.
8. Which SDLC phase is used to ensure quality software ?
A) implementation B) maintenance
C) testing D) system study
9. Coaxial cable is an example of …
A) Communication software B) Guided Transmission media
C) Unguided Transmission media D) All of them
Sub.Code : 4281 ’B’ Group 'B'
NEB - GRADE XII Short answer questions 5x5=25
2080 (2023) 10. Describe the second normal form (2NF) with an example.
Computer Science
Grade Increment (Supplementary) Examination OR
Candidates are required to give their answers in their own words as far as What are the importance of database security in database management systems?
practicable. The figures in the margin indicate full marks. Describe.
Time: 2 hrs. Full Marks: 50 11. How do you add an event handler in JavaScript? Give an example.
Group 'A' OR
Very short answer questions. 9x1=9 Explain the database connection PHP function for MySQL.
1. Which SQL keyword is used to retrieve data from a table? 12. Describe the object and class in OOPs with an example.
A) SELECT B) FROM 13. Explain the agile software development methodology in brief.
C) WHERE D) JOIN 14. Give any five examples of AI related applications.
2. Which of the following principle apply to 2NF?
A) A table must have a primary key Group 'C'
B) All non-key attributes must be dependent on the primary key Long answer questions 8x2=16
C) All attributes must be atomic 15. Compare the bus and star network topology. Which of the network cable is
D) A table must have at least more than two attributes suitable to design star topology in the school’s network? Justify. (4+4)
3. Which of the following is a device that connects two or more networks and can 16. Write a program to store five employees’ records (EID, Name, post and
filter and forward network traffic based on its destination address? department) and display them using structure.
A) switch B) router C) hub D) modem OR
4. Which JavaScript function use to text input? Describe file handling modes on C. Write a C program to create and write data
A) alert() B) prompt() C) confirm() D) console.log() into a file. (4+4)
5. Which of the following PHP functions is used to connect to a MySQL database?
A) mysql_connect() B) mysqli_connect()
C) pdo_connect() D) db_connect()
6. What is the correct way to open a file named “data.txt” in C for reading?
A) fopen(“data.txt”,”r”); B) fopen(“data.txt”,”w”);
C) fopen(“data.txt”,”a”); D) fopen(“data.txt”,”rb”);
7. Which of the following concepts in object-oriented programming refers to binding
data and function into a single unit.
A) Encapsulation B) Abstraction
C) Polymorphism D) Inheritance
8. What does the term “QA” stand for in the software development process?
A) Quality Assurance B) Quality Analysis
C) Quality Assessment D) Quantity Assurance
9. What type of communication technology is commonly used in IoT devices?
A) Wi-Fi B) Bluetooth C) Zigbee D) All of the above
Sub.Code : 4281 9. Which model of SDLC is characterized by a linear progression of phases from
NEB - GRADE XII requirements gathering to maintenance?
2081 (2024) A) Waterfall model B) Agile model
Computer Science C) Spiral model D) RAD model
(New course)
(For students whose first two digits of registration number starts form 78, 79 and 80) Group 'B'
Candidates are required to give their answers in their own words as far as Short answer questions 5x5=25
practicable. The figures in the margin indicate full marks. 10. Evaluate the advantages of DBMS compared to traditional file-based data
Multiple Choice Questions (No. 1 to 9) will be provided after 30 minutes of starting storage systems. (5)
examination. Rewrite its (MCQ) correct options (answer) in your same answer sheet. OR
Time: 2 hrs. Full Marks: 50 How does Second Normal Form (2NF) differ from First Normal Form (INF), and
Group 'A' what are the key benefits of achieving 2NF in database design? Explain.
Multiple choice Questions 11. Write a JavaScript function that checks if a number is even or odd and print the
Rewrite the correct option of each question in your answer sheet. 9x1=9 result. (1+4)
1. Which one of the followings given statement is correct? OR
A) Select * from enp where eopid=103; What is purpose of the mysqli_connect() function in PHP? Describe its usage and
B) Select from enp where eopid = 103; parameters. (2+3)
C) Select eopid where enp = 103 from emp; 12. Write short note on class and object in OOPs with a real-word example.
D) Select eopid where copid = 103 and table = emp; (2.5+2.5)
2. Which database system normally offers better performance for geographically 13. How do various requirement gathering techniques help in achieving a careful
dispersed users ? grasp of user needs and system requirements during SDLC's analysis phase? (5)
A) Centralized database system B) Distributed database system 14. Give five examples of Al applications in the education. (5)
C) NoSQL database system D) Relational database system
3. Which of the following is an example of a public IPV4 address? Group 'C'
A) 192.168.1.1 B) 172.16.10.1 Long answer questions 8x2=16
C) 10.10.10.10 D) 203.0.113.10 15. How does the star network topology differ from the bus network topology
4. What is the correct syntax for a 'for-loop' in JavaScript? in terms of its architectural layout and data transmission methodology in
A) for (var i=0; i<5; i++) {} B) for (i=0; i<5; i++) {} modern computing environments? (8)
C) for (var i=0;i<5) {} D) for (var i < 5; i++) {} 16. Write a C program that uses structures to represent details of five books
5. Which PHP function is commonly used to execute SQL. queries on a database (title, author, publisher and price) and prints them out. (8)
connection established using mysqli extension? OR
A) mysqli_query() B) pdo_query() Discuss the concept of binary file handling in C programming and explain how
C) mysql_query() D) pgsql_query() putw() and getw() functions facilitate binary input/output operations. Give
6. What is the correct syntax to declare a structure in C? examples. (8)
A) struct { } B) define struct { }
C) struct [ ] D) struct <name>{ }
7. In C, which operator is used to get the address of a variable?
A) * B) & C) -> D) .
8. Which OOP feature allows a class to inherit properties and behavior from another
class?
A) Inheritance B) Encapsulation
C) Polymorphism D) Abstraction

You might also like