Topics

Search This Blog

Thursday, March 20, 2025

Terminology of E-Commerce

Important terminologies:

Payment Gateway: A service that processes online transactions securely.

Shopping Cart: A feature on e-commerce sites where customers save items they intend to buy.

Digital Wallet: An electronic method of storing payment details.

E-Commerce: Method of buying, selling and exchanging goods through electronic media.

M-Commerce: Mobile Commerce is a method of buying, selling and exchanging goods through handheld device like smartphone and tablets.


Terminology of Contemporary Technology

Important terminologies:

  • Firewall: A security system that monitors and controls network traffic.
  • Malware: Harmful software like viruses, worms, and trojans.
  • Encryption: Converting data into a coded format to prevent unauthorized access.
  • Phishing: Fraudulent attempts to obtain sensitive information by pretending to be a trustworthy source.
  • Authentication: Verifying the identity of a user or system. 

Terminology of Ethical and Social Issues

Important terminologies:

  • Cyberbullying: Harassing someone online through messages or social media.
  • Piracy: Unauthorized use or reproduction of software, music, or movies.
  • Privacy: The right to control personal information and its use.
  • Plagiarism: Using someone else's work without proper acknowledgment.
  • Digital Divide: The gap between those with and without access to technology.


Terminology of Computer Network and Telecommunication

This section explores the basics of how computers connect and share information through networks. It includes concepts like the internet, LAN, and WAN, as well as the role of telecommunication in enabling global communication.

Important terminologies:

  • LAN (Local Area Network): A network confined to a limited area, such as a school or office.
  • WAN (Wide Area Network): A network spanning large geographic areas, connecting multiple LANs.
  • IP Address: A unique identifier assigned to devices connected to a network.
  • Router: A device that directs data between networks.
  • Bandwidth: The amount of data that can be transmitted over a network in a given time.
  • Packet Switching: A method of data transfer where information is divided into packets.

Computer Science Grade 10 Chapters

 

Grade 10 Chapters


Subject: Computer Science

 Unit 1.1             Networking and Telecommunication

 Unit 1.2             Ethical and Social Issues in ICT

 Unit 1.3             Computer Security

 Unit 1.4             E-commerce

 Unit 1.5             Contemporary Technology

 Unit 1.6             Number System

 Unit 2.1             Database Management System

 Unit 3.1             Programming in QBASIC

 Unit 3.2             Modular Programming

 Unit 3.3             File Handling in QBASIC

 Unit 4.1            Structured Programing in C

०००



Monday, March 17, 2025

PRACTICE QUESTIONS: 'DEBUG'

 PRACTICE QUESTIONS: 'DEBUG'

Re-write the following programs after correcting the bugs: 

Question no. 1 

CLS 

OPEN "Marks.dat" FOR INPUT AS #1 

DO WHILE EOF(1) 

    INPUT #2, Name$, Subject$, Marks 

    IF Marks > 80 THEN 

    PRINT Name$ 

LOOP 

CLOSE 

END 

 

Question no. 2 

CLS 

OPEN "Student.dat" FOR INPUT #1 

WHILE NOT EOF(1) 

    INPUT ROLL, NAME$, CLASS 

    PRINT ROLL, NAME, CLASS 

LOOP 

CLOSE #1 

END 

 

Question no. 3 

CLS 

DISPLAY "Staff.dat" FOR APPEND AS #1 

INPUT "Enter name"; NAME$ 

INPUT "Enter post"; POST 

PRINT #1, NAME$, POST$ 

CLOSE 1 

END 


Question no. 4 

DECLARE SUB SQUARE(N) 

CLS 

INPUT "Enter a number"; N 

CALL SQUARE(N) 

END 

SUB SQUARE(N) 

SQR = N x N 

PRINT "Square is"; SQR 

END 

 

Question no. 5 

DECLARE SUB FACTORIAL(N) 

CLS 

INPUT "Enter a number"; N 

CALL FACTORIAL(A) 

END 

SUB FACTORIAL(N) 

F = 1 

FOR I = 1 TO N 

F = F x n 

NEXT 

PRINT "Factorial is"; F 

END 


Question no. 6 

DECLARE FUNCTION SQUARE(N) 

DECLARE SUB SQUAREROOT(N) 

CLS 

INPUT "Enter a number"; N 

PRINT "Square is"; SQUARE(N) 

CALL SQUAREROOT(N) 

FUNCTION SQUARE(N) 

SQUARE = N * 2 

END FUNCTION 

SUB SQUAREROOT(N) 

PRINT "Square root is"; SQUARE(N) 

END SUB 


Question no. 7 

DECLARE SUB SI(P, R, T) 

CLS 

REM "Enter Principal, Rate, and Time"; P, R, T 

CALL SUB SI(P, R, T) 

END 

SUB SI(P, R, T) 

SIMPLEINTEREST = (P * R * T) ÷ 100 

PRINT "Simple Interest is"; SIMPLEINTEREST 

END 


Questions no. 8 

REMARK to display Employee Records 

OPEN "Employee.dat" FOR OUTPUT AS #1 

WHILE NOT EOF(1) 

INPUT #1, ID, NAME$, SALARY$ 

PRINT ID, NAME$, SALARY 

LOOP 

CLOSE #1 

END 

 

Question no. 9 

OPEN "Employee.dat" FOR APPEND AS #1 

DO WHILE NOT EOF(1) 

    INPUT #1, ID, NAME$, SAL 

    PRINT "ID:"; ID; "Name:"; NAME$; "Salary:"; SALARY 

WEND 

CLOSE #2 

STOP 

 

Question no. 10 

REM to write Student Marks to a File 

OPEN "Marks.dat" FOR INPUT AS #1 

INPUT "Enter name": NAME$ 

INPUT "Enter marks"; MARKS 

WRITE NAME$, MARKS 

CLOSE 1 

END 

 

Question no. 11 

REM Calculate Factorial 

DECLARE SUB FACTORIAL(N) 

CLS 

READ "Enter a number"; N 

CALL FACTORIAL(N) 

END 

SUB FACTORIAL(N) 

F = 1 

FOR I = 1 TO N 

    F = F * 1 

NEXT I 

PRINT "Factorial is"; F 

FACTORIAL=F 

END 

 

Question no. 12 

REM Display Even Numbers Between 1 to 20 

DECLARE SUB EVEN NUMBERS() 

CLS 

CALL EVEN_NUMBERS 

END 

SUB EVEN_NUMBERS() 

FOR I = 1 TO 20 

    IF I MOD 0 = 2 THEN PRINT I 

NEXT  

END 

 

Question no. 13 

REM Calculate Cube of a Number 

DECLARE FUNCTION CUBE(N) 

CLS 

INPUT "Enter a number"; N 

R=CUBE 

PRINT "Cube is"; CUBE(R) 

END 

FUNCTION CUBE(N) 

CUBE = N * 3 

END  


Question no. 14  

REM Calculate Area of a Circle 

DECLARE FUNCTION AREA(R) 

CLS 

INPUT "Enter radius"; Radius 

PRINT "Area of circle is"; AREA(R) 

END 

FUNCTION AREA(R) 

ARE = 3.14 * R * 2 

FUNCTION 


Question no. 15 

REM Calculate Square and Square Root 

DECLARE FUNCTION SQUARE(N) 

DECLARE SUB SQUAREROOT(N) 

CLS 

INPUT "Enter a number"; N 

PRINT "Square is"; SQR(N) 

CALL SQUAREROOT(N) 

END 

FUNCTION SQUARE(N) 

SQR = N * 2 

END FUNCTION 

SUB SQUAREROOT 

PRINT "Square root is"; SQR(N) 

END SUB 


Question no. 16:  

REM Calculate Simple Interest Using Sub Procedure 

DECLARE SUB SI(P, R, T) 

CLS 

INPUT "Enter Principal, Rate, and Time"; P, R, T 

SI(P, R, T) 

END 

SUB SI(P, R, T) 

SIMPLEINTEREST = (P * R * T) / 100 

PRINT "Simple Interest is"; SI 

END

'COMBINED' Modular programming solutions

 Modular programming solutions


1. Program to calculate perimeter and area of a rectangle. Use sub procedure to calculate perimeter and function procedure to calculate area.

DECLARE SUB PERI (L, B)

DECLARE FUNCTION AREA (L, B)

CLS

INPUT "Enter length and breadth="; L, B

CALL PERI (L, B)

A = AREA (L, B)

PRINT "Area of the rectangle="; A

END

SUB PERI (L, B)

P = 2 * (L + B)

PRINT "Perimeter of the rectangle="; P

END SUB

FUNCTION AREA (L, B)

AREA = L * B

END FUNCTION


2.  Calculate Simple Interest (Sub) and Compound Interest (Function)

DECLARE SUB SI (P, R, T)

DECLARE FUNCTION CI (P, R, T)

CLS

INPUT "Enter Principal, Rate, and Time="; P, R, T

CALL SI (P, R, T)  

C = CI (P, R, T)   

PRINT "Compound Interest="; C

END

SUB SI (P, R, T)

SI = (P * R * T) / 100

PRINT "Simple Interest="; SI

END SUB

FUNCTION CI (P, R, T)

CI = P * (1 + R / 100) ^ T - P

END FUNCTION


3. Calculate Area (Sub) and Circumference (Function) of a Circle

DECLARE SUB AREA(R)

DECLARE FUNCTION CIRCUM(R)

CLS

INPUT "Enter Radius of Circle="; R

CALL AREA (R)   

C = CIRCUM (R) 

PRINT "Circumference of the circle="; C

END

SUB AREA (R)

A = 3.1416 * R * R

PRINT "Area of the circle="; A

END SUB

FUNCTION CIRCUM(R)

CIRCUM = 2 * 3.1416 * R

END FUNCTION


4. Calculate Fahrenheit (Sub) and Kelvin (Function) from Celsius

DECLARE SUB FAHRENHEIT(C)

DECLARE FUNCTION KELVIN(C)

CLS

INPUT "Enter Temperature in Celsius="; C

CALL FAHRENHEIT(C)  

K = KELVIN(C)       

PRINT "Temperature in Kelvin="; K

END

SUB FAHRENHEIT(C)

F = (C * 9 / 5) + 32

PRINT "Temperature in Fahrenheit="; F

END SUB

FUNCTION KELVIN(C)

KELVIN = C + 273.15

END FUNCTION


5. Calculate Square Root (Sub) and Cube Root (Function)

DECLARE SUB SQRT_NUM(N)

DECLARE FUNCTION CUBE_ROOT(N)

CLS

INPUT "Enter a Number="; N

CALL SQRT_NUM(N) 

C = CUBE_ROOT(N) 

PRINT "Cube Root="; C

END

 

SUB SQRT_NUM(N)

S = SQR(N)

PRINT "Square Root="; S

END SUB

 

FUNCTION CUBE_ROOT(N)

CUBE_ROOT = N ^ (1 / 3)

END FUNCTION


6. Calculate Square Root (Sub) and Cube Root (Function)

DECLARE SUB SMALL(A, B)

DECLARE FUNCTION LARGE(A, B)

CLS

INPUT "Enter two numbers: "; A, B

CALL SMALL(A, B)   

G = LARGE(A, B)    

PRINT "Greater number="; G

END

SUB SMALL(A, B)

IF A < B THEN

    PRINT "Smaller number="; A

ELSE

    PRINT "Smaller number="; B

END IF

END SUB

 

FUNCTION LARGE(A, B)

IF A > B THEN

    LARGE = A

ELSE

    LARGE = B

END IF

END FUNCTION

7.  Calculate multiply(Sub) and addition (Function)

DECLARE FUNCTION Add(a, b)

DECLARE SUB Mul(a,b)

s = Add(a,b)

PRINT "Enter two numbers:"; s

CALL Mul(r)

 

FUNCTION Add(a, b)

Ans = a + b

Ad=Ans

END FUNCTION

 

SUB Mul(a,b)

M=a*b

PRINT "The multiplication is "; M

END SUB

8. SUB PROCEDURE TO DISPLAY 2, 4, 5, 8, 10.

 DECLARE SUB PATTERN(N)

 CALL PATTERN

 END

 

SUB PATTERN

 A=2

 FOR I=1 TO 5

 PRINT A;

 A=A+2

 NEXT I

 END SUB

9. SUB PROGRAM TO CALCULATE AREA AND FUNCTION PROGRAM TO CALCULATE VOLUME OF A ROOM.

DECLARE SUB ARE(L, B)

DECLARE FUNCTION VOL(L, B, H)

CLS

INPUT "Enter length, breadth and height="; L, B, H

CALL ARE(L, B)

Vo = VOL(L, B, H)

PRINT "Volume="; Vo

END

 

SUB ARE(L, B)

AR = L * B

PRINT "Area of a room="; AR

END SUB

 

FUNCTION VOL(L, B, H)

VOL = L * B * H

END FUNCTION


Map of Nepal

 नेपालको विभिन्न भूगोलसँग सम्बन्धित नक्साहरू नेपालको नक्सा: नेपालको नक्सा: नेपालको नक्सा: नेपालको नक्सा: नेपालको नक्सा: नेपालको नक्सा:

Most viewed!