Answers On/OffJS required
Group A
- Q.Answer the following questions.(a) Define memory. Write functions of memory.(b) When was first IT policy introduced in Nepal? Write any two IT policy of Nepal.(c) Define E-Governance. What are its types?(d) Write any two positive impacts and two negative impacts of computer.(e) Define Open Source Software. Write any two examples of it.A.Memory refers to the hardware devices used to store and retrieve data in a computer.Functions of memory include:
- Storing data and instructions for execution.
- Providing fast access to data required by the CPU.
- Temporarily holding data during processing.
The first IT policy of Nepal was introduced in 2000 (2057 BS).Two IT policies of Nepal are:- Promoting the use of information technology in education and administration.
- Ensuring proper infrastructure for IT development.
E-Governance refers to the use of digital tools and systems to manage government operations and deliver services to citizens.Types of E-Governance:- G2C (Government to Citizen): Interaction between government and citizens.
- G2B (Government to Business): Interaction between government and businesses.
- G2G (Government to Government): Interaction between government agencies.
Positive impacts:- Increased productivity and efficiency.
- Improved communication and access to information.
Negative impacts:- Health issues like eye strain and posture problems.
- Job displacement due to automation.
Open Source Software is software that is freely available for anyone to use, modify, and distribute.Examples:- Linux
- Mozilla Firefox
- Q.Perform the following operations as indicated.(a) Perform the following binary operations(i) (10001-1111)*11(ii) (10001+111)/10(b) Convert as indicated(i) (100011), into octal number system(ii) (236) octal into hexadecimal number systemA.First, convert both binary numbers to decimal:
- 10001 (binary) = 17 (decimal)
- 1111 (binary) = 15 (decimal)Perform the subtraction:17 - 15 = 2Now, multiply by 11:2 * 11 = 22Convert 22 to binary: 10110
First, convert both binary numbers to decimal:- 10001 (binary) = 17 (decimal)
- 111 (binary) = 7 (decimal)Perform the addition:17 + 7 = 24Now, divide by 10:24 / 10 = 2.4 (rounded to 2)Convert 2 to binary: 10
First, convert binary to decimal:100011 (binary) = 35 (decimal)Now convert 35 to octal: 43First, convert octal to decimal:236 (octal) = 158 (decimal)Now convert 158 to hexadecimal: 9E - Q.Write technical term for the following statements.(a) Collections of 4 bits.(b) Fastest memory kept between processor and main memory.(c) The main electronic component used in second generation.(d) Type of E-Government that interacts with citizen.A.NibbleCache memoryTransistorG2C (Government to Citizen)
- Q.Match the following.A.Assembler Language processorNAV Utility softwareWindows GUI based OSMonitor Softcopy output device
- Q.Write full form of the following.POSTCALNITCASCIIA.Power-On Self TestComputer-Aided LearningNational Information Technology CenterAmerican Standard Code for Information Interchange
Group B
- Q.Answer the following questions.(a) Write any two advantages of windows over DOS.(b) Define Booting. What are its types?A.Windows supports multitasking, whereas DOS is single-tasking.
Windows has a graphical user interface (GUI), while DOS uses a command-line interface.Booting is the process of starting or restarting a computer system.Types of booting:- Cold Booting: Booting a computer from an off state.
Warm Booting: Restarting a computer without switching it off. - Q.Write functions of following DOS commands.(a) C: DEL D:\Backup\study.txt(b) C:/>COPY CON exam.txtA.This command deletes the file "study.txt" from the "Backup" folder on the D: drive.This command copies content from the console (keyboard input) and saves it into a file called "exam.txt".
- Q.Write DOS commands for the following.(a) To display current system time(b) To remove directory school from D driveA.TIMERMDIR D:\school
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 web browser? Write any two examples of it(b) Differentiate between empty tag and container lag.A.A web browser is a software application used to access and navigate the internet.Examples:
- Google Chrome
- Mozilla Firefox
Empty tag: Tags that do not have a closing tag. Example: <img>, <br>.Container tag: Tags that have both opening and closing tags. Example: <div>...</div>, <p>...</p>. - Q.Write true or false for the following statements(a) <img> is container tag.(b)An unordered list is also called as numbered list.(c) URL is identifier of the website.(d) htm is extension of HTML document.A.FalseFalseTrueFalse
- Q.Write a html document to display greeting card for new year 2076 Including different formatting tag, image tag and others.A.<!DOCTYPE html><html><head><title>New Year 2076 Greeting</title><style>body {text-align: center;font-family: Arial, sans-serif;background-color: #f0f8ff;}h1 {color: #ff6347;font-size: 50px;}p {font-size: 20px;color: #4682b4;}img {width: 300px;height: 200px;}</style></head><body><h1>Happy New Year 2076!</h1><p>May this year bring you happiness, success, and prosperity!</p><img src="newyear.jpg" alt="New Year Image"></body></html>
Group D
- Q.Answer the following questions.(a) Define algorithm. Write any one characteristics of good algorithm.(b) Differentiate between string library function and numeric library function.(c) Define array. What are its types?A.An algorithm is a step-by-step procedure or set of rules to solve a problem.Characteristic of a good algorithm:
- Finiteness: The algorithm must have a finite number of steps.
String library functions: Functions that perform operations on strings (e.g., strlen(), strcpy()).Numeric library functions: Functions that perform mathematical operations (e.g., sqrt(), pow()).An array is a collection of elements of the same data type, stored in contiguous memory locations.Types of arrays:- One-dimensional array: A list of elements.
Two-dimensional array: A matrix or table of elements. - Q.Debug the programREM TO CHECK NUMBER IS PRIME OR NOTCLSINPUT "ENTER ANY NUMBER"; NFOR I = 1 TO CIF N MOD I = 0 THENC = C + 1END IFNEXT IIF C = 1 THENPRINT N; "IS PRIME NUMBER"ELSEPRINT N; "IS COMPOSITE"END IFENDA.REM TO CHECK IF A NUMBER IS PRIME OR NOTCLSINPUT "ENTER ANY NUMBER"; NC = 0FOR I = 1 TO NIF N MOD I = 0 THENC = C + 1END IFNEXT IIF C = 2 THENPRINT N; "IS PRIME NUMBER"ELSEPRINT N; "IS COMPOSITE"END IFEND
- Q.Find output of the given program.CLSN = 110WHILE N<>0R = N MOD 10S = S * 2 + RN = INT(N/10)WENDPRINT "THE RESULT IS"; SENDA.Step-by-Step Execution:
- N = 110
- S is not initialized; assuming S = 0 initially.
- Loop Iterations:
- R = 110 MOD 10 = 0, S = 0 * 2 + 0 = 0, N = 110 / 10 = 11
- R = 11 MOD 10 = 1, S = 0 * 2 + 1 = 1, N = 11 / 10 = 1
- R = 1 MOD 10 = 1, S = 1 * 2 + 1 = 3, N = 1 / 10 = 0
- The loop ends (N = 0).
PRINT "THE RESULT IS"; S → Output: 3 - Q.Study the program and answer the following questionsCLSDIM N(10) AS INTEGERFOR 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)FOR...NEXT loop
- Q.Answer the following:(a) Write a program to calculate area of four walls. Hint(a-2h(+b))(b) Write a program to find the reverse of the supplied word.(c) Write a program to create an array to store 5 different numbers and display sum of add number only.A.CLSINPUT "ENTER HEIGHT, LENGTH, BREADTH"; H, L, BA = H * (L + 2 * B + L)PRINT "AREA OF FOUR WALLS IS"; AENDCLSINPUT "ENTER A WORD"; W$L = LEN(W$)FOR I = L TO 1 STEP -1R$ = R$ + MID, I, 1)NEXT IPRINT "REVERSED WORD IS"; R$ENDCLSDIM N(5) AS INTEGERSUM = 0FOR I = 1 TO 5INPUT "ENTER A NUMBER"; N(I)IF N(I) MOD 2 <> 0 THENSUM = SUM + N(I)END IFNEXT IPRINT "SUM OF ODD NUMBERS IS"; SUMEND