Answers On/OffJS required
Group A
- Q1.टेलिकम्युनिकेशन भनेको के हो? What is telecommunication?2. Simplex Mode का दुईवटा उदाहरण लेख्नुहोस्।Give any two examples of simplex mode.3. एम. एस. एक्सेसमा टेबल बनाउनका दुई विधिहरू लेख्नुहोस्।Write any two methods of creating a table in MS-Access.4. एम. एस. एक्सेसमा तपाईं फिल्डको नाम बनाउनका लागि अधिकतम कति क्यारेक्टर सम्म प्रयोग गर्न सक्नुहुन्छ?What is the maximum number of characters you can use for creating a field name in MS-Access?5. KILL statement को syntax लेख्नुहोस्।Write the syntax of the KILL statement.6. C-language मा प्रयोग हुने कुनै दुईवटा keywords लेख्नुहोस्।Write any two keywords used in the C language.A.टेलिकम्युनिकेशन भनेको टेलिफोन, रेडियो, टेलिभिजन जस्ता माध्यमद्वारा टाढा–टाढासम्म सूचना आदान–प्रदान गर्ने प्रविधि हो। Telecommunication is the technology of exchanging information over long distances using mediums like telephone, radio, or television.Simplex Mode का उदाहरणहरू:(१) रेडियो प्रसारण (Radio Broadcasting)(२) टेलिभिजन प्रसारण (Television Broadcasting)।Examples of simplex mode:(1) Radio broadcasting(2) Television broadcasting.MS-Access मा टेबल बनाउनका दुई विधि:(१) Design View(२) Datasheet View।Two methods to create a table in MS-Access:(1) Design View(2) Datasheet View.
- अधिकतम ६४ क्यारेक्टर।
- Maximum 64 characters.
KILL filenameint, return - Q7.WWW मा निश्चित keywords खोजी गर्ने कम्प्युटर–आधारित वेबसाइटहरू। The websites that search documents for specified keywords in WWW.8. डिजिटल संसारमा अन्तरक्रियाको रेकर्ड।The recording of interaction with the digital world.A.Search EngineDigital Footprint
- Q9.Write the full form of:1. UPS2. VRA.Uninterruptible Power SupplyVirtual Reality
Group B
- Q1.Answer the following questions:1. Difference between Guided and Unguided Media (Any two):2. Define cyber law. List any one-one do’s and don’ts of cyber ethics.3. Define antivirus software with two examples.4. Why is e-commerce more popular than traditional commerce nowadays? Give any two reasons.5. What is e-governance? Provide any two examples of e-governance services that exist in Nepal.6. What is a database? Name any two data types used in MS-Access.7. Write the difference between field and record. (Any two)8. Define a report. Why is it necessary to create a report in DBMS?9. What is a query in DBMS? Mention the different types of action query.A.
- Transmission Path: Guided Media: Uses physical cables like twisted pair, coaxial cable, or fiber optics. Unguided Media: Uses wireless transmission such as radio waves, microwaves, or infrared.
- Signal Direction: Guided Media: Signals follow a fixed physical path. Unguided Media: Signals travel freely through air or space.
- Cyber Law: The set of laws and regulations that govern the use of the internet, computers, and digital communication to ensure safety, privacy, and lawful behavior.
- One Do’s of Cyber Ethics: Respect others’ privacy and personal information online.
- One Don’ts of Cyber Ethics: Do not hack or access someone’s data without permission.
- Definition: A program designed to detect, prevent, and remove viruses and other malicious software from a computer system.
- Examples: Norton Antivirus, McAfee Antivirus.
- Convenience: Allows shopping anytime, anywhere without visiting physical stores.
- Wider Market Reach: Businesses can sell globally, reaching more customers.
- Definition: The use of information and communication technology (ICT) by the government to deliver services, exchange information, and improve efficiency.
- Examples in Nepal: Online citizenship application system. Online tax payment system (IRD Portal).
- Definition: An organized collection of related data that can be easily accessed, managed, and updated.
- Two Data Types in MS-Access: Text, Number.
- Meaning: Field: A single piece of data or attribute (e.g., Name, Age). Record: A collection of related fields about one entity (e.g., Name: John, Age: 25).
- Table Representation: Field: Represents a column. Record: Represents a row.
- Definition: A formatted and organized presentation of data from a database for easy reading, analysis, and printing.
- Necessity: To present data in a clear, structured format. To support decision-making with summarized data.
- Definition: A request to retrieve, update, or manipulate data from a database based on specific conditions.
- Types of Action Queries: Update Query – Modifies existing records. Delete Query – Removes records. Append Query – Adds new records. Make-Table Query – Creates a new table from query results.
- Update Query – Modifies existing records.
- Delete Query – Removes records.
- Append Query – Adds new records.
- Make-Table Query – Creates a new table from query results.
- Q2.Write down the output of the given program and show it in a dry run table:A.Program Explanation:
- T$ = "COMPUTER"
- The Display subroutine prints characters from the string TS starting at position 1, stepping by 2 (i.e., every second character).
- It uses MID$(TS, C, 1) to extract one character at position C.
Dry Run Table:Iteration (C) Character Extracted (DS = MID$(TS, C, 1)) Printed Output 1 C C 3 M CM 5 U CMU 7 E CMUE - Q3.Rewrite the given program after correcting the bugs: REM to add record in an existing file OPEN "student.dat" FOR OUT AS #2 TOP: INPUT "Enter Name, Class and Roll No."; SName$, C, RN SName$, C, RN INPUT#2, SName$, C, RN INPUT "More records"; YS IF UCASE$(YS)="Y" THEN GOTO TOP CLOSE #2 STOP ENDA.REM To add record in an existing fileOPEN "student.dat" FOR APPEND AS #2 ' Use APPEND to add to existing fileTOP:INPUT "Enter Name, Class and Roll No.: ", SName$, C, RNPRINT #2, SName$, C, RN ' Write data to the fileINPUT "More records (Y/N): ", YSIF UCASE$(YS) = "Y" THEN GOTO TOPCLOSE #2ENDExplanation of fixes:
- Changed file mode from OUT (which overwrites the file) to APPEND to add records without deleting existing ones.
- Removed the stray line SName$, C, RN which does nothing.
- Changed INPUT#2, SName$, C, RN (which reads from file) to PRINT #2, SName$, C, RN to write the data to the file.
- Added prompt clarity for "More records".
- Removed unnecessary STOP since END is sufficient.
- Q4.Study the given program and answer the questions: DECLARE FUNCTION COUNT (A$) FUNCTION COUNT (A$) CLS INPUT "Enter any word"; WS B=LEN(A$) C=0 FOR i=1 TO B ES=MID$(A$,i,1) IF ES="A" OR ES="E" OR ES="I" OR ES="O" OR ES="U" THEN C=C+1 END IF NEXT i COUNT=C END FUNCTION1. Write down the missing statement in the main module to execute the program.2. List any two string functions used in the above program.A.Missing statement in the main module to execute the program:You need to call the function COUNT with the input word WS and display the result. For example:INPUT "Enter any word"; WSV = COUNT(WS)PRINT "Number of vowels: "; VTwo string functions used in the program:
- LEN(A$) – Returns the length of the string A$.
- MID$(A$, i, 1) – Extracts a single character from string A$ at position i.
Practice Without Boundaries.
Premium gives you full access, zero ads, and unlimited custom paper generation. Study your way, every day.
Group C
- Q1.Convert/calculate as per the instruction: (i) (1503)₈ = (?)₁₆ (ii) (101000101)₂ = (?)₈ (iii) (1010+1101)₂ - (110)₂ (iv) (100111)₂ + (110)₂A.(i) Convert (1503)₈ to hexadecimal (₁₆):Step 1: Convert octal to decimal(1503)₈ = 1×8³ + 5×8² + 0×8¹ + 3×8⁰= 1×512 + 5×64 + 0 + 3×1= 512 + 320 + 0 + 3 = 835 (decimal)Step 2: Convert decimal 835 to hexadecimal835 ÷ 16 = 52 remainder 352 ÷ 16 = 3 remainder 43 ÷ 16 = 0 remainder 3Write remainders backward: 3 4 3So, (1503)₈ = (343)₁₆(ii) Convert (101000101)₂ to octal (₈):Group binary digits into sets of 3 from right:101 000 101Convert each group to octal digit:101₂ = 5₈000₂ = 0₈101₂ = 5₈So, (101000101)₂ = (505)₈(iii) Calculate (1010 + 1101)₂ - (110)₂:First, add (1010)₂ and (1101)₂:1010₂ = 10 decimal1101₂ = 13 decimalSum = 10 + 13 = 23 decimal = (10111) ₂Then subtract (110)₂ = 6 decimal:23 - 6 = 17 decimal = (10001) ₂Answer: (10001)₂(iv) Calculate (100111)₂ + (110)₂:Convert both to decimal:100111₂ = 39 decimal110₂ = 6 decimalSum = 39 + 6 = 45 decimalConvert 45 decimal to binary:45 ÷ 2 = 22 remainder 122 ÷ 2 = 11 remainder 011 ÷ 2 = 5 remainder 15 ÷ 2 = 2 remainder 12 ÷ 2 = 1 remainder 01 ÷ 2 = 0 remainder 1Write remainders backward: 101101Answer: (101101)₂
- Q2.Answer the following questions:1. Write a program in QBASIC that asks length, breadth and height of room and calculate its perimeter and volume.[HINT: Volume = L × B × H and perimeter = 2 (L+B)]2. Write a program to read data from the sequential data file name "std.dat" which contains student’s name, roll no. and marks of English, Nepali, Maths, and Computer of few students. Display the result with all the information of those students whose marks in computer is more than 40.A.Program to Calculate Perimeter and Volume of a RoomREM Program to calculate perimeter and volume of a roomCLSINPUT "Enter Length (L): ", LINPUT "Enter Breadth (B): ", BINPUT "Enter Height (H): ", HPERIMETER = 2 * (L + B)VOLUME = L * B * HPRINT "Perimeter of the room: "; PERIMETERPRINT "Volume of the room: "; VOLUMEENDProgram to Read Data from Sequential File and Display Students with Computer Marks > 40REM Program to display students with Computer marks > 40CLSOPEN "std.dat" FOR INPUT AS #1PRINT "Name", "Roll No", "English", "Nepali", "Maths", "Computer"PRINT STRING$(60, "-")WHILE NOT EOF(1)INPUT #1, Name$, Roll, Eng, Nep, Math, CompIF Comp > 40 THENPRINT Name$, Roll, Eng, Nep, Math, CompEND IFWENDCLOSE #1END
- Q3.Write a program in C-language to find the greatest number among any two different input numbers. (OR) Write a program in C-language to display the series 5, 10, 15, 20, … up to 15th terms.ORA.Option 1: C Program to Find the Greatest Number Among Two Different Numbers#include <stdio.h>int main() {int num1, num2;printf("Enter first number: ");scanf("%d", &num1);printf("Enter second number: ");scanf("%d", &num2);if (num1 > num2) {printf("The greatest number is: %d ", num1);} else {printf("The greatest number is: %d ", num2);}return 0;}Option 2: C Program to Display the Series 5, 10, 15, … up to 15th Term#include <stdio.h>int main() {int i, term;printf("Series: ");for (i = 1; i <= 15; i++) {term = 5 * i;printf("%d", term);if (i < 15) {printf(", ");}}printf(" ");return 0;}