Q 1 S!"!e Tr#e $r F"%se
1. In QBASIC, CLS command is used to clear the output screen. Tr#e 2. PRINT 2!"#$% displa&s 2!"#$. Tr#e ". Input de'ice is used to displa& the processed in(ormation. F"%se ). SCR**N 1 has $)+ columns and 2++ ro,s. F"%se -. In LIN* command B is used to dra, a .o/. Tr#e $. 0ard dis1 is a secondar& stora2e de'ice. 3. All the Input and 4utput de'ices are attached to the S&stem unit. 5. In QBASIC, line num.ers that ,e 2i'e should .e ,hole num.ers. Tr#e 6. In QBASIC, output ,ill .e ,ithout 2ap ,hen ,ords are seperated .& comma7,8. F"%se 1+. In QBASIC, LIN* command is used to dra, a line or a .o/ (rom the speci(ied position. Tr#e Tr#e Tr#e

Q 2 F&%% &n !'e (%"n)s
1. In QBASIC, the (i2ures are dra,n in 2raphics ,ith an in'isi.le *+$&n!er** 2. In QBASIC, 9RA: 0-+% command will draw a line in upward direction towards the
left side.

". *In+#!** de'ice is used to (eed data into a computer. ). In QBASIC, SCR**N 2 is called **'&,'** resolution 2raphic mode.
Pa2e 1 o( -

An Interpeter is a computer pro2ram that e/ecutes instructions . 5. S/n!"0 ? SCR**N n :here n is the choice o( the mode 7+. This command is used to chan2e the resolutions o( the screen i.ritten in a pro2rammin2 lan2ua2e. S/n!"0 ? 9ra.$%%$w&n. :rite the main components o( computer.hite. :rite the s&nta/ o( 9RA: command. 1.olic Instruction Code C4B4L ? Common Business 4riented Lan2ua2e <4RTRAN ? <ormula Translation ". */amples o( Primar& Stora2e de'ices are @ RAA. or 28 ). PRINT Te/t% $. S&stem Bnit. to chan2e the num. Pa2e 2 o( - . Ans. 3. S/n!"0 $. :rite the (ull (orm o( BASIC.-. :hat is S&nta/. Ans. to .lac1 and . The main components o( computer are Input Bnit. All statements in BASIC must terminate . BASIC = Be2inners> All Purpose S& o( ro. Ans. 1. Stora2e Bnit and 4utput Bnit. 2. :rite the (unction o( a C4L4R command. as SCR**N 2 2raphics are onl& in . This command is used (or SCR**N + and SCR**N 1onl&. The rule that . Ans. :hat is an Interpreter. :hat is a SCR**N Command. Ans. <lopp& 9is1. C4B4L and <4RTRAN. This command is used to chan2e the colour o( te/t and 2raphics. Ans. direction steps% -. :rite the s&nta/ o( PRINT Statement. Q 3 Answer !'e . Aa2netic tapes 6.s and columns on the screen. :rite the e/amples o( Primar& and Secondar& Stora2e de'ice.e. Ans.ith the *en!er** 1e&. Ans.rite the commands and a statement is called S&nta/. Ans. PRINT 1$22"n3 ? Line No.e (ollo. R4A */amples o( Secondar& Stora2e de'cies are @ 0ard 9is1.

. . Ans. */amples@ Ee&. a. Fo&stic1. E0"2+%e= 1+ PRINT %0*LL4%D%<RI*N9S% 2+ *N9 4utput .& semicolon the output . Ans. .o .et.hen comma is used . the processed in(ormation is sent to the 4BTPBT BNIT.ill . In+#! Un&! ? 9ata and in(ormation need to . The de'ices used to (eed data or in(ormation are called Input de'ices.ith Conal 2aps in . Q 4 4&. 9RA: *)+% and 9RA: <)+% Ans.ords or num.ers then the output .e 0*LL4 <RI*N9S Se2&1$%$n &n PRINT S!"!e2en!5 I( the .eren!&"!e !'e .1+. Scanner etc.e on the same This unit .ithout a 2ap. Pa2e 3 o( - . DRAW “E40” Will draw a diagonal line by 40 steps in the upward direction towards the right side. 1. The de'ices on .een t.. DRAW “F40” Will draw a diagonal line by 40 steps in the downward direction towards the right side.e 2i'en to a computer throu2h an INPBT BNIT. . c. S&stem Bnit ? Aost parts o( the computer are (ound in a .hich processed in(ormation is displa&ed are called 4utput de'ices.%<RI*N9S% 2+ *N9 4utput .$%%$w&n.ith the e/ample. C$22" &n PRINT S!"!e2en!5 In PRINT statement. Input and 4utput Bnit. Comma and Semicolon in PRINT statement .ill send the data to the s&stem unit.ers are separated .ords or num.o/ called S&stem Bnit. Ans. 2.een. Aouse. E0"2+%e= 1+ PRINT %0*LL4%.ill .e 0*LL4<RI*N9S .ill appear on the same line. O#!+#! Un&! ? :hen data or in(ormation is 2i'en to the S&stem Bnit throu2h the input Bnit.ill .oard. 9e(ine S&stem Bnit.

a line or a .e in capital letters.ith the s&nta/. is the column num. c & is the column num. S/n!"0 ? LIN* 7&. num. Appropriate BASIC lan2ua2e .ords must . ". #t is a &igh Resolution %raphics $ode. SCREEN 1 and SCREEN 2 SCREEN 1 1. / is the ro. 2. Ans. #t is a $ediu! Resolution %raphics $ode. :rite the rules o( . d. C speci(ies the colour. num.ers. C. #n SCREEN 1' we can change the colour o( graphics. SCR**N 1 and SCR**N 2 the s&nta/. All the instructions that . 7a8 Ans.. CIRCLE 1$22"n3@ CIRCL* 7&. This screen has 20 colu!ns and 200 rows. #n SCREEN 2' we can not change the colour o( graphics. < is 2i'en . . . LINE 1$22"n3 ? This command is used to dra. R#%es ? 1.e 2i'e to the computer must . r. Printer. B is 2i'en .e used .er and / is the ro. Ans.hen &ou .o/. */plain LIN* command .er and a is the ro. a circle (rom the 2i'en Position as the centre and (or the 2i'en radius.ritin2 a QBASIC pro2ram. r as the radius o( the circle and c is (or the colour. Q 6 I3en!&.o/ (rom the speci(ied position. a8. /8 ? 7.E0+%"&n &n 3e!"&% 1. All instructions must start .o/./ !'e err$rs "n3 wr&!e !'e 1$rre1! +r$. Ans. */plain CIRCL* command .er o( end position.ith B to (ill the . SCREEN 2 This screen has "40 colu!ns and 200 rows.ith the a . S/n!"0 $. B< & is the column num. num. /8 .r"2 Pa2e 4 o( - . Q .er o( startin2 position.ant to dra. ". CIRCL* Command ? This command is used to dra.*/amples@ Aonitor. 2. 2.hile 2i'in2 instructions.

9ASIC Pr$. cls 2+.r"2 1+ PRINT )!-#%D )!2+ PRINT " "+ PRINT TAB7$+8D :elcome % )+ PRINT 5!)% -+ PRINT hello% D ton&% $+ PRINT 2+H)+ 5!) helloton& $+ )!-#2+ " :elcome Pa2e .") 1+. 9RA: B)+%D%9)+% )+ 9RA: *-$% -+ dra.$%%$w&n. r$+% $+ end 1+ SCR**N 1 2+ C4L4R " "+ 9RA: B)+D9)+% )+ 9RA: *-$% -+ 9RA: R$+% $+ *N9 Q 7 8r&!e !'e $#!+#! .$r !'e . SCR**N 1 2+. PRINT 6H2# )+ PRINT TABI2+JD Aonitor% -+ PRINT )!" # $!2% $+ PRINT computer 1+ CLS 2+ PRINT 1$G) "+ PRINT 6H2#% )+ PRINT TAB72+8D Aonitor% -+ PRINT )!" # $!2% $+ PRINT computer% () 1+. PRINT 1$G) "+.o( - . C4L4BR " "+.

Sign up to vote on this title
UsefulNot useful

Master Your Semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master Your Semester with a Special Offer from Scribd & The New York Times

Cancel anytime.