Answers On/OffJS required
Group A
- Q.Answer the following questions.(a) Define primary memory. Write any two differences between RAM and ROM.(b) Define E-Governance. Mention any two Govemmental sites of Nepal.(c) Define IT Policy. Mention any two action plan of IT Policy.(d) Draw an internal architectural diagram of computer system.(e) Define utility software. Write any two uses of this software.A.Primary memory is the internal memory of a computer that stores data temporarily or permanently for quick access by the CPU.Differences between RAM and ROM:
RAM (Random Access Memory) ROM (Read-Only Memory) It is a volatile memory, meaning data is lost when power is off. It is a non-volatile memory, meaning data remains even when power is off. It allows both read and write operations. It only allows read operations. E-Governance refers to the use of information and communication technology (ICT) by the government to provide services, exchange information, and communicate with the public efficiently.Two governmental websites of Nepal:- www.nepal.gov.np – Official government portal of Nepal
- www.ird.gov.np – Inland Revenue Department
IT Policy is a set of rules, guidelines, and strategies formulated by the government to promote, regulate, and develop information technology in a country.Two action plans of IT Policy:- Expansion of internet services to rural areas.
- Implementation of digital signatures for secure online transactions.
(Diagram should be drawn separately and must include components such as CPU, Memory, Input, Output, ALU, CU, and Storage.)Utility software is a type of system software that helps in maintaining, analyzing, and optimizing a computer system.Two uses of utility software:- Disk Cleanup – Removes unnecessary files and frees up storage.
Antivirus Software – Protects the system from malware and viruses. - Q.Perform the following operations as indicated.(a) Perform the following binary operations(i) (10001+111)/10(b) Convert as indicated(i) (36) in octal into binary number system(ii) (A92)hexa into octal number systemA.10001+111=1010010100/10=1010(ii) (10001-1111)*1110001−1111=10001000×11=11000Convert each octal digit to its three-bit binary equivalent:
- Three in octal is 011 in binary
- Six in octal is 110 in binary
Combine the binary values:- Thirty-six in octal is 011110 in binary
Convert each hexadecimal digit to its four-bit binary equivalent:- A in hexadecimal is 1010 in binary
- Nine in hexadecimal is 1001 in binary
- Two in hexadecimal is 0010 in binary
Combine them:- A92 in hexadecimal is 101010010010 in binary
Group the binary digits into sets of three, from right to left:- 101 010 010
Convert each three-bit group to its octal equivalent:- 101 in binary is 5 in octal
- 010 in binary is 2 in octal
- 010 in binary is 2 in octal
Answer: 522 in octal - Q3.Write technical term for the following statements.(a) The physical form of output.(b) The main circuit board of computer system.(c) The storage device that makes uses of light technology.(d) Block of CPU used for holding data before and after processing.A.Hard copyMotherboardOptical diskRegister
- Q.Match the followingA.Compiler → Language processorRAM → Volatile memoryMS-DOS → CUI based OSPrinter → Hardcopy output
- Q.Write full form of the following.FLOPSASCCSRAMBITSA.Floating Point Operations Per SecondAutomatic Sequence Controlled CalculatorStatic Random Access MemoryBinary Digits
Group B
- Q.Answer the following questions.(a) Differentiate between GUI based OS and CUI based OS.(b) What are three different files of MS-DOS?A.
GUI-Based OS (Graphical User Interface) CUI-Based OS (Character User Interface) Uses graphical elements like icons and windows. Uses text-based commands. Easier to use with a mouse. Requires memorization of commands. IO.SYS – Handles input/output operations.MSDOS.SYS – Contains core system files.COMMAND.COM – Provides command-line interface. - Q.Write functions of following DOS command.(a) C> TYPE D:\study.txt(b) C:/>copy .txt D:\termA.Displays the contents of the file study.txt.Copies all .txt files to the D:\term directory.
- Q.Write DOS commands for the following.(a) To rename file nine.txt to ten.txt(b) To display current date of the systemA.REN nine.txt ten.txtDATE
Practice Without Boundaries.
Premium gives you full access, zero ads, and unlimited custom paper generation. Study your way, every day.
Group C
- Q.Answer the following questions.(a) Define webpage. What are its types?(b) Define attributes of tag. Write attributes of body tagA.A webpage is a digital document displayed on the internet.Types:
- Static Webpage – Fixed content, does not change dynamically.
- Dynamic Webpage – Content changes based on user interaction.
An attribute provides additional information about an HTML tag.Attributes of <body> tag:- bgcolor – Sets background color.
- text – Sets text color.
- Q.Fill in the gaps(a).....is the main page of the website.(b)......is the protocol used for transferring HTML documents.(c)………develop HTML.(d) ……tag and……. tag are types of tag.A.HomepageHTTPTim Berners-LeePaired tag and Singular tag
- Q.Write a html to document to display greeting card for your close friends birthday.A.<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Happy Birthday Greeting Card</title><style>body {background-color: #f0f8ff;font-family: Arial, sans-serif;text-align: center;padding: 50px;}.card {background-color: #ffebcd;border-radius: 10px;padding: 30px;width: 60%;margin: 0 auto;box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);}h1 {color: #ff6347;}p {font-size: 18px;color: #4682b4;}.button {background-color: #32cd32;color: white;padding: 10px 20px;border: none;border-radius: 5px;font-size: 16px;cursor: pointer;}.button:hover {background-color: #228b22;}</style></head><body><div class="card"><h1>Happy Birthday, [Friend's Name]!</h1><p>Wishing you a day filled with love, joy, and laughter.</p><p>May this year bring you all the happiness you deserve!</p><button class="button" onclick="alert('Have a fantastic day!')">Celebrate!</button></div></body></html>
Group D
- Q.Answer the following questions.(a) Define flowchart. What are the symbols used in Flowchart?(b) Define operators. What are the different types of Operators?(c) Define functions. What are its types?A.A flowchart is a graphical representation of an algorithm using symbols.Symbols:
- Oval – Start/End
- Rectangle – Process
- Diamond – Decision
An operator is a symbol that performs operations on variables and values.Types:- Arithmetic operators (+, -, *)
- Relational operators (>, <, =)
- Logical operators (AND, OR, NOT)
A function is a block of code that performs a specific task.Types:- Built-in functions
- User-defined functions
- Q.Debug the program.REM TO CHECK SUPPLIED MULTI DIGIT NUMBER IS PALINDROME OR NOTCLSINPUT "ENTER ANY MULTI DIGIT NUMBER";NP = NR = 0WHILE N > 0R = N MOD 10R = R * 10 + RN = N / 10WENDIF P = R THENPRINT "IT IS PALINDROME NUMBER"ELSEPRINT "IT IS NOT PALINDROME NUMBER"END IFENDA.REM TO CHECK SUPPLIED MULTI DIGIT NUMBER IS PALINDROME OR NOTCLSINPUT "ENTER ANY MULTI DIGIT NUMBER"; NP = NR = 0WHILE N > 0REM Extract last digit and build reverse numberD = N MOD 10R = R * 10 + DN = INT(N / 10)WENDIF P = R THENPRINT "IT IS PALINDROME NUMBER"ELSEPRINT "IT IS NOT PALINDROME NUMBER"END IFEND
- Q.Find output of the given program.CLSS = 2FOR I = 1 TO 5S = S + IS = S + 2NEXT IPRINT SA.
I S (before update) Update: S = S + I Update: S = S + 2 Final S 1 2 2 + 1 = 3 3 + 2 = 5 5 2 5 5 + 2 = 7 7 + 2 = 9 9 3 9 9 + 3 = 12 12 + 2 = 14 14 4 14 14 + 4 = 18 18 + 2 = 20 20 5 20 20 + 5 = 25 25 + 2 = 27 27 Output: 27 - Q.Study the program and answer the following questions.CLSDIM N(10) AS INTEGERSUM = 0FOR I = 1 TO 10INPUT "ENTER ANY NUMBER"; N(I)SUM = SUM + N(I)NEXT IPRINT "SUM OF 10 DIFFERENT NUM IS"; SUMEND(a) Name the array used in above program.(b) Which loop is used in above program?A.N(10) is the array used in the program.FOR...NEXT loop is used.
- Q.Answer the following:(a) Write a program to calculate Volume of cylinder. Hint(V=3.14°rh)(b) Write a program to check whether the supplied word is palindrome or not.(c) Write a program to create an array to store 5 different numbers and display average of them.A.CLSCONST PI = 3.1417INPUT "ENTER RADIUS"; RINPUT "ENTER HEIGHT"; HV = PI * R^2 * HPRINT "VOLUME OF CYLINDER IS"; VENDCLSINPUT "ENTER A WORD"; W$L = LEN(W$)PAL = "YES"FOR I = 1 TO L / 2IF MID, I, 1) <> MID, L - I + 1, 1) THENPAL = "NO"EXIT FOREND IFNEXT IIF PAL = "YES" THENPRINT "THE WORD IS A PALINDROME"ELSEPRINT "THE WORD IS NOT A PALINDROME"END IFENDCLSDIM N$(5) AS STRINGFOR I = 1 TO 5INPUT "ENTER NAME"; N$(I)NEXT IPRINT "THE STORED NAMES ARE:"FOR I = 1 TO 5PRINT N$(I)NEXT IEND