You are on page 1of 10

Model Question NEB

Subject : Computer Science (428)


Class XII
Full Marks: 50 (9 marks Obj + 41 Marks Sub) Time: 2 Hours

Group 'A'
Time: 20 minutes
Multiple Choice questions (9 × 1=9)

Tick the correct answer.


1. Which of the statements are used in DDL?
A) Create, alter and drop B) Create, insert and select
C) Insert, update and delete D) Delete, alter and drop
2. With SQL, how do you select all the records from a table named “Persons” where the
value of the column “FirstName” ends with an “a”?
A) SELECT * FROM Persons WHERE FirstName=‟a‟
B) SELECT * FROM Persons WHERE FirstName LIKE „a%‟
C) SELECT * FROM Persons WHERE FirstName LIKE „%a‟
D) SELECT * FROM Persons WHERE FirstName=‟%a%‟
3. Which of the following statements is true about a star network topology?
A) Each device is connected to a switch or hub
B) Each device is connected to each other
C) Each device is connected in a trunk
D) Each device is connected to a terminal
4. Which of the following is the correct syntax to display "Stay Safe" in an alert box using
JavaScript?
A) alert-box("Stay Safe"); B) confirm("Stay Safe");
C) msgbox("Stay safe"); D) alert("Stay Safe");
5. What is the use of <A> tag?
A) To insert an image B) To create a link
C) To create a hyperlink D) To create a list
6. What is the output of given C program?
void main(){
char str1[] = "FIRST"; char str2[20]; strcpy(str2,str1);
printf("%s %s ",str1,str2); printf("%d", (str1!=str2));
printf("%d", strcmp(str1,str2)); }
A) FIRST FIRST 0 0 B) FIRST FIRST 1 1
C) FIRST FIRST 1 0 D) FIRST FIRST 0 1
7. Where is a class derived in inheritance?
A) Superclass B) Subclass C) Subsetclass D) Relativeclass
8. Which of these is the correct order of the SDLC?
A) Analysis, Design, Coding, Testing, Implementation
B) Analysis, Design, Testing, Implementation, Coding
C) Implementation, Coding, Analysis, Design, Testing
D) Design, Testing, Implementation, Coding, Analysis
9. Why is cloud computing popular nowadays?
A) Cost-sharing and easily accessible
B) As modern technology and costly
C) Accessible and freely available
D) Affordable to all

122
Model Question (NEB)
Grade: Grade XII Subject: Computer Science (Th) Subject code: 232
Full Marks: 50 (9 marks Obj + 41 Marks Sub) Time: 2 Hours

Group B
Short Answer Questions (5 ×5=25)
1. Explain 2NF and 3NF with examples.
OR
Demonstrate the basic DML statement with an example.
2. Write a function to add any two numbers in Javascript.
OR
Demonstrate the external CSS implemented in the web page.
3. Describe any five features of OOPs.
4. What are the different stages of software planning? Describe.
5. Define the concept of AI and IoT. (2+3)
Group C
Long Answer Questions (2 ×8=16)
6. How do you implement the Class C IP address in the local area network? Describe.
7. Write a program to enter ten integer numbers into an array, sort and display them in
ascending order.
OR
Write a program to read the marks of any 5 students in a subject and count how many
students are pass and fail.

Model Questions - 1
Subject : Computer Science
GRADE: XII (Management)

Full Marks: 50 (9 marks Obj + 41 Marks Sub) Time: 2 Hours


Group 'A'
I. Choose the best alternative: [1x9=9]

1. NIC card is used for LAN connection.


a. True b. False
2. Spiral is a_____________.
a. Software
b. Testing phase
c. System Development model
d. None of the above
3. Who carries out the coding part?
a. Programmer b. System Analyst c. Client d. None
4. Physical layout of computer in network is called…
a. Network
b. internet
c. Topology
d. None of the above
5. ________ is a component of multimedia.
a. Speaker c. Monitor
b. Sound card d. All of them

123
6. ______ data type contains numbers having decimal point.
a. Char b. Int c. Float d. None
7. To use the strcpy() function, which header file should be included?
a. conio b. stdio c. string d. math
8. The last value of the series in looping is called …….
a. Test Expression b. initialization
c. Increment/decrement d. All of them
9. Which operator is logical OR operator?
a. || b. ! c. && d. None

Group 'B'
II. Write short answers to the following questions: [5×5=25]
1. Who is a DBA? What are his good qualities?
2. Write a function simple(p,t,r) in C to compute Simple Interest.
3. What is IoT? List any 3 of its applications.
4. What is Cyber Law? Explain hacking.
5. What is client server network? Explain with a diagram.

Group ' C'

III. Give long answer to the following questions (Any two): [8x2=16]
1. Write codes for JavaScript to create a mark sheet using if structure and find the
Grades based on the following :
Percentage Grade
>= 90 A+
>=80 and <90 A
>=70 and <80 B+
>=60 and <70 B
>=50 and <60 C+
<50 C
2. Explain types of Computer Network on the basis of area it covers.
3. Write a C program to input name, address and salary of a person and store it in a data
file "employee.dat".

Model Questions - 2
Subject : Computer Science
GRADE: XII (Management)

Full Marks: 50 (9 marks Obj + 41 Marks Sub) Time: 2 Hours

Group A
I. Choose the best alternative: [1x9=9]
1. The ________ is the physical path over which a message travels.
a. protocol b. medium c. signal d. None
2. The key that uniquely identifies a record is called
a. Field name b. Unique key c. Primary key d. Key record
3. Systems are modified whenever
a. User's requirement change.
b. New computers are introduced in the market
c. New software tools become available in the market
d. Other similar organization modify these system

124
4. __________ is used to input records in MS-Access.
a. Report b. Table c. Form d. None
5. Network that covers the longest distance is called______.
a. LAN b. MAN c. WAN d. HAN
6. ____________can hold dissimilar data.
a. array b. structure c. pointer d. variable
8. Which operator is used to compute the integer division?
a. / b. \ c. % d. None
9. Which loop is pre-test loop?
a. for loop b. while loop c. do..while loop d. None

II. Write short answers to the following questions: [5x5=25]


1. What is a database? What are the objectives of a database?
2. What is transmission media? Explain any two different types of transmission media.
3. Write a structure in C to initialize item, quantity and rate and calculate total amount.
4. Describe switch case structure in JavaScript with syntax and one example
5. What is a pre-test loop? Write JavaScript codes to print given series.
1,4,9,16…..100 .

III. Give long answer to the following questions (Any two): [8x2=16]
1. Using Switch case , Write JavaScript codes to serve the following Book List:

1. Computer Science
2. Account
3. Economics
4. Math’s
5. Social
6. English.
2. Explain the different network connecting devices.
3. Write a C program to read marks of any 10 students in computer science and count
how many have scored above 80.

Model Questions - 3
Subject : Computer Science
GRADE: XII (Management)

Full Marks: 50 (9 marks Obj + 41 Marks Sub) Time: 2 Hours

Group 'A'
I. Choose the best alternative: [1×9=9]

10. Who carries out the analysis phase?


a. Programmer b. System Analyst c. Client d. None
11. Decision tree is a tool to :
a. Design System
b. Test The system
c. Selling the system
d. None of the above
12. ________ is message sending through electronic medium.
a. Internet c. Post
b. Email d. Hardcopy.

125
13. One- Dimensional array has ___ row or column.
a. 2 b. 1 c. 4 d. 5
14. To use the strlen() function, which header file should be included?
a. conio b. stdio c. string d. math
15. Relational Operators are :
a. Comparison of data b. addition of variables
c. Logical treatment d. All of them
16. Which operator is logical AND operator?
a. || b. ! c. && d. None
17. Which loop is post-test loop?
a. while loop b. do..while loop c. for loop d. None
18. In C, int data type has memory allocation of :
a. 4 bytes b. 2 bytes c. 8 Bytes d.1 bytes

II. Write short answers to the following questions: [5×5=25]


6. Who is a System Analyst? List out the roles of System Analyst.
7. Explain waterfall model of System Development Life Cycle with a diagram.
Write a program to determine whether an input number is odd or even.
8. Explain JavaScript if structure with the help of example program.
9. Write C- program to input number (from 1-7) and determine day of the week (e.g. 1
for Sunday).
10. What is a loop? Write JavaScript codes to display fibonacci series upto 10th term (1 1
2 3 5...10th term).

III. Give long answer to the following questions: [8×2=16]


4. WAP to create a mark sheet using if structure and find the Grades based on the
following :
Marks Grade
M<100 and > 90 A+
M<90 and >=80 A
M<80 and > 70 B+
M<70 and >=60 B
M<60 and > 50 C+
M<50 and >=40 C
M<40 and > =30 D+
M<30 and >=20 D

5. Explain the types of array? Write a program to multiply two 2X2 arrays and display
the result.
6. Write a C program to input name, address and salary of a person and store it in a data
file "items.dat". Also open the file and display the contents.

126
Model Questions - 4
Subject : Computer Science
GRADE: XII (Management)

Full Marks: 50 (9 marks Obj + 41 Marks Sub) Time: 2 Hours

Group 'A'
I. Choose the best alternative: [1×9=9]

1. MS-Access is _______________.
a. Relational Database Management System.
b. Word Processing Software
c. Presentation Software
d. None of the above
2. Table is __________ MS-Access.
a. a Primary Element b. Filtered information c. Data Collection d. None
3. An illegal activity done through internet that harms other intellectual right is :
a. Murder. b. Suicide. c. Cyber Crime. d. Virus.
4. ____________can hold similar data.
a. array b. structure c. pointer d. variable

5. Which operator is used to compute the integer division?


a. / b. \ c. % d. None
6. Which loop is pre-test loop?
a. for loop b. while loop c. do..while loop d. None
7. In C, '7' is a?
a. Numeric constant b. Character constant c. Number d. None
8. Which of the following falls in control structure?
a. switch case b. loops c. if else d. All of them
9. Which of the following is valid for JavaScript
a. Var sname; b. Int sname; c. Char sname; d. None;
Group 'B'
II. Write short answers to the following questions: [5×5=25]
1. What is feasibility study? Explain its types.
2. Explain spiral model of System Development Life Cycle with a diagram.
3. What is AI? Explain the application areas of AI.
4. WAP to input number (from 1-7) and determine day of the week (e.g. 1 for Sunday).
5. Write JavaScript codes to return name of the students starting from A.
Group ' C'
III. Give long answer to the following questions: [8×2=16]
1. Using Switch case , Write a program JavaScript codes to serve the following
Book :
1. Computer Science
2. Account
3. Economics
4. Math’s
5. Social
2. Define an array. Write a program to add two 2X2 arrays.
3. Write a C program to add name, address and salary of a person into a data file
"students.dat". Also open the file to read the contents.

127
Model Questions - 5
Subject : Computer Science
GRADE: XII (Management)

Full Marks: 50 (9 marks Obj + 41 Marks Sub) Time: 2 Hours

Group 'A'
I. Choose the best alternative: [1×9=9]

1. C is a _______________.
a. Relational Database Management System.
b. Structured programming language
c. Presentation Software
d. None of the above
2. Query is __________ in MS-Access.
a. Object b. Required output c. Data Collection d. None
3. The component of multimedia is :
a. Speaker b. Sound card c. Microphone d. All
4. ____________can hold dissimilar data.
a. array b. structure c. pointer d. variable
5. OR logical operator in C is denoted by:
a. / b. || c. % d. None
6. For menu driven program, we use ________ control structure.
a. for b. while c. switch d. do
7. A character constant must inside ________.
a. ' ' b. " " c. { } d. ( )
8. Which data type holds numbers with decimal point?
a. int b. float c. char d. All of them
9. Which of the following displays a box in JavaScript?
a. document.write b. alert c. printf; d. None;
Group B'
II. Write short answers to the following questions: [5×5=25]
1. Explain the roles of a DBA.
2. Why is system maintenance necessary in SDLC?
3. What is Virtual Reality? Write any two applications of VR.
4. WAP to input number (from 1-12) and determine name of the month (e.g. 1 for
January).
5. Write JavaScript codes to find sum, product and difference of 56 and 72.
Group 'C'
III. Give long answer to the following questions: [8×2=16]
1. Describe ‘Sequence’, Selection’ and ‘Loop’ with flowchart. Write a program to check
if a number is odd or even. Define an array. Write a program to add two 2X2 arrays.
2. Write a program which asks the user to input ‘n’ terms of number and find out the
greatest and smallest number among those numbers.

128
Model Questions - 6
Subject : Computer Science
GRADE: XII (Management)

Full Marks: 50 (9 marks Obj + 41 Marks Sub) Time: 2 Hours

Group 'A'
I. Choose the best alternative: [1×9=9]
1. Library function pow() belongs to which header file?
a. stdio.h b. conio.h c. math.h d. string.h
2. Which of the following is/are the main goals of a distributed database?
a. Interconnection of database
b. Incremental growth
c. Reduced communication overhead
d. All of the above
3. An unauthorized user is a network _______ issue:
a. Performance b. Reliability c. Security d. All
4. What is the full form of SQL?.
a. Structured Query List
b. Simple Query Language
c. Structured Query Language
d. None
5. PHP is an example of ________ scripting language.
a. Server side b. Client side c. Browser side d. None
6. Using encapsulation data security is _________.
a. Not ensured b. Ensured to some extend c. Purely ensured d. Very
low
7. If the mode in file in C includes b after the initial letter, what does it indicate?
a. text file b. big text file c. binary file d. blueprint text

8. Library function getch() belongs to which header file?


a. math.h b. string.h c. conio.h d. ctype.h
9. Which of the following keyword is used for creating a function in JavaScript?
a. Void b. Int c. Main d. Function
Group 'B'
II. Write short answers to the following questions: [5×5=25]
1. What is a primary key? What are the features of good primary keys?
2. What are documentation techniques? Explain with examples.
3. What is cloud computing? What are its components?
4. Describe the different mode of file handling concept in C.
5. Write JavaScript codes to find sum, product and difference of 56 and 72.
Group 'C'
III. Give long answer to the following questions: [8×2=16]
1. Describe fprintf and fscanf file handling functions. Write a program which writes
“welcome to Nepal” in a file.
2. Write a function to input two numbers and display their sum when the user click
on 'ADD' button in JavaScript.

129
Model Questions - 7
Subject : Computer Science
GRADE: XII (Management)

Full Marks: 50 (9 marks Obj + 41 Marks Sub) Time: 2 Hours

Group 'A'
I. Choose the best alternative: [1×9=9]
1. Who carries out the analysis phase?
a. Programmer b. System Analyst c. Client d. None
2. Decision tree is a tool to :
a. Design System b. Test The system
c. Selling the system d. None of the above
3. ________ is message sending through electronic medium.
a. Internet b. Email c. Post d. Hardcopy.
4. One- Dimensional array has ___ row or column.
a. 2 b. 1 c. 4 d. 5
5. To use the strlen() function, which header file should be included?
a. conio b. stdio c. string d. math
6. Relational Operators are :
a. Comparison of data b. addition of variables
c. Logical treatment d. All of them
7. Which operator is logical AND operator?
a. || b. ! c. && d. None
8. Which loop is post-test loop?
a. while loop b. do..while loop c. for loop d. None
9. In C, int data type has memory allocation of :
a. 4 bytes b. 2 bytes c. 8 Bytes d.1 bytes
Group 'B'
II. Write short answers to the following questions: [5×5=25]
1. Who is a System Analyst? List out the roles of System Analyst.
2. Explain waterfall model of System Development Life Cycle with a diagram.
3. What is computer crime? Explain plagiarism.
4. Explain JavaScript if structure with the help of example program.
5. What is a loop? Write JavaScript codes to display fibonacci series upto 10th term
(1 1 2 3 5...10th term).
Group 'C'
III. Give long answer to the following questions: [8×2=16]
1. WAP to create a mark sheet using if structure and find the Grades based on the
following :
Marks Grade
M<100 and > 90 A+
M<90 and >=80 A
M<80 and > 70 B+
M<70 and >=60 B
M<60 and > 50 C+
M<50 and >=40 C
M<40 and > =30 D+
M<30 and >=20 D
2. Explain the types of array? Write a program to multiply two 2X2 arrays and display
the result.

130
Model Questions - 8
Subject : Computer Science
GRADE: XII (Management)

Full Marks: 50 (9 marks Obj + 41 Marks Sub) Time: 2 Hours


Group 'A'
I. Choose the best alternative: [1×9=9]
1. MS-Access is _______________.
a. Relational Database Management System. b. Word Processing Software
c. Presentation Software d. None of the above
2. Table is __________ MS-Access.
a. a Primary Element b. Filtered information
c. Data Collection d. None
3. An illegal activity done through internet that harms other intellectual right is :
a. Murder. b. Suicide. c. Cyber Crime. d. Virus.
4. ____________can hold similar data.
a. array b. structure c. pointer d. variable

5. Which operator is used to compute the integer division?


a. / b. \ c. % d. None
6. Which loop is pre-test loop?
a. for loop b. while loop c. do..while loop d. None
7. In C, '7' is a?
a. Numeric constant b. Character constant c. Number d. None
8. Which of the following falls in control structure?
a. switch case b. loops c. if else d. All of them
9. Which of the following is valid for JavaScript
a. Var sname; b. Int sname; c. Char sname; d. None;
Group' B'
II. Write short answers to the following questions: [5×5=25]
1. What is feasibility study? Explain its types.
2. Explain spiral model of System Development Life Cycle with a diagram.
3. WAP to determine whether an input number is exactly divisible by 7 or not.
4. Write JavaScript codes to display odd numbers from 1-59.
5. Write the syntax of do loop. Write JavaScript codes upto 10th term (7, 10, 13...10th
term) using do loops.
Group ' C'

III. Give long answer to the following questions: [8×2=16]


1. Using Switch case , Write a program JavaScript codes to serve the following
Book :
1. Computer Science
2. Account
3. Economics
4. Math’s]
5. Social
6. English.
2. Define an array. Write a program to add two 2X2 arrays.
OR
Write a C program to add name, address and salary of a person into a data file
"students.dat". Also open the file to read the contents.

131

You might also like