Monday, January 12, 2026

C PROGRAMMING - FINAL REVISION - 4 MARKS SEE COMPUTER SCIENCE 2082

 C PROGRAMMING - FINAL REVISION - 4 MARKS

SEE COMPUTER SCIENCE 2082


Full C Programming Questions

1.     Write a C program to find the average of any two numbers entered by the user.

2.     Write a C program that asks the user to enter two numbers and then displays their sum and product.

3.     Write a C program to calculate Simple Interest where the user inputs Principal (P), Rate (R) and Time (T). (Formula: SI = P × R × T / 100)

4.     Write a C program to input length, breadth, and height and display the volume of a box.
(Formula: Volume = l × b × h)

5.     Write a C program that asks the user for a number and checks whether it is odd or even.

6.     Write a C program that asks the user for an integer and checks whether it is multiple of 7 or not.

7.     Write a C program to input a number and check whether it is fully divisible by 5 and 8 or not.

8.     Write a C program to test whether a given number is exactly divisible by 13 or not.

9.     Write a C program to input a number and check whether it is positive or negative.

10. Write a C program that asks the user for a number and checks whether it is negative, positive, or zero.

11. Write a C program that asks the user to enter any two numbers and displays the greatest among them.

12. Write a C program to read any three integer numbers from the keyboard and find the smallest number.

13. Write a C program to read two numbers and display the smaller one.

14. Write a C program to check whether a student is pass or fail, when the pass mark is 45.

15. Write a C program to input the lengths of three rods and display whether a triangle can be formed using them or not. (Condition: a + b > c, a + c > b, b + c > a)

16. Write a C program that asks the values of three sides of a triangle and checks whether the triangle is scalene or not. (Scalene: all sides different)

17.  Write a C program to display the series 1, 2, 3, 4, … up to 10 terms and also find their sum.

18. Write a C program to display the series 2, 4, 6, 8, … up to the 10th term.

19. Write a C program to display the series 1, 4, 9, 16, … up to 10 terms and also find their sum.

20. Write a C program to display the first 10 odd numbers.

21. Write a C program to find the sum of the first 20 even numbers.

22. Write a C program to print the first 10 natural numbers.

23. Write a C program to find the sum of the first 10 natural numbers.

24. Write a C program to find the sum of odd numbers from 80 to 90.

25. Write a C program to display the series 40, 41, 42, 43, … up to 10 terms and also find their sum.

26. Write a C program to display the odd numbers from 1000 to 500 and also find their sum.

 


QBASIC PROGRAMMING FILE HANDLING - FINAL REVISION - 4 MARKS SEE COMPUTER SCIENCE 2082

 QBASIC PROGRAMMING FILE HANDLING - FINAL REVISION - 4 MARKS

SEE COMPUTER SCIENCE 2082



1.     WAP to create a sequential data file “STUDENT.DAT” to store the name of 10 students and the marks obtained in four different subjects.

2.     WAP to store Roll Number, Name, Class, and Address of five students in a sequential data file.

3.     WAP to store records containing Book Number, Book Name, and Writer’s Name in a sequential data file called “LIBRARY.DAT”.

4.     WAP to create a sequential data file “EMPLOYEE.DAT” to store employee’s name, address, age, gender, and salary.

5.     WAP to input student’s name, class, and marks secured in three subjects, store the data in a sequential data file “RESULT.DAT” along with total marks, and make provision to enter multiple records.

6.     WAP to open a data file “NEW.DAT” that contains name, address, phone number, and salary, and allow the user to add new records to the file.

7.     A sequential data file called “STUDENT.DAT” stores student’s name, class, and address.
WAP to append new student records to the existing file without deleting the previous records of 15 students.

8.     A sequential data file called “EMP.DAT” contains employee’s name, post, and salary.
WAP to add new employee records to the file.

9.     A sequential data file called “STUDENT.DAT” stores students’ name, class, section, and address.
WAP to print all the records of the students.

10. A sequential data file called “MARKS.DAT” contains Roll Number, Name, English, Nepali, and Maths. WAP to display all the contents of the file.

11. A sequential data file called “RECORD.DAT” stores name, address, age, and salary. WAP to display only those records whose age is greater than 26.

12. Employee’s name, address, gender, and salary are stored in “EMP.DAT”. WAP to display records of employees whose salary exceeds 60,000.

13. A data file “SALARY.DAT” contains employee’s name, post, and salary. WAP to display records of employees whose salary is greater than 15,000 and less than 40,000.

14. A sequential data file called “RECORD.DAT” stores Roll No., Name, Gender, English, Nepali, Maths, and Computer. WAP to display records of students whose marks in English is more than 40.

15. A sequential data file called “RECORD.TXT” stores Roll No., Name, Gender, English, Nepali, Maths, and Computer. WAP to display records of students whose gender is “F” and who have obtained more than 90 marks in Computer.

16. A sequential data file called “STUDENT.TXT” stores name, class, address, age, and gender.
WAP to display records of students whose class is 10 and gender is male.

17. A data file “STAFF.DAT” stores records containing EmpID, name, address, post, and salary.
WAP to display records of employees whose address is Nepal and whose salary is more than 40,000.

18. WAP to read data from the file “EMPINFO.TXT” and display Name, EmpID, and Post of employees whose post is Clerk.

19. A sequential data file called “MARKS.DAT” stores student’s name, English, Nepali, and Maths marks.WAP to display records of students who have obtained more than 35 marks in all subjects.

20. A sequential data file called “DATA.DAT” stores item name, quantity, and rate. WAP to display all records along with the total amount.

21. A data file “LIB.TXT” consists of book’s name, author’s name, and price. WAP to count and display the total number of records present in the file.

22. A sequential data file “EMP.DAT” contains name, post, and salary of employees. WAP to display all employee records along with the tax amount, where tax is 15% of salary.

23. A sequential data file “DETAIL.DAT” contains name, age, and mobile number of some persons.
WAP to display the names of persons eligible to cast vote (age must be 18 or above).

24. 41. A sequential data file “LIST.DAT” stores item name, quantity, and rate. WAP to update all records by increasing the rate by 10%.

25. 42. A sequential data file “RECORD.DAT” contains name, address, and salary of employees. WAP to display records of employees whose salary is more than 37,000 and whose name ends with “DHA”.

 

Sunday, January 11, 2026

MODULAR PROGRAMMING - FINAL REVISION - 4 MARKS SEE COMPUTER SCIENCE 2082

 MODULAR PROGRAMMING - FINAL REVISION - 4 MARKS

SEE COMPUTER SCIENCE 2082



1.     Write a program in QBASIC that asks the user to enter the radius of a circle and calculates its area using a FUNCTION and circumference using a SUB procedure. [A = Ï€r², C = 2Ï€r]

2.     Write a program in QBASIC that asks the user to enter the radius of a circle and calculates its area using a user-defined FUNCTION First(r) and circumference using a SUB procedure Second(r). [A = Ï€r², C = 2Ï€r]

3.     Write a program in QBASIC that asks the user to enter the length and breadth of a room and calculates its area using a FUNCTION and perimeter using a SUB procedure. [A = L × B, P = 2(L + B) ]

4.     Write a program in QBASIC that asks the user to enter the length, breadth and height of a room and calculates its area using a FUNCTION and volume using a SUB procedure.[A = L × B, V = L × B × H]

5.     Write a program in QBASIC that asks the user to enter the length, breadth and height of a room and calculates its volume using a FUNCTION and area of four walls using a SUB procedure.[V = L × B × H, A = 2H(L + B) ]

6.     Write a program in QBASIC that asks the user to enter the radius and height of a cylinder and calculates its volume using a FUNCTION and curved surface area using a SUB procedure.[V = Ï€r²h, C = 2Ï€rh]

7.     Write a program in QBASIC that asks the user to enter the radius and height of a cylinder and calculates its total surface area using a FUNCTION and volume using a SUB procedure.[TSA = 2Ï€r(r + h), V = Ï€r²h[

8.     Write a program in QBASIC that asks the user to enter the radius of a circle and calculates the volume of a cylinder using a FUNCTION and circumference of the circle using a SUB procedure.[V = Ï€r²h, C = 2Ï€r]

9.     Write a program in QBASIC that asks the user to enter the radius of a hemisphere and calculates its volume using a FUNCTION and total surface area using a SUB procedure.[V = (2/3)Ï€r³, TSA = 3Ï€r²]

10.  Write a program in QBASIC that asks the user to enter the radius of a sphere and calculates its volume using a FUNCTION and total surface area using a SUB procedure. [V = (4/3)Ï€r³, TSA = 4Ï€r²]

11.  Write a program in QBASIC that asks the user to enter principal, time and rate of interest and calculates simple interest using a SUB procedure and amount using a FUNCTION procedure.

[SI = (P × T × R) / 100, A = P + SI]

12.  Write a program in QBASIC that asks the user to enter three numbers and displays the greatest number using a FUNCTION and smallest number using a SUB procedure.

13.  Write a program in QBASIC that asks the user to enter two numbers and finds the remainder using a SUB procedure and product using a FUNCTION procedure.

14.  Write a program in QBASIC that calculates the area of a rectangle using a user-defined FUNCTION and the area of a circle using a SUB procedure.[Area of rectangle = LxB , Area of circle = Ï€r²]

15.  Write a program in QBASIC that asks the user to enter the three sides of a triangle and calculates its area using a FUNCTION and perimeter using a SUB procedure. [P=a+b+c, Area=

16.  Write a program in QBASIC that calculates the area of four walls using a FUNCTION and the area of a rectangle using a SUB procedure. .[Area of rectangle = LxB , Area of 4 walls = 2H(L + B)]

17.  Write a program in QBASIC that asks the user to enter any three different numbers and finds their product using a user-defined FUNCTION PROD() and average using a SUB procedure AVG().

18.  Write a program in QBASIC that asks the user to enter any number and displays its cube using a SUB procedure and square root using a FUNCTION.


Saturday, January 10, 2026

Cyber Security and Digital Citizenship Grade 9 COMPUTER SCIENCE 2082

 Grade 9 COMPUTER SCIENCE 2082

Cyber Security and Digital Citizenship
6.1 Concepts of Cybersecurity
6.2 Concept of Cybercrime
6.3 Prevention methods for cyber crime
6.4 Safe web browsing techniques
6.5 Concept of Digital Citizen
6.6 Concept of Netiquette and online behaviors



















6.7 Concept of digital footprint and privacy in online

Sunday, January 4, 2026

DOWNLOAD COMPLETE SEE COMPUTER SCIENCE MANUAL - GRADE IX - 2082

 COMPLETE SEE COMPUTER SCIENCE MANUAL - GRADE IX - 2082 

DOWNLOAD PDF




1 Computer System [11 Marks] -3 MCQ(K, A, HA), 2 SQ(U,A), 1 LQ(K) 

2 Number System [4 Marks] - 2 SQ (U, A) 

3 Block Programming [5 Marks] - 1 MCQ(K), 1 LQ(U) 

4 Web Technology [8 Marks] - 2 MCQ(U,A), 1 SQ(A), 1 LQ(HA) 

5 Internet and social media [5 Marks] - 1 MCQ(K), 2 SQ(U, HA) 

6 Cyber Security and Digital Citizenship [5 Marks] - 1 MCQ(HA), 1 LQ(U) 

7 Programming Concept (python) [12 Marks] - 2 MCQ(K, A), 3 SQ(K, A, HA), 1 LQ(A) 

Total 50 Marks 

Time 2 hrs Add 

Prepared By: Deepak Shrestha A

 Knowledge(K) - 20% and Higher Ability(HA) - 20% 

 Understanding (U) - 30% , Application(A) - 30% 

Saturday, January 3, 2026

2. Number System

2.1 Concept of Number System

 DOWNLOAD PDF LINK



 2.1 Concept of Number System: 

Definition of Number systems, Application of Number system conversion 

 2.2 Binary Calculation: Addition, Subtraction

 2.3 Number Conversion 

 2.3.1 Decimal to Binary, Octal, Hexadecimal. 

 2.3.2 Binary, Octal, Hexadecimal to Decimal 

 2.3.3 Binary to Hexadecimal and vice versa , Binary to octal and vice versa






The concept of numbers developed early in human history when people used fingers, sticks, pebbles, knots of rope, and symbols to count objects and perform simple calculations like addition and subtraction. As human needs increased, different calculating methods and devices were invented. Today, numbers are used in daily life for various purposes such as counting, measuring, and calculating.

 

A number system is a method of writing numbers using a specific set of symbols and rules. Different number systems use different symbols and follow different rules for representing numbers and performing calculations.

 

For example, the decimal number system is the most commonly used number system in daily life. It consists of 10 symbols (0 to 9). Using these symbols, we can represent any number. Due to its simplicity and ease of understanding, the decimal number system is widely used around the world.

 

a) What is a digit? What is a computer word?

A digit is a single symbol used to represent a number in a number system, such as 0–9 in the decimal system.
A computer word is a fixed-sized group of bits that a computer processes as a single unit, usually representing data or instructions.

 

b) Define the base or radix of the number system.

The base or radix of a number system is the total number of unique digits or symbols used in that system.
For example, the decimal number system has base 10, while the binary number system has base 2.

 

c) Which language is used by computer systems, smartphones, and tablets?

Computer systems, smartphones, and tablets use binary language, which consists of only two digits: 0 and 1.

 

Types of Number Systems (Definition with Example)

 

Decimal Number System:
The decimal number system is a number system that uses 10 digits (0–9) and has a base of 10. It is commonly used in daily life.
Example: 456₁₀

 

Binary Number System:
The binary number system is a number system that uses two digits (0 and 1) and has a base of 2. It is used by computers and digital devices.
Example: 1011₂

 

Octal Number System:
The octal number system is a number system that uses 8 digits (0–7) and has a base of 8. It is used as a compact form of binary numbers.
Example: 157₈

Hexadecimal Number System:
The hexadecimal number system is a number system that uses 16 symbols (0–9 and A–F) and has a base of 16. It is widely used in computer programming.
Example: 2F₁₆

 

Application of Number System Conversion

 

Number system conversion has important applications in computer science and digital technology. Since computers use the binary number system to process data, it is necessary to convert numbers between binary, decimal, octal, and hexadecimal systems.

 

In digital logic design, electronic circuits and components work using binary and hexadecimal values, making number system conversion essential. In computer networking, IP addresses are often represented in dotted-decimal or hexadecimal form, so conversion helps in understanding and configuring networks.

 

Number system conversion is also widely used in fields such as cryptography, computer graphics, and signal processing to represent and manage data efficiently. Therefore, understanding number system conversion is crucial for anyone working with digital devices and computer systems.

 

2.2 Binary Calculation

Binary calculation refers to performing arithmetic operations using the binary number system, which consists of only two digits: 0 and 1. Since computers work internally using binary numbers, binary calculations are essential in computer science.

 

There are four main types of binary calculation:

i. Binary Addition
ii. Binary Subtraction
iii. Binary Multiplication
iv. Binary Division

 

Binary Addition

Binary numbers are added in a similar way to decimal numbers, but using only the digits 0 and 1.

Rules of Binary Addition

A

B

A + B

0

0

0

0

1

1

1

0

1

1

1

10 (0 with carry 1)

 

Steps of Binary Addition

Step 1: Align the binary numbers properly, just like decimal addition.
Step 2: Start adding from the rightmost bit.
Step 3: Add the digits using the rules of binary addition.
Step 4: Carry the extra bit if the result is 10.
Step 5: Repeat the process until all columns are added.

Example of Binary Addition

   1100

 + 0101

 --------

  10001

Hence, 1100₂ + 0101₂ = 10001₂

 

Binary Subtraction

Binary subtraction is also similar to decimal subtraction and follows specific rules using borrowing when needed.

 

Rules of Binary Subtraction

 

A

B

A − B

0

0

0

1

0

1

1

1

0

0

1

1 (with borrow)

 

Example of Binary Subtraction

   10111

 - 00101

 --------

   10010

Hence, 10111₂ − 00101₂ = 10010₂

 

Binary Multiplication

Binary multiplication is simpler than decimal multiplication because it involves only 0 and 1.

 

Rules of Binary Multiplication

A

B

A × B

0

0

0

0

1

0

1

0

0

1

1

1

 

Steps of Binary Multiplication

  1. Write the numbers properly aligned.
  2. Multiply each digit of the multiplier with the multiplicand.
  3. Shift left for each next digit (like decimal multiplication).
  4. Add all partial products using binary addition.

 

 

 

 

Example of Binary Multiplication

    101

 ×   11

 -------

    101

 + 1010

 -------

   1111

Hence, 101₂ × 11₂ = 1111₂

 

Binary Division

Binary division is similar to decimal division but is performed using binary digits 0 and 1.

Steps of Binary Division

  1. Compare the divisor with the leftmost bits of the dividend.
  2. If the divisor is smaller or equal, subtract it and write 1 in the quotient.
  3. If smaller, write 0 and bring down the next bit.
  4. Repeat until all bits are processed.

 

Example of Binary Division

1010 ÷ 10 = 101

Hence, 1010₂ ÷ 10₂ = 101₂

 

Exam Practice Numericals (With Carry & Borrow)

A. Binary Addition (With Carry)

   1011

 + 1101

 --------

  11000

Answer: 1011₂ + 1101₂ = 11000₂

 

B. Binary Subtraction (With Borrow)

   10010

 - 00111

 --------

   01011

Answer: 10010₂ − 00111₂ = 01011₂

 

C. Binary Multiplication (Practice)

   110

 ×  10

 ------

  1100

Answer: 110₂ × 10₂ = 1100₂

 

 

D. Binary Division (Practice)

1100 ÷ 11 = 100

Answer: 1100₂ ÷ 11₂ = 100₂

 

2.3 Number Conversion

People commonly use the decimal number system in daily life, whereas computers use binary, octal, and hexadecimal number systems for processing information. Since humans and computers use different number systems, number system conversion is required to convert numbers from one system to another so that both humans and machines can understand them.

There are different methods to convert numbers between number systems.

 

A. Decimal to Binary Conversion

Steps:

  1. Divide the given decimal number by 2 and write the remainder.
  2. Divide the quotient again by 2 and note the remainder.
  3. Repeat the process until the quotient becomes 0.
  4. Write the remainders from bottom to top.

Example:

Convert (13)₁₀ to binary.

2 | 13  → 1

2 |  6  → 0

2 |  3  → 1

2 |  1  → 1

    0

Therefore, (13)₁₀ = (1101)₂

 

B. Decimal to Octal Conversion

Steps:

  1. Divide the decimal number by 8 and write the remainder.
  2. Divide the quotient repeatedly by 8.
  3. Stop when the quotient becomes 0.
  4. Write the remainders from bottom to top.

Example:

Convert (345)₁₀ to octal.

8 | 345 → 1

8 |  43 → 3

8 |   5 → 5

    0

Therefore, (345)₁₀ = (531)₈

 

C. Decimal to Hexadecimal Conversion

Steps:

  1. Divide the decimal number by 16 and write the remainder.
  2. Divide the quotient repeatedly by 16.
  3. Replace remainders above 9 with A–F.
  4. Write the remainders from bottom to top.

Example:

Convert (88)₁₀ to hexadecimal.

16 | 88 → 8

16 |  5 → 5

     0

Therefore, (88)₁₀ = (58)₁₆

 

D. Binary to Decimal Conversion

Steps:

  1. Multiply each binary digit by its place value (powers of 2).
  2. Add all the products.

Example:

Convert (10011)₂ to decimal.



Therefore, (10011)₂ = (19)₁₀

 

E. Octal to Decimal Conversion

Steps:

  1. Multiply each digit by its place value (powers of 8).
  2. Add all the products.

Example:

Convert (157)₈ to decimal.



Therefore, (157)₈ = (111)₁₀

 

F. Hexadecimal to Decimal Conversion

Steps:

  1. Multiply each digit by its place value (powers of 16).
  2. Replace A–F with values 10–15.
  3. Add all the products.

Example:

Convert (1AC)₁₆ to decimal.



Therefore, (1AC)₁₆ = (428)₁₀

 

G. Binary to Hexadecimal Conversion

Steps:

  1. Group binary digits into sets of four from right to left.
  2. Convert each group into its hexadecimal equivalent.
  3. Write the result with base 16.

Example:

Convert (100000110101)₂ to hexadecimal.

1000 0011 0101

 8     3    5

Therefore, (100000110101)₂ = (835)₁₆

 

H. Hexadecimal to Binary Conversion

Steps:

  1. Write the 4-bit binary equivalent of each hexadecimal digit.
  2. Combine all binary groups.

Example:

Convert (9A3)₁₆ to binary.

9 → 1001

A → 1010

3 → 0011

Therefore, (9A3)₁₆ = (100110100011)₂

 

Binary to Octal and Octal to Binary Conversion

Clean steps + clear examples. You can write this exactly as it is.

 

Binary to Octal Conversion

Binary to octal conversion is done by grouping binary digits into sets of three (3) from right to left, because 8 = 2³.

Steps:

  1. Group the binary digits into sets of three from right to left.
  2. If needed, add leading zeros to complete a group.
  3. Convert each group into its octal equivalent.
  4. Write the result with base 8.

Example:

Convert (1101011)₂ to octal.

Binary number:   1 101 011

Add zero →      001 101 011

 

001 = 1

101 = 5

011 = 3

Therefore,



Octal to Binary Conversion

Octal to binary conversion is done by replacing each octal digit with its 3-bit binary equivalent.

Steps:

  1. Write the binary equivalent (3 bits) of each octal digit.
  2. Combine all binary groups.
  3. Write the result with base 2.

 

Example:

Convert (753)₈ to binary.

7 → 111

5 → 101

3 → 011

Therefore,



Quick Reference Table (Exam-friendly)

Octal

Binary

0

000

1

001

2

010

3

011

4

100

5

101

6

110

7

111

 

3. Calculate the following as indicated

a) Perform the following binary addition

i. (11110)₂ + (1001)₂
ii. (1011)₂ + (1001)₂
iii. (101011)₂ + (11011)₂
iv. (1010)₂ + (110)₂
v. (101001)₂ + (1110)₂
vi. (100001)₂ + (100011)₂
vii. (100111)₂ + (11010)₂
viii. (110001)₂ + (100101)₂

 

b) Perform the following binary subtraction

i. (1100)₂ − (1001)₂
ii. (1001)₂ − (110)₂
iii. (11101)₂ − (1010)₂
iv. (101100)₂ − (10011)₂
v. (11111)₂ − (10110)₂
vi. (110011)₂ − (10100)₂
vii. (100100)₂ − (1110)₂
viii. (1000001)₂ − (10101)₂

 

4. Convert the given numbers as indicated

a) Decimal to Binary Conversion

i. (56)₁₀
ii. (78)₁₀
iii. (123)₁₀
iv. (345)₁₀
v. (540)₁₀
vi. (572)₁₀
vii. (546)₁₀
viii. (1098)₁₀
ix. (2103)₁₀
x. (445)₁₀

 

b) Binary to Decimal Conversion

i. (1101)₂
ii. (1010)₂
iii. (10010)₂
iv. (10110)₂
v. (101001)₂
vi. (11100111)₂
vii. (111100)₂
viii. (10010011)₂
ix. (1011100)₂
x. (100110)₂

 

c) Decimal to Octal Conversion

i. (69)₁₀
ii. (216)₁₀
iii. (767)₁₀
iv. (79)₁₀
v. (443)₁₀
vi. (413)₁₀
vii. (765)₁₀
viii. (1334)₁₀
ix. (1825)₁₀
x. (2783)₁₀

 

d) Octal to Decimal Conversion

i. (124)₈
ii. (242)₈
iii. (333)₈
iv. (763)₈
v. (103)₈
vi. (451)₈
vii. (3401)₈
viii. (1045)₈
ix. (438)₈
x. (611)₈

 

e) Decimal to Hexadecimal Conversion

i. (55)₁₀
ii. (540)₁₀
iii. (225)₁₀
iv. (880)₁₀
v. (2046)₁₀
vi. (2024)₁₀
vii. (6678)₁₀

 

f) Hexadecimal to Decimal Conversion

i. (56)₁₆
ii. (67)₁₆
iii. (558)₁₆
iv. (B74)₁₆
v. (20D3)₁₆
vi. (DEF)₁₆
vii. (6E3)₁₆
viii. (63F)₁₆

 

g) Binary to Hexadecimal Conversion

i. (1000110)₂
ii. (11001)₂
iii. (1111000)₂
iv. (11110000111)₂
v. (101010110)₂
vi. (1110010110)₂
vii. (11011001)₂
viii. (1001100)₂

 

h) Hexadecimal to Binary Conversion

i. (D4)₁₆
ii. (643)₁₆
iii. (189)₁₆
iv. (2BF)₁₆
v. (A9F)₁₆
vi. (FACE)₁₆
vii. (FB4)₁₆
viii. (1B2)₁₆