Thursday, February 12, 2026

SOLVED KOSHI PABSON SEE PRE-BOARD EXAMINATION – 2082

 

SOLVED KOSHI PABSON SEE PRE-BOARD EXAMINATION – 2082

Subject: Optional II Computer Science
Full Marks: 50

Group “A”

1. Answer the following questions in one sentence. [6×1=6]

a) What do you mean by foreign key?

Answer:
A foreign key is a field in one table that refers to the primary key of another table to establish a relationship between the two tables.


b) Define RDBMS.

Answer:
RDBMS (Relational Database Management System) is a database system that stores data in tables and manages relationships among them using keys.


c) Define VR.

Answer:
VR (Virtual Reality) is a computer-generated simulation of a three-dimensional environment that allows users to interact as if they are physically present.


d) What is a Global Variable?

Answer:
A global variable is a variable declared outside all functions or modules and can be accessed throughout the program.


e) Define digital payment.

Answer:
Digital payment is a method of transferring money electronically using digital devices such as mobile phones, computers, or online systems.


f) Define unary operator used in C language.

Answer:
A unary operator is an operator that operates on only one operand, such as increment (++), decrement (--).


2. Write appropriate technical term for the following: [2×1=2]

a) A protocol used for receiving emails from one server to another.

Answer: POP (Post Office  Protocol)


b) First computer network system.

Answer: ARPANET


3. Write the full form of the following: [2×1=2]

a) IMAP

Answer: Internet Message Access Protocol

b) SIM

Answer: Subscriber Identity Module


✅ Group “B”

4. Answer the following questions: [9×2=18]


a) What is computer network topology? Mention any two types.

Answer:
Computer network topology is the physical or logical arrangement of computers and devices in a network.
Two types are:

  1. Bus topology
  2. Star topology

b) What do you mean by cryptography? Why is it important?

Answer:
Cryptography is the technique of converting plain text into coded form to protect information from unauthorized access.
It is important because it ensures data security, confidentiality, and safe communication.


c) What is meant by the CIA triad? Define any one of them.

Answer:
The CIA triad stands for Confidentiality, Integrity, and Availability.

Confidentiality:
It ensures that information is accessible only to authorized users.


d) Differentiate between computerized and non-computerized databases.

Computerized Database

Non-Computerized Database

Data stored electronically

Data stored manually in files/registers

Fast processing and searching

Slow processing and searching

Easy backup and recovery

Difficult backup and recovery

More secure

Less secure


e) What is IoT? Enlist two application areas of AI.

Answer:
IoT (Internet of Things) is a network of physical devices connected to the internet to collect and exchange data.

Two application areas of AI:

  1. Robotics
  2. Expert systems

f) What is software and data security? Enlist any two measures to protect it.

Answer:
Software and data security refers to protecting software programs and information from unauthorized access, damage, or theft.

Two protective measures:

  1. Use antivirus and firewall
  2. Use strong passwords and access control

g) Define report in MS-Access. Enlist any two uses of the report.

Answer:
A report in MS-Access is a database object used to present and print data in a formatted manner.

Two uses:

  1. To print formatted data
  2. To summarize data using grouping and totals

h) What is filtering in the database? Write any two data types used in MS-Access.

Answer:
Filtering is the process of displaying only those records that meet specific criteria.

Two MS-Access data types:

  1. Text
  2. Number

i) Identify validation rule, query, input mask and validation text from the given statements.

  1. SELECT NAME FROM STUD_TABLE WHERE CLASS = 9;
  2. "Sorry, the maximum limit is 5000 a day, try again next day"
  3. > 6000
  4. (DD-MM-YY)

Answer:

  • Query: SELECT NAME FROM STUD_TABLE WHERE CLASS = 9;
  • Validation Text: "Sorry, the maximum limit is 5000 a day, try again next day"
  • Validation Rule: > 6000
  • Input Mask: (DD-MM-YY)

✅ GROUP “B”


5. Write down the output of the given program. (Work out with a dry-run table.) [2]

DECLARE FUNCTION PRS(A$)
CLS
A$ = "MAKE EASY"
PRINT PRS(A$)
END
 
FUNCTION PRS(A$)
FOR K = LEN(A$) TO 1 STEP -3
    B$ = MID$(A$, K, 1) + B$
NEXT K
PRS = B$
END FUNCTION

✅ Step 1: Understand the string

A$ = "MAKE EASY"

Count characters carefully (including space):

Position

Character

1

M

2

A

3

K

4

E

5

(space)

6

E

7

A

8

S

9

Y

So,

LEN(A$) = 9


✅ Step 2: Loop execution

Loop:

FOR K = 9 TO 1 STEP -3

Values of K:

9 → 6 → 3 → (next would be 0, stop)


✅ Step 3: Dry-Run Table

K

MID$(A$,K,1)

B$ = MID$ + B$

9

Y

Y

6

E

EY

3

K

KEY


✅ Final Value

B$ = "KEY"

So,

PRS = B$

✅ Final Output:

KEY

See?

 

6. Rewrite the given program after correcting the bugs. [2]

Given (Incorrect Program):

REM add some records in the data file "info.dat"

OPEN "REC.DAT" FOR OUTPUT AS #2

CLS

TOP:

INPUT "ENTER NAME, CLASS, SECTION"; NAMES, CLASS, SECTIONS

PRINT #2, NAMES, CLASS, SECTIONS

INPUT "ADD MORE RECORDS ? YES/NO"; CH

IF LCASE(CH$) = "yes" THEN GOTO TOP

CLOSE #2

END


✅ Corrected Program:

REM Add some records in the data file "info.dat"

OPEN "info.dat" FOR APPEND AS #2

CLS

TOP:

INPUT "ENTER NAME, CLASS, SECTION"; NAME$, CLASS, SECTION$

PRINT #2, NAME$, CLASS, SECTION$

INPUT "ADD MORE RECORDS? YES/NO"; CH$

IF LCASE$(CH$) = "yes" THEN GOTO TOP

CLOSE #2

END


7. Study the following program and answer the given questions: [2]

DECLARE FUNCTION ABC$(N$)

CLS

INPUT "ENTER ANY WORD"; W$

PRINT "THE RESULT STRING IS"; ABC$(W$)

END

 

FUNCTION ABCS(N$)

FOR K = 1 TO LEN(N$)

    PS$ = MID$(N$, K, 1)

    RS$ = PS$ + RS$

NEXT K

SHARED RS$

ABCS = RS$

END FUNCTION


a) Enlist actual and formal parameters used in the above program.

Answer:

  • Actual parameter: W$
  • Formal parameter: N$

b) What is the use of the SHARED keyword in the above program?

Answer:

The SHARED keyword is used to make a variable global so that it can be accessed by the main program and other procedures.


There.

✅ Group “C”

8. Calculate or convert: [4×1=4]

a) (B2)₁₆ = 10110010₂

b) (241)₁₀ = 361₈

c) (10101)₂ + (11)₂ − (1110)₂ = 1010₂

d) (101011)₂ ÷ (111)₂
Quotient = 110₂
Remainder = 1₂


9(a). Write a QBASIC program to calculate the Simple Interest of a given Principal, Rate and Time using a FUNCTION procedure and calculate the Total Amount using a SUB procedure. Display both the Simple Interest and the Total Amount. [4]

DECLARE FUNCTION SI (P, R, T)

DECLARE SUB SHOW (P, R, T)

 

CLS

INPUT "Enter Principal "; P

INPUT "Enter Rate "; R

INPUT "Enter Time "; T

CALL SHOW(P, R, T)

PRINT "Simple Interest = "; SI (P, R, T)

END

 

FUNCTION SI (P, R, T)

SI = (P * R * T) / 100

END FUNCTION

 

SUB SHOW (P, R, T)

A = ((P * R * T) / 100) + P

PRINT "Amount = "; A

END SUB


9(b). Write a QBASIC program to read records from “info.dat” and display only those employees whose salary is greater than 37000 and whose address starts with ‘D’ or ‘K’. [4]

 

CLS

OPEN "info.dat" FOR INPUT AS #1

 

WHILE NOT EOF(1)

    INPUT #1, N$, A$, S

    F$ = UCASE$(LEFT$(A$, 1))

    IF S > 37000 AND (F$ = "D" OR F$ = "K") THEN

        PRINT N$, A$, S

    END IF

WEND

 

CLOSE #1

END


10(a). Write a C program to check whether a given year is a leap year or not. [4]

 

#include <stdio.h>

 

int main() {

    int y;

    scanf("%d", &y);

 

    if ((y % 400 == 0) || (y % 4 == 0 && y % 100 != 0))

        printf("Leap Year");

    else

        printf("Not Leap Year");

 

    return 0;

}


OR

10(b). Write a C program to reverse a multi-digit integer number. [4]


✅ Answer:

#include <stdio.h>

 

int main() {

    int n, rev = 0, r;

    scanf("%d", &n);

 

    while (n != 0) {

        r = n % 10;

               rev = rev * 10 + r;

        n = n / 10;

    }

 

    printf("%d", rev);

    return 0;

}


 

Saturday, February 7, 2026

SOLVED PABSON KASKI SEE Preparatory Examination – 2082 Subject: Optional II (Computer Science)

 


PABSON KASKI SEE Preparatory Examination – 2082

Subject: Optional II (Computer Science)
Time: 2 Hours
Full Marks: 50

 

Group “A” (10×1 = 10 Marks)

 

1. Answer the following questions in one sentence: [6×1 = 6]

 

a) Name the topology having true point-to-point connections.
Ans: The topology having true point-to-point connections is Mesh topology.

 

b) Define online payment.
Ans: Online payment is an electronic method of paying money through the internet using digital services like cards, wallets, or bank transfer.

 

c) Which object of MS-Access is used to retrieve data from the table?
Ans: Query is used to retrieve specific data from a table based on defined criteria.

 

d) Name the logical data type in MS-Access.
Ans: The logical data type in MS-Access is Yes/No.

 

e) What is the function of FILES statement?
Ans: The FILES statement is used to display the list of files and sub-directories in the current directory.

 

f) List any two format specifier used in C language.
Ans: Two format specifiers are %d (integer) and %c (character).

 

2. Write appropriate technical term for the following: [2×1 = 2]

a) The website that search information for specified keywords in WWW. Search Engine
b) A protocol responsible for uploading and downloading files. FTP (File Transfer Protocol)

 

3. Write the full form of the following: [2×1 = 2]

a) PaaS = Platform as a Service
b) STP = Shielded Twisted Pair

 

Group “B” (12×2 = 24 Marks)

4. Answer the following questions: [9×2 = 18]

a) What is network transmission mode? Explain with example.

A network transmission mode refers to the direction and method of data flow between two devices in a communication network.

Types with Examples:

  1. Simplex Mode -Data flows in one direction only.
    Example: Keyboard sending data to a computer, television broadcast.
  2. Half-Duplex Mode - Data flows in both directions, but not at the same time.
    Example: Walkie-talkie communication.
  3. Full-Duplex Mode - Data flows in both directions simultaneously.
    Example: Telephone or video call communication.


b) Who is Digital Citizen? List types of footprint.

A digital citizen is a person who uses digital technologies such as the internet, computers, and mobile devices responsibly, safely, and ethically to communicate, learn, and participate in society.

Types of footprint:

Active Digital Footprint - Information that a user intentionally shares online, such as social media posts, comments, emails, and online form submissions.

Passive Digital Footprint - Information that is collected automatically without the user’s direct knowledge, such as browsing history, cookies, IP address, and location data.


c) What is 2F authentication? Explain with an example.

Two-Factor Authentication (2FA) is a security mechanism in which a user must provide two different types of authentication factors to verify their identity before gaining access to a system. It adds an extra layer of security beyond just a username and password.

Example: When a user logs into an email account, they first enter their password. Then, an OTP (One Time Password) is sent to the user’s registered mobile number. The user enters the OTP to complete the login process. This confirms the user’s identity using two factors.


d) What is E-commerce? Write any two types of e-commerce.
E-commerce (Electronic Commerce) refers to buying and selling goods or services using the internet.

Types of E-commerce (any two):

  1. B2C (Business to Consumer) - Transactions between a business and an individual customer.
    Example: Online shopping from Amazon or Flipkart.
  2. B2B (Business to Business) - Transactions between two businesses.
    Example: A wholesaler selling products to a retailer online.

 

e) Why is mobile computing necessary at present? Write any two reasons.
Mobile computing is necessary at present because it allows users to access information and services anytime and anywhere using mobile devices. Any two reasons are:

  1. Mobility and Convenience - Users can work, communicate, and access data while on the move without being tied to a fixed location.
  2. Real-time Access to Information - Mobile computing enables instant access to emails, online services, cloud data, and applications, which is essential in today’s fast-paced world.

 

f) What is RDBMS? Give any two examples.

An RDBMS is a type of database management system that stores data in the form of tables (relations) consisting of rows and columns, and uses keys to maintain relationships between tables.

Any two examples of RDBMS:

  1. MySQL
  2. Oracle


g) Differentiate between computerized and non-computerized databases.

Computerized Database

Non-Computerized Database

Data is stored and managed using computers and software.

Data is stored manually in registers, files, or paper records.

Fast data retrieval and processing.

Data retrieval is slow and time-consuming.

Requires less physical storage space.

Requires large physical storage space.

Easy to update, modify, and search data.

Difficult to update and search data.

More secure with passwords and access control.

Less secure and prone to loss or damage.

 

 

h) Why is report object used in MS-Access? Write any two reasons.

A report object in MS-Access is used to format, summarize, and present data from tables or queries in a structured and readable form.

Any two reasons:

  1. To present data in a formatted manner - Reports allow data to be displayed with headings, grouping, totals, and proper layout.
  2. To print data easily - Reports are mainly used for generating print-ready outputs such as invoices, summaries, and official records.


i) List any two major differences between form and table.

 

Form

Table

Used to enter, view, and edit data in a user-friendly way.

Used to store data in rows and columns.

Provides a customized layout with controls like text boxes and buttons.

Has a fixed structure with fields and records.

 

 

5. Write down the output of the given program. Show with dry run in table. [2]

DECLARE SUB OUT(A$)

CLS

A$="TECHNOLOGY"

CALL OUT (A$)

END

 

SUB OUT (A$)

T=1

FOR I=LEN (A$) TO 1 STEP-4

PRINT TAB (T); MID$(A$, T, I)

T=T+2

NEXT I

END SUB

 

Dry Run Table

Pass

I (Loop Var)

T (Start Pos)

MID$(A$, T, I)

Output

New T

1

10

1

"TECHNOLOGY" (Start 1, Len 10)

TECHNOLOGY

3

2

6

3

"CHNOLO" (Start 3, Len 6)

  CHNOLO

5

3

2

5

"NO" (Start 5, Len 2)

    NO

7

Output

TECHNOLOGY

     CHNOLO

           NO

 

 

6. Re-write the given program after correcting the bugs: [2]

REM Program to display all those records whose address is "KTM" and post is "MANAGER"

 

OPEN "Employee.dat" FOR OUTPUT AS #10

PRINT "NAME","ADDRESS","POST","SALARY"

WHILE NOT EOF(10)

WRITE #10,NS,ADS,POS,Sa#

IF UCASES(ADS)="KTM" AND UCASES(POS)="MANAGER" THEN

PRINT #10,NS,ADS,POS,Sa#

ENDIF

WEND

CLOSE #101

END

 

Debugged Program

REM Program to display records with address KTM and post MANAGER

OPEN "Employee.dat" FOR INPUT AS #10

CLS

PRINT "NAME", "ADDRESS", "POST", "SALARY"

WHILE NOT EOF(10)

    INPUT #10, N$, AD$, PO$, Sa#     

    IF UCASE$(AD$) = "KTM" AND UCASE$(PO$) = "MANAGER" THEN

        PRINT N$, AD$, PO$, Sa#      

    END IF                           

WEND

CLOSE #10                             

END

 

 

7. Study the following program and answer the given questions: [2×1 = 2]

DECLARE FUNCTION PAB(N)

CLS

INPUT "ENTER A MULTI-DIGIT NUMBER";N

X=PAB(N)

WHILE X<>0

D=X MOD 10

IF D MOD 2=0 THEN S=S+D

X=X\10

WEND

PRINT "RESULT =";S

END

 

FUNCTION PAB(N)

DO WHILE N<>0

R=N MOD 10

V=V*10+R

N=N\10

LOOP

PAB=V

 

END FUNCTION

a) Find the result when user inputs 12345.

The result when user inputs 12345 is 6.


b) List two local variables used in the above program.

D and X (used in the main module), or R and V (used in the FUNCTION module).

 

Group “C” (4×4 = 16 Marks)

8. Convert / calculate as per the instruction: [4×1 = 4]

i)  Answer: 10100₂


ii)
 Answer: 1111₂


iii)
into base 8 Answer: 712₈


iv)
into base 2 Answer: 100011000011₂

 

 

9.

a) Write a program in QBasic to find the area and volume of cuboid.
Use function routine to calculate area of cuboid and Sub procedure to calculate volume of cuboid.


DECLARE FUNCTION Area(l, b, h)

DECLARE SUB Volume(l, b, h)

CLS

INPUT "Enter Length, Breadth, Height: ", l, b, h

PRINT "Total Surface Area = "; Area(l, b, h)

CALL Volume(l, b, h)

END

 

FUNCTION Area(l, b, h)

    Area = 2 * (l * b + b * h + l * h)

END FUNCTION

 

SUB Volume(l, b, h)

    V = l * b * h

    PRINT "Volume = "; V

END SUB

 

b) A sequential data file named “PABSON.DAT” contains few records of students like SName$ (Student’s Name), SAdd$ (Student’s Address) and Dob$ (Date of Birth). Write a program to read all the records from the file and print records of only whose name starts with “P” alphabet.

 

OPEN "PABSON.DAT" FOR INPUT AS #1

CLS

PRINT "Student Name", "Address", "Date of Birth"

WHILE NOT EOF(1)

    INPUT #1, SName$, SAdd$, Dob$

    IF UCASE$(LEFT$(SName$, 1)) = "P" THEN

        PRINT SName$, SAdd$, Dob$

    END IF

WEND

CLOSE #1

END

 

 

 

 

 

10. Write a program in ‘C’ language to input principle, rate and time and calculate simple interest as well as amount. [4]



#include <stdio.h>

 

int main() {

    float p, t, r, si, amt;

    printf("Enter Principle: ");

    scanf("%f", &p);

    printf("enter time: ");

    scanf("%f", &t);

    printf("enter rate: ");

    scanf("%f", &r);

   

    si = (p * t * r) / 100;

    amt = p + si;

    printf("simple interest = %.2f\n", si);

    printf("total amount = %.2f", amt);

    return 0;

}

 

OR

Write a program in ‘C’ language to print the given series: 1 4 7 10 13 …… 10ᵗʰ term

 

#include <stdio.h>

int main() {

    int i, t = 1;

    for(i = 1; i <= 10; i++) {

        printf("%d ", t);

        t = t + 3;

    }

    return 0;

}