0% found this document useful (0 votes)
10 views

COMPUTER

The document contains various algorithms for calculating sums, compound interest, and weekly pay, along with theoretical exercises related to problem-solving techniques and flowchart symbols. It also includes questions about C programming language concepts, such as variable types, pre-processor commands, and built-in functions. The content is structured to help students understand programming fundamentals and algorithm development.

Uploaded by

darshilshah7667
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
10 views

COMPUTER

The document contains various algorithms for calculating sums, compound interest, and weekly pay, along with theoretical exercises related to problem-solving techniques and flowchart symbols. It also includes questions about C programming language concepts, such as variable types, pre-processor commands, and built-in functions. The content is structured to help students understand programming fundamentals and algorithm development.

Uploaded by

darshilshah7667
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 15
174 ‘VIKAS COMPUTER STUDIES WORKBOOK: STANDARD 10 (3) Initialize variable SUM with 0. (4) Check whether NUM 1s divisible by 11. 11 and store remainder in another variable R- R= NUM- int (NUM/11) «11 (5) If R ts not equal to 0, go to step 7. (6) SUM = SUM + NUM. (7) NUM = NUM +1 (8) If NUM < 100 go to step 4. (9) Print SUM. (10) END (2) Write an algorithm to find com time period and rate of interest. (Interest 15 Solution : (1) Start (2) Intualize variable CI with © (3) Initialize variable P with 10,000. (4) Initialize variable N with 5. (5) Inualze variable R with 7. (6) Calculate compound Interest using Cl = Find remainder by dividing NUM by pound Interest for given principal amount, calculated every year.) P+(1+R/100)¥-P (7) Print value stored in Cl. (8) End (3) Find out weekly pay of an employee on the basis of number of houn worked and salary per hour. Solution :( 1) Start (2) Initialize variable No_of Hrs worked with 48, (3) Initialize variable Pay_Per_Hour with 200. (4) Initialize variable Weekly Pay with 0. (5) Calculate Weekly Pay using Weekly Pay = No_of_Hrs_worked + Pay_Per_Hour. (6) Print value stored in Weekly Pay. (7) End THEORY EXERCISE Read the following statements/questions and choose the correct options: 1. In how many types can problems be classified ? AS B2 C4 D.10 2. A complete set of precise and clear instructions ar ins given to a computer for performing a predefined task is called a , " vent A-Pseudo code B. Flow chart C. Algorithm, Program + Which of the following technique 1s used to solve a problem? A:Pseudo code B.Flow chart C. Algorithm All of the given 175 9. PROBLEM AND PROBLEM SOLVING de oon Means simulated code, A.Peeudo code 8. Flow chart C, Algorithm —_D, None of the gwen ts a pictorial representation of every action that are performed within the BA machine process that solves a problem. A.pseudo code B.flow chart —C. algorithm —_D. program #6. which of the following is a pictorial representation of a problem solving technique ? A.Psuedo code BL Flow chart. Algorithm =D. Computer program 7, Which of the following institute has defined the symbols of flow chart’? A.ASCI B.ANSI C.ANCI—D.ASCI #8. Which of the following symbol Is used to begin a flow chart? «Car 4 (Sa) c[San) vGar> 9. Which of the following symbol is used for input/output ? aC) cf] #10, Which of the following symbol Is used to represent input/output in a flow chart? A. Square B.Circle—C, Parallelogram =D. Triangle A. « > B. - “4 {1 Oo 12. Which of the following symbol is used for decision making? 13. Which of the following symbol Is used to Join the two parts of a flow chart’? om) “C-) Luv» 14. Which of the following symbol shows the sequence of actions ? mae <> ©. #18. Which of the following is the standard terminal symbol for a flow chart? A.Circle B.Oval C, Rounded rectangle D. Square #16, Which of the following symbol represents a process? A.Rectangle B.Square C. Circle. D. Diamond D. Met ld tions ina flow chart? 178 used to test cond! symbol 18 117, wien of the fining BON 1 TES square A.Diamond —B.Circle to show sees 18. An arrow symbol in flow chart 18 us uence of action > B.the sed ‘of an action A.the flow of an action D.the completion Crileetet of to sstinguish diferent COnNECTOF PATS In oy #19, Which of the following 1s other characters are used, chart? ts oF B. Alphabet A. Arrows are used, D. Diamonds are used: .Cireles are ape the data enters from one point Bul COMES Out froq, 20. In which of the following, ‘more than one point? c.comector B- Decision A. Input/Output B. Process 21. When a flow chart becomes too large, symbol can be used to Join the [wo A.mput/output B.connector —C. process 22, In which of the following symbol, the variable 1s ass! {8 displayed ? A.Oval B.Diamond —C. Rectangle —_D. Parallelogram 23. In which symbol the statement ‘Print Bis written? A.Oval B.Rectangle €.Parallelogram — 0. Circle 24. Which of the following symbol is used to write the statement Let X=A +B? A.Oval B.Diamond €. Rectangle. Circle #25. Which of the following refers to the core part of any solution ? Allnput B. Output, Process. D. Algorithm 26. Which of the following can be considered as a computer process ? A.Social BL Arithmatic operation C. Logical operation D. Both B and ¢ 27. Which of the following operations are performed using process symbol in flow to ft into a single page, In such ease y parts of a flow chart. D. flow line gned the value or the output chart? A.Social B, Mathematical operation —C. Logical operation 28. Which of the following are arithmetic operation ? Both B and C ‘A. Addition, Subtractions B. Division, Multiplication €.Both A and B D. Taking any decision 20... 1s an entity whose value once assigned remains fixed and cannot be changed during the entire process. A.Variable B, constant C. Hoth A and B “symbol shows the value of vartable, A.Process B. Decision. Flow line D, Terminal BL. one refers to a Uist of instructions in a s Proper order to solve a problem. A-Peeudo code B.Algorithm —C. Flow chart, Program ° #82. Which of the following Is not a problem solving technique? A-Pseudo code B.Flow chart. Algorithm D. Sequenoe None of the given 30. @ problem called? Algorithm — B.Flow chart ©. Sequence py, Roadmap i 9. PROBLEM AND PROBLEM GOLVING 17 #94. Which of the following refers to the purpose of Algorithm and Flow chart? A. Know the memory capacity B. Identify the base of the number system C. Direct the output to the printer D. Specify the problem completely and clearly 95. An algorithm is written in a natural language ke A-Chinese B.Eagiish C, Russian D, Gujarati shows the flow of the program. A.Terminal —B.Process. €. Flow line, Decision 37-0. symbol refers to beginning as well as the end of a flow chart. A. Terminal —B. Connector C. Process. —_D, Decision ‘$8, Which of the following word 1s used within CD smb? Al BEND C.START D. Both B and © 38. With which of the following @ flow chart starts? j 40. With which of the following a flow chart ends? B. a 41. Which of the following instruction ean be written in Le symbol ? AStart BEnd C.Inputx D.C=sA+B 42. Which of the following symbol takes the value from the input device and assigns It to variable x? af ems) 48. Which of the following command will print the value of variable y? “fs 7 Gap vf x J 44. Which of the following represents process? ng sent 7 45. Which of the following command can be written in decision box ? Ax>y? B.Printy C.Inputx D.C=A+B 38, B. D. A. c. BY “Panty bols are used while —~ « utsourput sym | 160 46, For which of Whe following 1nP' “imag problem ? ii Bo give output ni. Preble” ae fram ET AF the ven C.To display a message ‘al calculation 0: . ming mathematical tO display 12,47, whieh symbol Is used olen aon D- Process Y Mee, A.Input/Output —B. - ' I aga ve used to aller the normal sequenice OF the solution. aaa D.start process Bedeelslon box ©: conneCIO: sta 14, 48.1 how many says, decision ox ca Bevan? A2 BS C4 DS 1s, 80m which of the following way deciston box used? 1 3 hwo way B.Three way C-Multiple way DAM! of the given sxc nnae cus ©) smb represents? ‘6 ‘A.The flow of the process Is on part 5. oa B.Part 5 of the flow starts from here. €.Go to page number 5 to see the process. 5 D.None of the given 52. In flow chart, when the same sci of statements 1s repeated for more tha lume, it 1s called ame Avnesting B.looping = C. jumping Dall of the given | gg SS Mtat does @ exmbol represents ? ~ A.The flow of the process is on part 5. B.Part 5 of the flow starts from here. ©.G0 to ‘ Go to page number 5 to see the process. D.None of the given om PRACTICAL EXERCISE 2 w a flow chart and write an alsin con, write an algorithm — anc for the following: Convert the given meters into centimeters “2 nber. ¢ ‘all tt metre att tte is a 10, INTRODUCTION TO C LANOUAGE ai i me niatement 4 Include Instructs the compiler to include the contents of header Me math.h, This Mle contains mathematical funeuon sqrt } aint) 8 uNer defined function 9 im ig) The execution of the main( } starta with the opening curly bracket. (9)The statement double number, result defines two variables with name number and resull respecuvely, {71 The prinif statement prints the message for the user to enter the value of number (a) The scant statement reads value of “number* from the user. (9) The siatement resullesqri(number) is a C expression. It uses sqrt in-built function along with variable number, The sqrt function takes the number as a parameter, and returns the result after performing the calculation, The result 1s stored in the variable “result” (10) The printf statement prints the message along with “number” and “result”, (11) The statement return provides normal exit from the function, (12) The closing curly bracket indicates the end of the function main( }. THEORY EXERCISE Read the following statements /questions and choose the correct options: L.A set of precise and clear instructions gven to a computer for performing a predefined task is called , A.Syntax B.DataC. Program —_D. Input 2. The program that converts programming Janguage into the machine language 1s ealled cress A.Compiler B.Loader C. Linker. All of the given owns the credit of creating C language. A. Bill Gates B. Steve Jobs C, Pascal D. Dennis M. Ritchie 4. language was derived from ABCPL BICPL C.IPCL D.SGML 5. The full form of BCPL Is A.Basic Combined Programming Language B. Basic Computing Programming Language C. Best Computer Programming Language D. Business Co-ordinated Programming Language 6. C language has been standardized by ......... A. ASCII B. ANSI C.ANCI ‘D.All of the given 7. The full form of ANSI 1s . A. American National Symbolic Institute B, Australian National Symbolic Institute C. American Natlonal Standard Institute D, Australian National Standard Institute 8. Different support ANSI standard. A. operating systems B, compilers C. programming languages D. both A and B a yIRAs COMPUTER STUDIES WORKBOOK: STANDARD 10 . language B. portable Co 8 oes given ‘A structured er kev D.all of the c middie level and high known as? lage 18 which other name C lang 10. By i pose Program Language BANS! C C.Both A and B p.AScil © > fowing is a comment secon * ne a ms B File Include Section ei ” D. Symbolic Constant Definition : n ion of . Suen of fonowing is/are included in the oPton al sect pevetias 12, Whie A. Documentation bolic Constant Definition 101 c. Fie: Include Section and Global Variable Declaration D.All of the given josed within: «.- . in © language, comments are encl - iz . 2 In 6 engines, od > at and */ "and lowing are defined using capital letters? ei ae wowen Symbolic constant DD. Global variable #18, The pre-processor directive # define 1s used to define which of the following ta ¢> A. String constant 3B. Symbolic constant Culnteger constant D.A character ten USING nn. 16. In C language, symbolic constant is generally writ se 'B. # define A. # include D.none of the given c. # main 17. The file contains information about the... A.user defined functions B.in-built functions used im the program C. symbolic constant D. variable 18. The extension of header file Is A.chead B.cheader 4h. none of the given 19... of the following is a pre-processor command, A. maint ) B. scanfl ) C print) D. # include 20. Each C program starts with ......... statement. A.# define PI 3.14 B. # include C. # include D.none of the given 21. How many types of variables can be used in a C eC 7 A2 B3 C4 D5 . progam’? 22. C variables are governed by Aype B.name C.scope Dall of the given 23. The variables defined within... are known as local variable les. ACU) Bll c<> pg 4 24. The gobal variables are defined Awithin ( ) B.before defining main( ) C.after the end of main{ ) D.none of the given SS ee rating a 10. INTRODUCTION TO ¢ LANGUAGE exccution of C program starts from ........ * ‘g include B. #deflne PI 3.14 fatal ) Dall of the gyen one FE following 's a user defined function. Asalo() Beprintl) — C.scanfl ) —D. #define PI 3.14 tne functions already available tn © that a use 1 OY toc F can use in his or her program Alnbullt’ B.Library C.User defined DLA or B The functions that a user creates as per his/her requirements are called an a | Alnbullt B.Library C. User defined DLA or B vow Of the following ts /are bulltin function/s, Apnint) Bescanfi) —C.sqri() Dall of the given ‘90. At which place, the user defined functions other than the main( } are written In © program ? Abefore maint) B.after main( ) C,A or B D.within main( ) $2... of the following function provides normal exit from the main{ ) or any other function. Ascanfl} B.returnO C. printf| }—D.End main 32, The function 1s used for calculating value of X raised to given power. A.pow() Beexpo( } C.sqri) Dinone of the given 89... Indicates the beginning of the main{ ) function. At Bl Cl D.none of the given 34.C statements ends with joo sign, A: Bs CG. Dt 95. 0. of the following indicates ihe end of the main( ) function. A) Bl GC) D> 36, The program writicn using a text editor ts known as ... A.source codc/source program B. object code C.executable code D.loader code 37. What Is the extension of C souree code? Avusre Boe Cexe D..csre #38. Which of the following is an extension of C program file? Ac Bh Gs Dt 39. Which of the following converts a source program into machine language program ? A. Compiler /translator B, Loader C. Linker D.All of the given 40. The source code converted into machine language program by compiler is known 88 isto A. Object code B. Object program \ C.A or B D. Executable code AL. The default extension of object code Is... Ac Boxe Cob) D0 | is used to link the object code with the library functions giving executable program or code. ACompiler B.Loader C, Linker. All of the given 42. So 200 ogram called a pr 443. Executable code 1s loaded on to memory by # PI the required data. p. loader A.linker B.comptier C. text editor 44. The extension of executable code 1s Ac Bere C..obf Do 45. .. _ is used as a compiler for C program: along wing Aree Beg Cecg DBMTE oo haraeters categories? #46. Which of the following number refers to AO B2 G4 D8 tot 847. Which of the following C character cae es the pel ‘A.Letters B.White spaces €, Special the of the following s/are pre-processor eo — A. # include B.#define C. # function D. AD. oo Instructs the com the values specified against It. A. # include C.main( } 50. The syntax of header file 18 .....--- A. # inchide ©. # include 51. Which of the following function ts used to print message / A. scant ) B main( ) C.return{ ) D. printf{ ) 48. B. # define D.None of the given B. # define D. # define after maint), A print} Bescanfl ) . prototype —D. All of the given 53. Which of the following can be included in C character set? belong? er to replace all occurrences of SymbOUC COnStantS yin, instructions ? Instructions are needed in C program if a user defined function 1s write A.Letters and digits B, Special characters C. White spaces D.All of the given 54. ...... of the following comes under the letters category of C character set A.0t09 BAtoZ C.Form feed D.= 55.0 to 9 comes under the ........ category of C character set. A.letters B.White spaces C. Digits. Spectal characters 36. of the following are the white spaces of C character set. A.Hortzontal & vertical tab B.Blank space, Form feed, New line CH @ILIWC) D.Both A and B of the following are the special characters of C character set ALL CRON <> = Bes HH ANY C@, 8. #, & = D.All of the given 58. The C character set is made up of . la A-Hindi B.Chinese C. English. Japanese 89. Set of coun sequential © statements is rogr: identified as © A-starting —B, internal C.ogleally _D. escape mean G0.A ........ in C 48 known as token of C. Aeword — Becharacter C.senience Dall of the given 81. basteally Identifies ....... types of tokens A6 BB C12 D4 a 10. INTRODUCTION TO © LANGUAGE -" can of the following 1s not a token of Astring B.Operator C. Word, tone gs. Predefined words in C language are known as ..., ‘A. Character B. Keyword c. Symbolic constant D.None of the given 4, ANSI C standard supports ....... predefined words. A10 B20 €.92 D.30 95, Which of the following keyword is avaliable in C language? Acdefault B,ampersand —C. greater than Dy less. than 966, Which of the following is a valid keyword of C? A.olsize Beelzeof C.forsize _D. sizefor 67, A word that a user has constructed by making use of C character set 1s known a8 aise AToken B. Keyword —G,Identifier _D, Variable | is an example identifier in C language A.cost. B.main| } C.float All off the given 69. 4s an identifier. Ait B12 soo 18 @ keyword, A.maint | ‘B. int C.12 D.*: 71. Which of the following ts not a keyword of C? A. void ‘B. valid C. while D. volatile 72. The entity that is capable of storing different values is known a8 eo. A.Constant B.Variable C. Keyword. Character 73. The data within the memory space 1s referred by a name known as A. Identifier ‘B. Variable name C, Keyword D, Token 74. Which of the following cannot be used in a variable name? A.Blank space B. Keyword C.Letters.-D. Both A and B 78. Each von of the program must be assigned with initial value before using them in a progam. A. constant B. keyword, C. variable D. character 76. The first character of variable name must DE srerriee « A. letter Be C. underscore D.A or © 77. Which of the following can be used in a variable name? } Demain( ) 70. A.Letters, digit, underscore B.Leiter, digit, special characters C. Letters, digits, blank spaces D.None of the given 78. The maximum length of varlable name as per ANSI standards Is ........ characters A830 B31 C255 D.256 79. Which of the following variables are considered as different variables? A.sum BsUM C.SUM DAI of the given 80. Which of the following is a valid variable name? A.togly B.Int C.Interest D, All of the given #81. Which of the following 1s an fnvalid varlable name In A.Register B. Register C. registre —_D. register 82. Which of the following ts an invalid variable name ts C? A.char B.tot&qty C.1 mark —-D,All of the given VIKAS COMPUTER STUDIES WO RKBOOK: STANDARD 10 202 83. What 1s constant in C language? coy A.The entities that changes tts val jue throughout the execution of B.The entities that do not change its val Ne end of the program. Program, un C. The entities that changes tis value 1" D,None of the given B84... IS a constant Aim Bt Giz DC is an operator of © language. B{ G* Die sou Of the following is a string A-main() B.“Welcome" C." 1) 1. fs a special character of © language. A.50° Boman €.{ } — D.int 88, Numeric constant means... ‘A.the constant that stores numeric velue B. the constant that stores string valuc. C.the constant that docs not store any value. D.none of the given 89. The entities of C that do not change its value throughout the execution of progray, 87. are known as A.Keyword B. Token C. Variable‘. Constant 90. There are ...... types of integer constants, A4 BS 3 D2 91. of the following are integer constants. A.Hexadecimal —B, Decimal octal C. Binary -D. Both A and B 92. The hexadecimal constants use numeric digits from 0 to 9 and letters AAtwF BGWK CAWK DU oz 93. In hexadecimal constant, A to F refers to numeric values ..... A.15 to 20 B10 t 15 C12 t 17 D.20 to 25 94. The constants in C language are displayed by using Ox or OX as prefix A.hexadecimal B.decimal_ C.octal Dall of the given 95. The ......... constants use numerte digits from 0 to 9 and letters A to A-decinal B. hexadecimal C. octal. binary 96. Which of the following constant can have unary plus or minus as prefix? A-Decimal —B. Hexadecimal C. Octal. Al of the given 97. The .. constants use numeric digits from 0 to 9. A-octal B.decimal C. binary Dall of the given 98, The ........ numbers have base 8, A-decimal —Beoctal C. hexadecimal. all of the given 99. The octal constants use numeric digits from A.0to8 B.1to7 Clw 8 D.0te7 100. In C las & ea st pose of the following constant is displayed using 0 as prefix . hexadecimal CG, gctal hy . hexagone #101. Which of the following is an invalid int AOxG BOxA C.0xB Dox 102. The constants have base 8 A.dectmal —B. hexadectmat C. octal respectively 'eger constant in ©? D. binary ces wer 10, INTRODUCTION To ¢ LANGUAGE Nant uses numeric dj 09. The cons! igita from 0 to 9, A.decimal —B. hexadecimal —C.ectal both A and B } goa, The ssn Constant uses numeric digits from 0 1 A.decimal B, hexadecimal C,oetal binary , of the following Is a valid octal constant. A.OX79-B.04BC.0XB5 123 108... OF the following Is valid hexadecimal constant, A.OX78 5.045 C.OXBS—D, 123 #107, Which of the following 1s valid real constant in C? A.-2.0.5¢5 B,~20.505.5 C.-20.8e5 —D.-20.56.5 108. ....-. Constant uses numeric digits from 0 to 9 A.Decimal B. Hexadecimal C, Octal‘. Both A and B 109. ........ Of the following Is a valid octal constant. A059 =B.0BB C.856 L075 +» Of the following 1s a valid octal constant. A039 -B.021 C058, 049 LLL. woe Of the following is an invalid hexadecimal constant. AOXAH = B.OXAB —C,OX97_—_D.OX53. 112. of the following 1s a valid hexadecimal constant, A.OX45 B55 C.OXAG_——D.OX9.9 113, Real constant refer to ........ numbers that have fractional part. A.octal B. hexadecimal C. decimal‘. binary 114, Real constant can be represented in ww... form using a mantissa and exponent A.logical Bi, conditional C. sclentifle Dall of the given 115. ....... of the following 1s a valld real constant. A.-10.000,00 B.-200S C.200.00 D.5OE, -2 116. ....... of the following in an invalid real constant, A.-2.5e5 B-200 C.50E-2 D,-2005 117. In 0.1050E2, ...... {s known as mantissa. A.0.1050 B2 CE/e Daal of the given 118, In 0.1050E2, ........ 1s known as exponent. A.0.1050 B.2 C.E/e D.All of the given 419, There are... types of character constants. Az BZ C4 D5 120, A single character constant 1s represented by using single character enclosed within 108. 110. At” BY a<> Dit 121, Which of the following 1s valid single character constant in ©? Ae Bw ca" D, Both A and B 122, String constants are denoted by using sequence of characters enclosed within .. AS Be" Ci) DI} 123, Every string in C are ended by adding A\n BAO CAE Dib 124. String constants are enclosed within were pie ss oh ye 204 VIKAS COMPUTER STUDIES W emory ? 18. Which of the following occupies se ea Cas mtg anc et yemnory ? 126. Which of the following occuples single space sn Ack BAA CBT D. “Welcome 127, Which of the following occupies two spaces It me Aw BN C. bp 128, Which of the following constant |A.Single character constant C. Back slash character ee al two memory spaces in © ’ Ning aencer B Swing G,Back slash character D.AIL of the sven are also known as escape sequence characters A. Numerte constant B. String constant C. Back slash constant D. Character constant 191. The first character of _ constant 1s always a back slash (\). A, single character B. back slash character D.all of the given ave ASCII valuc associated with It? B. String constant p.Both A and C 190. ©. string 182. The first character of back slash character 1s always @ - A? B> G.\ D.ASCII value _ as the output of these constant 193, Special character constant are known as is not a character but white spaces. A. single character B. blank character C.escape sequence character D-all of the given 194. What is the use of Escape sequence ? AMerging B.Coding C. To undo some work done — D. Formatting 135, uu. Is used to insert a new line at the time of input/output? Ale Bir Ci Dib 196. The ASCII value of \a Is A7 BS C9 D10 197. The ASCII value of \O Is wo... A7 B10 GO D9 188. The ASCII value of \b is A7 B10 C9 DB 199. The ASCII value of \t 1s A7 BB G8 D.10 140. The ASCII value of \n ts A8 BS Gi1l D1 141. Match the back slash character with its use: 'W Back slash character ‘BY Use 110 a, Inserting back space 2 D. Inserting vertical tab 3. : in ¢. Inserting null value wv 4. Inserung new line A.(1 al, (2+b), (3c), (4-4) C.( +b), (20), (3rd), (4a) B.(1 +e), (2a), (8-+d), (4b) D.ilod). (2--a), (8-40), (49d) i — 10, INTRODUCTION TO C LANGUAGE 142. The ASCH value Of un. J8 11, Aw BY Cla Di 143. Match the back slash character with its use: ‘® Back slash character 'B’ Use a a a7 a Inserting question mark 2. b, Inserting back slash 3a ©. Inserung double quotes ay d. Inserting form feed Atl (2b), (3-¥c), (44d) B(1—b), (240), (3-44). (4a) Cel, (2d). (Bra), (4b) D.(1-4d), (Ze), (3-ra), (4+) 144, 0. 18 used Lo Insert audible alert ANS BAt cn Dw 146. \t 1s used to insert A.audible alert B.vertical tab C. horizontal tab —D. form feed 148. Which of the following Is used to insert carriage return? AW Bie Clr D\\ 147.‘ back slash character is used to A.display single character B.Insert single quote C.to find singe character D.to Insert question mark 148. Which of the following ts not a symbolle constant? A. #define P printf B, Adeline F float C. #define PI 3.14 D. #include 149. constant is always defined with #define, A.Numerle B.String C.Symbolle _D. Character 150. ....... of the following has integrated development environment A.ScITE B.Eelipse CC. gedit. = Dwi 151. Which of the following text editors can be used in Linux environment? Avi Bigedit C.emacs D. All of the given of the following is a Unix/Linux based ANSI C complier. Av Boemacs C,gee —D. Eclipse 163. The full form of IDE 18 oo... + A.Integrated Development Environment B. International Development Entity C.Informal Developed Environment D. Informal Developed Entity 154, Which of the following command opens gedit text editor for myprogram.c file? ‘A.gee myprogram.c B. gedit. myprogram.c C. myprogram.c gedit D.AM of the given 155. Which of the following command 1s used to compile myprogram.e file written in gedit ? A.gee myprogram.c B. gedit. myprogram.c C. myprogram.c gedit D. myprogram.c gcc 156, Which default file is created to store the output of the C program written in gedit ? A-gout B.o.0ut C.outout D.in, out i a ace ian a ANDARD 10 208 VIKAS COMPUTER STUDIES WORKBOOK: ST) . of the © progray 187. Which of the following command 1 used 19 se We OUP iii written in gedit? D. ja.out t Ceexecute aout De Arun aout — B. gcc a.ou! fie 1m the command cc = MYProgram 9 188, ....... is the name of the output myprogram.c, co pAorB ‘A. myprogram.o —_B, myprogram.c = 7 - 280) ccc, ia WA maids oF 'WNE sone: fic ta. (he) bommand BC <0 Myprogramis ee D.A or B A.myprogram.o Bs myprogram.c C.-0 160. If C program is written using tn-bullt_ math function used to link the math Mbrary. A.-math — B,-mathib — C.—Im 161. ....... allows us to compile and run simple progr: A.gedit. B.ScITE C. Notepad —D. Wordpad 162. Which menu in ScfTE contains the command to compile A.View B.Bullers €.ToolsD. Bait 163. Which key 1s used to compile C program in Si ACul+F7) BFS CFT D.Cul+FS 164. option of Tools menu in SciTE is used to execute C program. A.Run B. Execute €.Ge —_D, Siart #165. Which of the following function key is used to directly execule a program In SeiTE? AFT B.F9 CFB BFS 166. In ScITE output window, the text suecceding by compiler. A> Be ©? D@ 167. Which of the following key Is used to enable or disable output window in » command should be p.-ml am with one window only. and execute the fle? ITE? symbol refers to actions taken ScTE? AF? BFPO CFS DFS 168. ....... menu and commands are used to enable or disable the SciTE output window. A.Tools > Output. File Output C. Option + Output —_D. View —+ Output 169. key Is used to clear all the previous outputs of ScITE output window. APS B.Ctrl+F5 C.SMIR+F5 D.F8 170, ..... menu and commands are used to clear all the previous outputs of SciTE output window. A. View» Clear Output B. Tools -> Clear Output C. Tools Remove Output D. View Remove Output PRACTICAL EXERCISE *1.Write a C program to write down your name, your school name, standard and address of the school in the center of the screen, Name ‘School Name Standard

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy