Sunday, 25 August 2024

COMPUTER PABSON


PABSON COMPUTER SET SOLVED                                                                         F.M: 50

Group “A”                                                                                                                         TIME:2 HR

1. Ans the following questions in one sentence: 6*1=6

(a) What is bandwidth?                                                         

Ans: Bandwidth is the maximum rate of data transfer across a given path, typically measured in bits per second (bps).

(b) What is cyber bullying?

Ans: Cyber bullying is the use of electronic communication to bully a person, typically by sending messages of an intimidating or threatening nature, often through social media, emails, or text messages.

 

(c)What is AI?

Ans: AI, or Artificial Intelligence, is the simulation of human intelligence processes by machines, especially computer systems, which include learning, reasoning, and self-correction.

 

(d) What is the storage size of memo and text data type in MS Access?

Ans: In MS Access, the storage size of the Memo data type is up to 1 GB, and the Text data type can store up to 255 characters.

 

(e) What is a local variable?

Ans: A local variable is a variable that is declared within a function or block and is accessible only within that function or block, ensuring that its scope is limited to that specific area of the code.

 

(f) What is an operator in C language?

Ans: An operator in C language is a symbol that tells the compiler to perform specific mathematical or logical functions, such as addition (+), subtraction (-), or logical AND (&&).

 

2. Write appropriate technical term for the following: 2X1=2

(a) Secret group of characters which helps to protect file from unauthorized person

Ans: Password

 

(b) A type of network in which every computer works as both client and server

Ans: Peer-to-peer network

 

 

 

3. Write the full form of the following: 2X1=2

(a) ADSL

Ans: Asymmetric Digital Subscriber Line

(b) TCP/IP

Ans: Transmission Control Protocol/Internet ProtocoL

4. Group “B”

Answer  the following questions: 9*2=18

(a) Differentiate between LAN and WAN

WAN (Wide Area Network): Covers large geographical areas, such as countries or continents.

 

 (Metropolitan Area Network): Covers a metropolitan area, typically a city or a large town.

 

Generally slower speeds and higher latency due to long distances

Higher speeds and lower latency due to smaller coverage area.

 

More complex due to scale and diversity of connections.

 

Less complex compared to WAN.

 

 

(b) Write any four commandments of computer ethics.

   Ans: Four commandments of computer ethics include:

1.     You should not not use a computer to harm other people.

2.     You should not not interfere with other people’s computer work.

3.     You should not not snoop around in other people’s computer files.

4.     You should not not use a computer to steal.

 

(c) What is e-commerce? List any two e-commerce companies in Nepal.

Ans: E-commerce is the buying and selling of goods and services over the internet. Two e-commerce companies in Nepal are Daraz and SastoDeal.

 

(d) What are the advantages of cloud computing?

Ans: Advantages of cloud computing include cost savings, as it reduces the need for physical hardware and maintenance; scalability, allowing businesses to easily adjust resources based on demand; and accessibility, enabling users to access data and applications from anywhere with an internet connection.

 

(e) What is VR? Mention its application areas.

Ans: VR, or Virtual Reality, is a simulated experience that can be similar to or completely different from the real world. Its application areas include gaming, where it provides immersive experiences; education, where it offers interactive learning environments; and medical training, where it allows for realistic simulations of surgical procedures.

 

 (f) What is DBMS? Give any two examples.

 Ans: DBMS, or Database Management System, is software designed to create, manage, and manipulate databases, ensuring data integrity and efficient data retrieval. It supports various operations like data insertion, updating, and querying. Examples include MySQL, Oracle.

 

(g) What is primary key? List any two advantages.

Ans: A primary key is a unique identifier for a record in a database table.

1.     Advantages include ensuring data integrity by preventing duplicate records.

2.     Enabling efficient data retrieval through indexing

(h) What is query?

Ans: In MS Access, a query is a tool used to retrieve specific data by specifying criteria. It allows users to filter, sort, and display data from one or more tables in a database.

(i) What is data sorting? Write its two advantages.

Ans: Data sorting in a database involves organizing data in a specific order based on one or more columns (fields) within a table. This can be done in ascending (A-Z or 0-9) or descending (Z-A or 9-0) order. Sorting helps in easier data retrieval, searching, and reporting by presenting data in a structured and logical sequence.

5. Write down the output of the given program : WITH DRY RUN TABLE [2]

DECLARE SUB DISPLAY(A)

  A=3

  CALL DISPLAY(A)

  END

 

  SUB DISPLAY(A)

  FOR X = 1 TO 6

  PRINT A;

  IF A MOD 2 = 0 THEN

  A = A / 2

  ELSE

  A = ( A * 3 ) + 1

  END IF

  NEXT X

  END SUB

Iteration (X)

Value of A

Printed Value

Calculation

New Value of A

1

3

3

(3 * 3) + 1

10

2

10

10

10 / 2

5

3

5

5

(5 * 3) + 1

16

4

16

16

16 / 2

8

5

8

8

8 / 2

4

6

4

4

4 / 2

2

So, the output of the program will be:

3 10 5 16 8 4

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

REM to add more data in a sequential data file

  OPEN "EMP.DAT" FOR INPUT AS #2

  DO

  INPUT "ENTER NAME "; N$

  INPUT "ENTER ADDRESS "; A$

  INPUT "ENTER SALARY "; S$

  WRITE #1, N$, A$,S

  INPUT "Do you want to add more record "; M$

  LOOP WHILE UCASE$(M$)="Y"

  END

AFTER DEBUGGING

REM to add more data in a sequential data file

OPEN "EMP.DAT" FOR APPEND AS #1

DO 

INPUT "ENTER NAME "; N$    

INPUT "ENTER ADDRESS "; A$

INPUT "ENTER SALARY ";  S

WRITE #1, N$, A$, S

INPUT "Do you want to add more record "; M$

LOOP WHILE UCASE$(M$) = "Y"

CLOSE #1

END

 7.     Study the following program and Ans the given questions: 2*1=2

DECLARE FUNCTION test$(A$)

CLS

INPUT "Enter any word "; T$

PRINT test$(T$)

END

FUNCTION test$(A$)

FOR M = LEN(A$) TO 1 STEP -1

C$ = C$ + MID$(A$, M, 1)

NEXT M

test$ = C$

END FUNCTION

 

(a) List the formal and actual parameters used in the program given above.

Ans: Formal parameter: A$; Actual parameter: T$

(b) List the library function used in the above program.

Ans: Library functions used: LEN, MID$, UCASE$

 

Group “C”

8. Convert/Calculate as per the instruction: 4*1=4

(i) (CCA)₁₆ into Binary

Ans: 110011001010

(ii) (654)₁₀ into Octal

Ans: 1216

(iii) (111011)₂ ÷ (100)₂

Ans: 1110

(iv) (10101 - 1110)₂ × (10)₂

Ans: 11110

 Group “D”

9. Answer the following questions: 4*2=8

(a) Write a program in QBASIC that allows user to enter radius of a circle. Create a user defined function to find area of circle and sub procedure to find volume of a cylinder. Hint: [A=πr², V=πr²h]

Ans:

DECLARE FUNCTION AreaCircle (R)

DECLARE SUB VolumeCylinder (R, H)

INPUT "Enter radius of the circle: ", R

PRINT "Area of the circle: "; AreaCircle(R)

INPUT "Enter height of the cylinder: ", H

CALL VolumeCylinder(R, H)

END

 

FUNCTION AreaCircle (R)

AreaCircle = 3.14159 * R * R

END FUNCTION

 

SUB VolumeCylinder (R, H)

V = 3.14159 * R * R * H

PRINT "Volume of the cylinder: "; V

END SUB

(b) A sequential data file “emp.dat” contains employee’s name, address, gender and salary. Write a program to display all the information of employees whose salary is more than Rs.20,000.

Ans:

OPEN "emp.dat" FOR INPUT AS #1

DO WHILE NOT EOF(1)

INPUT #1, N$, A$, G$, S

IF S > 20000 THEN

PRINT N$, A$, G$,S

END IF

LOOP

CLOSE #1

END

10 . Write a program in C language to input any two numbers and find greatest number.

Ans:

#include <stdio.h>

 

int main() {

    int num1, num2;

    printf("Enter two numbers: ");

    scanf("%d %d", &num1, &num2);

    if (num1 > num2)

        printf("The greatest number is %d\n", num1);

    else

        printf("The greatest number is %d\n", num2);

    return 0;

}

OR

Write a program in C language that asks user to enter any number and check whether the number is odd or even

 

#include <stdio.h>

 

int main() {

    int num;

    printf("Enter an integer: ");

    scanf("%d", &num);

 

    if (num % 2 == 0)

        printf("%d is even.\n", num);

    else

        printf("%d is odd.\n", num);

 

    return 0;

}

BY MILAN

http://www.milanbaral123.blogspot.com

 

No comments:

Post a Comment

SEE IMP QUESTIONS C LANGUAGE

  Write a C program to calculate simple interest . The program should accept the principal amount , rate of interest , and time period as ...