0% found this document useful (0 votes)
2 views3 pages

Class 10 Final Paper

The document provides solutions for an exam paper, organized into four groups. Group A includes corrections to a QBASIC program and function declarations, Group B covers definitions and examples related to telecommunication and programming languages, Group C presents conversions and programming tasks in QBASIC and C, while Group D defines antivirus software, e-commerce, and data types in MS-Access, among other topics.

Uploaded by

basnetmraj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

Class 10 Final Paper

The document provides solutions for an exam paper, organized into four groups. Group A includes corrections to a QBASIC program and function declarations, Group B covers definitions and examples related to telecommunication and programming languages, Group C presents conversions and programming tasks in QBASIC and C, while Group D defines antivirus software, e-commerce, and data types in MS-Access, among other topics.

Uploaded by

basnetmraj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Exam Paper Solutions

Group A
1. Rewrite the given QBASIC program after correcting the bugs:
2. REM Program to add record in an existing file
3. OPEN "student.dat" FOR APPEND AS #2
4. DO
5. INPUT "Enter Name, Class and Roll No.", SName$, C, RN
6. WRITE #2, SName$, C, RN
7. INPUT "More records (Y/N)?", Y$
8. LOOP WHILE UCASE$(Y$) = "Y"
9. CLOSE #2
10. END
11. Find missing statement in the main module to execute the function:
12. DECLARE FUNCTION COUNT(A$)
13. CLS
14. INPUT "Enter any word", W$
15. PRINT "Number of vowels:", COUNT(W$)
16. END
17. String functions used in the program:
o LEN(A$) - Returns the length of the string.
o MID$(A$, i, 1) - Extracts a character from a string.
Group B
1. Define Telecommunication:
o Telecommunication is the transmission of information over a distance through
electronic means such as phones, internet, or radio.
2. Examples of Simplex Mode:
o Television broadcasting
o Radio transmission
3. Methods of creating a table in MS-Access:
o Design View
o Datasheet View
4. Maximum character length for a field name in MS-Access:
o 64 characters
5. Syntax of KILL statement in QBASIC:
6. KILL "filename"
7. Keywords in C-language:
o int, return
8. Full forms:
o UPS: Uninterruptible Power Supply
o VR: Virtual Reality
9. Difference between Guided and Unguided Media:
o Guided Media: Uses cables (e.g., Ethernet, fiber optics)
o Unguided Media: Uses wireless signals (e.g., radio waves, satellite)
Group C
1. Convert the following:
o (503)₈ → (101000011)₂
o (101000101)₂ → (165)₁₀
o (100 × 1101)₂ = (1101100)₂
o (100111)₂ + (110)₂ = (101101)₂
2. QBASIC Program to Calculate Room Perimeter and Volume:
3. DECLARE FUNCTION Perimeter(L, B)
4. DECLARE SUB Volume(L, B, H)
5. CLS
6. INPUT "Enter Length, Breadth, and Height", L, B, H
7. PRINT "Perimeter:", Perimeter(L, B)
8. CALL Volume(L, B, H)
9. END
10.
11. FUNCTION Perimeter(L, B)
12. Perimeter = 2 * (L + B)
13. END FUNCTION
14.
15. SUB Volume(L, B, H)
16. PRINT "Volume:", L * B * H
17. END SUB
18. QBASIC Program to Read Data from "std.dat" and Display Students with
Computer Marks > 40:
19. OPEN "std.dat" FOR INPUT AS #1
20. WHILE NOT EOF(1)
21. INPUT #1, Name$, Roll, Eng, Nep, Math, Comp
22. IF Comp > 40 THEN
23. PRINT Name$, Roll, Eng, Nep, Math, Comp
24. END IF
25. WEND
26. CLOSE #1
27. END
28. C Program to Find the Greatest of Two Numbers:
29. #include <stdio.h>
30. int main() {
31. int a, b;
32. printf("Enter two numbers: ");
33. scanf("%d %d", &a, &b);
34. if (a > b)
35. printf("%d is greater", a);
36. else
37. printf("%d is greater", b);
38. return 0;
39. }
40. C Program to Display Series 5, 10, 15, ... 50:
41. #include <stdio.h>
42. int main() {
43. for (int i = 5; i <= 50; i += 5) {
44. printf("%d ", i);
45. }
46. return 0;
47. }
Group D
1. Define Antivirus Software with Examples:
o Antivirus software detects and removes malicious programs. Examples:
Norton, McAfee
2. Why is E-Commerce More Popular?
o Convenience
o Wider product variety
3. Two Examples of E-Governance in Nepal:
o Online Tax Payment
o Digital Citizenship Registration
4. Two Data Types Used in MS-Access:
o Text
o Number
5. Difference Between Field and Record:
o Field: A single data unit (e.g., Name)
o Record: A collection of fields (e.g., Student Info)
6. Define Report in DBMS:
o A report organizes and presents data for analysis.
7. Different Types of Action Queries:
o Append Query
o Update Query
8. Output of QBASIC Program (Dry Run):
9. DECLARE SUB Display(T$)
10. T$="COMPUTER"
11. CALL Display(T$)
12. END
13.
14. SUB Display(T$)
15. FOR C=1 TO LEN(T$)
16. DS=MID$(T$,C,1)
17. PRINT DS;
18. NEXT C
19. END SUB
o Output: COMPUTER
This document contains solutions for the given exam paper.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy