Answers On/OffJS required
Group A
- Q.Answer the following questions in one sentence:(a) What are the main sections of CPU?(b) What is taskbar?(c) What is an array?(d) What is algorithm?(e) What is canvas?(f) What are the types of tag?A.The main sections of a CPU are the Arithmetic and Logic Unit (ALU), Control Unit (CU), and Memory Unit.A taskbar is a user interface element in an operating system that displays running applications, a start menu, and system notifications.An array is a data structure that stores multiple values of the same data type under a single variable name. Each value in the array is identified by an index (or position).An algorithm is a step-by-step procedure or set of rules for solving a specific problem or performing a task.A canvas is an area in a graphical user interface (GUI) where images, shapes, and drawings can be created or displayed.Structural Tags – <html>, <head>, <body>Text Formatting Tags – <h1>, <p>, <b>, <i>List Tags – <ul>, <ol>, <li>Table Tags – <table>, <tr>, <td>
- Q.Write appropriate technical term for the following:(a) The software required for browsing and surfing websites.(b) The physical parts of computer system.A.Web browser.Hardware.
- Q.Write the full form of the following:WWWRAMA.World Wide WebRandom Access Memory
Group B
- Q.Answer the following questions:(a) Define loT?(b) What is cloud computing? Write the different types of services provided by cloud computing.(c) What is Software development life cycle? Write the stages of SDLC.(d) Differentiate between impact and non-impact printers.(e) What is computer language? Write its type.(f) Draw a flowchart to find out smallest number from any two given numbers.(g) What is Internet? Write any two uses of Internet.(h) Define uploading and downloading(i) What is photoshop? Write any two features of photoshop.A.IoT (Internet of Things) is a network of interconnected devices that communicate and exchange data over the internet without human intervention.Cloud computing is a technology that allows users to store, access, and manage data and applications over the internet.
- Types of cloud services:IaaS (Infrastructure as a Service)PaaS (Platform as a Service)SaaS (Software as a Service)
- The Software Development Life Cycle (SDLC) is a systematic process for planning, creating, testing, and deploying software applications.
- Stages of SDLC:Requirement AnalysisPlanningDesignDevelopmentTestingDeploymentMaintenance
A computer language is a set of instructions used to communicate with a computer.- Types:Machine LanguageAssembly LanguageHigh-Level Language
Steps to Draw a Flowchart to Find the Smallest Number from Two Given Numbers:- Start
- Input two numbers (A and B)
- Compare A and B:
- If A < B, then A is the smallest
- Else, B is the smallest
- Display the smallest number
- End
(You can draw a flowchart using these steps with decision-making symbols.)- The Internet is a global network that connects millions of computers and devices worldwide, allowing data sharing and communication.
Two Uses of the Internet:- Communication – Email, social media, video calls (e.g., Gmail, WhatsApp, Zoom).2.Information Access – Searching for knowledge, reading news, and online learning (e.g., Google, Wikipedia, YouTube).
Uploading: Sending data from a local device to the internet or a remote server (e.g., posting a photo on social media).Downloading: Receiving data from the internet or a remote server to a local device (e.g., saving a file from Google Drive)Photoshop is an image editing software developed by Adobe.- Features:Layer-based image editing.Advanced photo retouching tools.
- Q.Rewrite the following program after correcting bug.CLSS = XY = 6FOR I = 10 TO 1 STEP -1DISPLAY XX = X + YNEXT XENDA.Corrected :CLSX = 0Y = 6FOR I = 10 TO 1 STEP -1PRINT XX = X + YNEXT IEND
- Q.Write the output of the following program:A = 0WHILE A <= 0B$ = "A MOD 2"RS$ = STR$(RS)CS$ = B$ + CS$A = INT(A/2)LOOPPRINT CS$ENDA.This program attempts to convert a number to binary, but it has syntax errors. After correction, if A = 10, the output would be "1010".
- Q.Study the following program and answer the given questions:LET A$ = "KATHMANDU"L = LEN(A$)FOR I = 1 TO LPRINT TAB(8); MID, I, 1)NEXT IEND(a) List out the different library function used in the above program.(b) List out the different variable function used in the above program.A.LEN(A$): Returns the length of the string.MID, I, 1): Extracts a single character from a string.TAB(8): Moves the cursor to column 8 before printing.A$: String variable storing "KATHMANDU".L: Integer variable storing the length of A$.I: Loop variable for iteration.
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 CSS.(b) What are the different ways to apply CSS to HTML document?(c) Why MARQUEE tag is used in HTML? Write its attributes.(d) Define the types of list used in HTML.A.CSS (Cascading Style Sheets) is a stylesheet language used to control the presentation, layout, and design of HTML documents. It allows developers to apply styles like colors, fonts, margins, and positioning to web pages.Inline CSS: Applied directly within an HTML tag using the style attribute.Internal CSS: Defined within a <style> tag inside the <head> section of an HTML document.External CSS: Written in a separate .css file and linked using <link> in the HTML document.The <marquee> tag is used in HTML to create scrolling text or images on a webpage. However, it is deprecated in modern HTML and replaced with CSS animations.Attributes of <marquee>:
- direction → Controls scrolling direction (left, right, up, down).
- behavior → Defines scrolling behavior (scroll, slide, alternate).
- scrollamount → Sets speed of scrolling.
loop → Defines how many times the marquee should scroll.1.Ordered List (<ol>) – Numbered list (1, 2, 3, ...)<ol><li>Apple</li><li>Banana</li></ol>2.Unordered List (<ul>) – Bulleted list.<ul><li>Dog</li><li>Cat</li></ul>3.Definition List (<dl>) – Used for definitions.<dl><dt>HTML</dt><dd>HyperText Markup Language</dd></dl> - Q.Answer the following:(a) Write a program to enter radius of a sphere then find out its volume. [Hint: V = 4/3x m²](b) Write a program to ask to enter a string then find out whether it is palindrome or not.(c) Write a program to ask to enter 10 different numbers then arrange ascending order using array.A.CLSINPUT "Enter the radius of the sphere: ", rLET V = (4/3) * 3.1416 * r^3PRINT "The volume of the sphere is: "; VENDCLSINPUT "Enter a string: ", S$LET Rev$ = ""FOR I = LEN(S$) TO 1 STEP -1Rev$ = Rev$ + MID, I, 1)NEXT IIF S$ = Rev$ THENPRINT "The string is a palindrome."ELSEPRINT "The string is NOT a palindrome."END IFENDDIM A(10)CLSFOR I = 1 TO 10INPUT "Enter number: ", A(I)NEXT IFOR I = 1 TO 9FOR J = I+1 TO 10IF A(I) > A(J) THENSWAP A(I), A(J)END IFNEXT JNEXT IPRINT "Numbers in ascending order:"FOR I = 1 TO 10PRINT A(I);NEXT IEND