Posts

Showing posts from January, 2026

1 Tsc

Image
(78) प्रश्न १: सूर्यलाई एक फन्को घुम्न पृथ्वीलाई कति समय लाग्छ ? A. ३६० दिन ५ घण्टा ५७ मिनेट B. ३६५ दिन ५ घण्टा ५७ मिनेट C. ३६५ दिन ५ घण्टा ५७ मिनेट D. ३६६ दिन ५ घण्टा ५७ मिनेट ✅ सही उत्तर: B व्याख्या: पृथ्वीले सूर्यको एक परिक्रमा पूरा गर्न करिब ३६५ दिन ५ घण्टा ५७ मिनेट लाग्छ। प्रश्न २: गर्मीयाम पृथ्वीको तलतलमाथि कुन भाग अत्याधिक तातो हुने गर्दछ ? A. बिचलनको रेखा B. डिकन प्लेट C. केन्द्रिय उच्च भूमि D. छोटा नागपुर प्लेट ✅ सही उत्तर: B व्याख्या: भारतको दक्षिणी भागमा पर्ने डिकन प्लेट गर्मीयाममा अत्यधिक तातो हुन्छ। प्रश्न ३: नेपालमा महासागर र सुद्र पर्वतीय क्षेत्रमा बीचको क्षेत्र कुन हो ? A. भारत प्रदेश B. दूर प्रदेश C. तराई प्रदेश D. सुद्र-मध्य प्रदेश ✅ सही उत्तर: C व्याख्या: नेपालमा उच्च पर्वतीय क्षेत्र र तल्लो भागबीचको क्षेत्र तराई हो। प्रश्न ४: नेपालका हिमालीमा बिभिन्नता हुनुको मुख्य कारण कुन हो ? A. उच्च र न्यून क्षेत्र असमानताको स्थितिमा फरकपन B. प्राकृतिक जीवन्त विविधता C. भौगोलिक स्थिति फरकपन D. मानविक तत्व ✅ सही उत्तर: C व्याख्या: हिमाली क्षेत्रमा विविधता भौगोलिक अवस्थाको फरकपनका...

Eng qn10

Image
 

Modular Programming Grade 10

  1. Write a program in QBASIC that asks two numbers to find sum of two numbers using SUB....END SUB program and difference of two numbers using FUNCTION...END FUNCTION. DECLARE SUB SUM(A,B) DECLARE FUNCTION DIFF(A,B) CLS INPUT "Enter first number"; A INPUT "Enter second number"; B CALL SUM(A,B) PRINT "Difference ="; DIFF(A,B) END SUB SUM(A,B) S = A + B PRINT "Sum ="; S END SUB FUNCTION DIFF(A,B) DIFF = A - B END FUNCTION 2. Write a program in QBASIC that asks three numbers to find average of three numbers using SUB....END SUB program and product of three numbers using FUNCTION...END FUNCTION. DECLARE SUB AVERAGE(A,B,C) DECLARE FUNCTION PRODUCT(A,B,C) CLS INPUT "Enter three numbers"; A, B, C CALL AVERAGE(A,B,C) PRINT "Product ="; PRODUCT(A,B,C) END SUB AVERAGE(A,B,C) Avg = (A + B + C) / 3 PRINT "Average ="; Avg END SUB FUNCTION PRODUCT(A,B,C) PRODUCT = A * B * C END FUNCTION 3. Write a prog...

Debugging

  1. [SLC 2065] Buggy Code (with errors underlined): DECLARE FUNCTION SUM(a,b) REM Program to sum given two numbers Input ”Enter first number”; x Input “Enter second number; y PRINT SUM(__a,b__) END FUNCTION SUM(__x,y__) SUM=__a+b__ END Bug: Wrong variables used ( a,b vs x,y ). Corrected: DECLARE FUNCTION SUM(a,b) INPUT "Enter first number"; x INPUT "Enter second number"; y PRINT SUM(x,y) END FUNCTION SUM(a,b) SUM = a + b END FUNCTION 2. [SLC 2072] Buggy Code: FUNCTION SUM (m,n) Rem to print sum of two numbers a= 6 b= 7 __DISPLAY__ SUM (a, b) END FUNCTION SUM (m,n) S = m +n __S = SUM__ END __SUM__ Bug: DISPLAY instead of PRINT , wrong assignment S = SUM , wrong ending END SUM . Corrected: DECLARE FUNCTION SUM(m,n) a = 6 b = 7 PRINT SUM(a,b) END FUNCTION SUM(m,n) S = m + n SUM = S END FUNCTION 3. [PABSON 2079 A] Buggy Code: FUNCTION SUM(M, N) REM to print sum of two numbers A=6 B=7 __DISPLAY__ sum(M,N) END FU...

C program

  C Programming Structured Programming Structured programming is the programming approach that follows a top-down design , where developers break the overall program structure into different sub-sections. Advantages of Structured Programming a) Reduces complexity and makes coding easier. b) Requires less time to program and is easy to debug. c) Modules can be reused and the flow of control is clear. C Language C Language is a high-level structured programming language used to develop system software. It was developed by Dennis Ritchie at Bell Telephone Laboratories in the early 1970s. C is called a middle-level language because it combines elements of high-level languages with some features of assembler. Data Types Used in C Data types are used to identify the type of data and the associated operations for handling it. Data Types in C a) char b) int c) float d) double e) void Why C is Called a Middle-Level Language? C is called a middle-level language be...