fpl

66
Introduction to Computer 1. Hardware Q 1. All computers execute_________ A BASIC program B COBOL program C Machine Language program D FORTRAN program Q 2. Today ` s computers belong to _______ generation. A Third B Fifth C Fourth D Second Q 3. Which hardware was used by first generation computers? A Vaccum tubes B Transistors C VLSI D IC's Q 4. A device used for process of modulation & demodulation is called as _________- A Router B Modem C Switch D Hub Q 5. Which one of the following is a storage device ? A Store Room B Printer C CPU D Pen Drive Q 6. _____ is the oldest calculation device. A Abacus B Clock C Difference Engine D None of these Q 7. A set of registers is one part of______. A Input device B Control unit C Output device D Central Processing Unit Q 8 A powerful multiuser compute rthat is capable of supporting hundreds or thousands of users simultaneously is called A workstation B minicomputer

description

fpl ..........................................

Transcript of fpl

Page 1: fpl

Introduction to Computer1. HardwareQ 1. All computers execute_________A BASIC programB COBOL programC Machine Language programD FORTRAN programQ 2. Today ` s computers belong to _______generation.A ThirdB FifthC FourthD SecondQ 3. Which hardware was used by first generation computers?A Vaccum tubesB TransistorsC VLSID IC'sQ 4. A device used for process of modulation & demodulation is called as_________-A RouterB ModemC SwitchD Hub

Q 5. Which one of the following is a storage device ?A Store RoomB PrinterC CPUD Pen DriveQ 6. _____ is the oldest calculation device.A AbacusB ClockC Difference EngineD None of theseQ 7. A set of registers is one part of______.A Input deviceB Control unitC Output deviceD Central Processing UnitQ 8 A powerful multiuser compute rthat is capable of supporting hundreds orthousands of users simultaneously is calledA workstationB minicomputer

Page 2: fpl

C mainframeD super computer

Q 9 Which of the following have the fastest access time?A Semiconductor MemoriesB Magnetic DisksC Magnetic TapesD Compact DisksQ 10. Installation describes ?A How to write the programB How to use the programC How to install the programD How to read the programQ 11. Actual execution of instructions in a computer takes place inA ALUB Control UnitC Storage unitD None of the aboveQ 12. What does IBM stands for?A Indian Business machineB International Business MachineC Indian Business ModelD International Business ModelQ 13. Which of the following is the smallest and fastest computer?A Super computerB Quantum computerC Micro ComputerD Mini ComputerQ 14. Which of the following is not hardware:A Magnetic tapeB PrinterC VDU terminalD Assembler

Q 15. Which of the Following holds the ROM, CPU, RAM and expansion cards ?A Hard diskB Floppy diskC Mother boardD None of the aboveQ 16. Which of the following cables can transmit data at high speeds?A Coaxial CableB Fibre Optic CableC Twistedpair CableD UTP CableQ 17. Which of the following is a read only memory storage device ?A Floppy disk

Page 3: fpl

B Hard diskC CDROMD None of theseQ 18. Which of the following devices have a limitation that we can only readinformation from it but cannot erase or modify itA Floppy DiskB Hard DiskC Tape DriveD CDROMQ 19. The place where programs & data are stored temporarily during processing isA main memoryB secondary memoryC hard diskD CD-RomQ 20. Memory is made up of_____________.A Set of wiresB Set of circuitsC Large number of registersD All of theseQ 21. Memory unit is one part of____A Input deviceB Control unitC Output deviceD Central Processing Unit

Q 22. CD-ROM is a__________.A Semiconductor memoryB Optical memoryC Magnetic memoryD None of the aboveQ 23. EPROM can be used for _________.A Erasing the contents of ROMB Reconstructing the contents of ROMC Erasing and reconstructing the contents of ROMD Duplicating ROMQ 24. The difference between main memory and secondary storage is that the mainmemory is__________ and the secondary storage is____________.A Temporary, permanentB Permanent, temporaryC Slow, fastD None of the aboveQ 25. Primary memory stores______________.A Input Data only

Page 4: fpl

B Instructions onlyC Output Data onlyD All of theseQ 26. The information in the form of data is stored in____________.A Memory data registerB Memory address registerC Memory access registerD Memory arithmetic registerQ 27. Modern computers use _____A LSI / VLSI chipsB Vaccum TubesC SSI ChipsD MSI ChipsQ 28. Which of the following storage devices can store maximum amount of data?A Floppy DiskB Hard DiskC Compact DiskD DVDQ 29. The data seen on a monitor is called as the ______ of the data.A Soft copyB Hard copyC True copyD All of the aboveQ 30. A floppy disk contains __________.A Circular tracks onlyB Sectors onlyC Both circular tracks and sectorsD None of the aboveQ 31. Secondary storage is also known as ______.A Primary MemoryB Ancilliary MemoryC An Auxillary MemoryD Read Only Memory

2. SoftwareQ 1. CISCO manufacturesA SoftwareB ProcessorsC CablesD Network equipmentsQ 2. Which of the following is an example of an application software?A Language translator

Page 5: fpl

B Operating systemC Database management systemD EditorQ 3. The file created from the ______________is known as object moduleA LinkerB loaderC compilerD none of the aboveQ 4. Assembly Language program is translated into machine code using_______________A InterpreterB LinkerC EditorD Assembler

Q 5. Which of the following statement is correct?A Mouse is an output deviceB Primary memory in a computer is called as RAMC Static RAM is slower than dynamic RAMD Instruction is nothing but a set of programming statementsQ 6. Which of the Following is not a Translator program?A AssemblerB CompilerC InterpreterD LinkerQ 7. When a key is pressed on the keyboard, which standard is used for convertingthe keystroke into the corresponding bitsA ANSIB ASCIIC EBCDICD ISOQ 8. Which files are linked by a Linker?A Source FilesB Object FilesC Executable FilesD Text FilesQ 9. Macromedia is a name of a company related with development of______products.A HardwareB SoftwareC PeripheralsD ServicesQ 10.The Assembly languages are machine dependent languages. Validate thisstatement.A The statement is correct

Page 6: fpl

B The statement is wrongC The statement is partially correctD None of above options is applicableQ 11. Low level languages are ______ .A Machine level languageB Assembly level languageC High level languageD Both A and BQ 12.The errors that can be pointed out by the compiler areA Syntax errorsB Semantic errorsC Logical errorsD None of the aboveQ13.Which of the following is not an application software?A Mouse driverB Microsoft OfficeC OracleD NotepadQ 14.What is a compiler?A A compiler is a special program that processes the program andloads it into the memoryB A compiler is a special program that processes statements writtenin a particular programming language and turns them intoassembly/intermidiate languageC A compiler is a special program that combines different objectmodules to form an executable program.D Compiler is a computer program that executes, or performs,instructions written in a computer programming language.Q 15.The tool used by a programmer to convert source program to machine languagecode is called ________________________________A CompilerB Language translatorC LinkerD PreprocessorQ 16. Which of the following is/are System Software?A MS WORDB MS WINDOWSC MS EXCELD MS ACCESSQ 17. A system where in the logical address of an instruction or data word is likelyto be different from physical address isA Virtual memory systemB Paging systemC Non contiguous memory allocation systemD Contiguous memory allocation system

Page 7: fpl

Q 18. Programs are executed on the basis of its priority in a _______________method.A Round RobinB First-in-first-outC Priority-BasedD None of these

*Q 19. The operating system provides a service for _________.A Language TranslationB File and Database AccessC Language InterpretationD None of the aboveQ 20. Allocation of memory to variables is carried by ________________ when theprogram is executed.A CompilerB TranslatorC EditorD Operating systemQ 21. A file has to be created in the hard disk. Which one of the following parts ofan operating system is useful in this contextA Processor managementB Memory managementC Secondary memory managementD Process schedulerQ 22. Which of the following is not an operating system?A LinuxB Java Virtual MachineC WindowsD UNIXQ 23. ` C ` programming language is available for which of the following OperatingSystems?A DOSB WindowsC UnixD All of theseQ 24. Which of the following is an application software?A TallyB AutocadC MS-OfficeD all of the above*Q 25. _________ lists the instructions and data held incomputer’s memory and registers in their raw form.A Memory DumpB InterpreterC AssemblerD Macro instructions

Page 8: fpl

Q 26. What is the name of the latest Server OperatingSystem developed by Microsoft?A Windows NTB Windows 2000C Windows XPD Windows 2003Q 27. Operating system is__________.A A collection of hardware componentsB A collection of programs to manage system resourcesC A collection of input-output devicesD None of the above

3. Algorithm and FlowchartsQ 1. Amongst the following symbols, which of thefollowing is not a symbol used in a flowchart?A StarB Terminal BoxC Input-Output BoxD DiamondQ 2. How many basic symbols are available to draw a flowchart?A 4B 6C 8D 7Q 3. Terminal symbol in a flow chart indicates ________ .A DecisionB EndC ProcessD None of the above*Q 4.Which tool shows textual design solutionA FlowchartB Structure chartC Pseudo codeD AlgorithmQ 5. The _______symbol is used to denote any functionof an input/output device in the program.A FlowlinesB ProcessingC parallelogramD Terminal.

Page 9: fpl

Q6. Which of the following statement is true?1. Every program is an algorithm.2. Every algorithm is a program.A BothB only 1C only 2D Neither 1 nor 2Q 7. which amongst the following flowchart symbols isa ` two way ` branching symbol?A ParellogramB ConnecterC DiamondD RectangleQ 8. The ________with arrowheads are used to indicate the flow of an operation,that is, the exact Sequence in which the instructions are to beexecuted.A FlowlinesB ProcessingC DecisionD Terminal.

Q 9. A good algorithm should not _____.A Execute for a given set of initial conditionsB Produce the correct outputC Terminate after finite number of stepsD Result into ambiguous stateQ 10. Which of the following shape is used for representing a Conditional Statementin a Flow chart?A ParallelogramB RhombusC TrapezoidD RectangleQ 11. The _____ flow chart symbol(s) represents one way flow of control.A ProcessingB DecisionC TerminalD All above

Q 12. An algorithm is represented as __________ .A ProgramsB Flow chartsC Pseudo CodesD All of aboveQ 13. Algorithm can be represented in following ways exceptA as a program

Page 10: fpl

B as a flowchartC as a processD as a pseudocodeQ 14. Which of the following statements is correct?A Flowchart is a pictorial representation of an algorithmB Pseudocode is an analysis tool used for planning program logicC Both A and B are falseD Both A and B are trueQ 15. There is no symbol for expressing __________ while drawing a flowchart orwriting an algorithm.A AssertionB ComparisonC NegationD No ActionQ 16. In a flowchart, flow lines are used to indicateA Beginning of programB Data movementC Flow of operationsD All of the above*Q 17. Which of the following scenario is correct?A flowchart->algorithm->programming languageB flowchart->programming language->algorithmC algorithm->flow chart->programming languageD algorithm->programming language->flow chartQ 18. Detailed flowchart is also called as _________ .A Macro flowchartB Micro flowchartC Mini flowchartD None of the aboveQ 19. Connector in flowchart is represented byA RectangleB DiamondC EllipseD CircleQ 20. English statements that follow a loosely defined syntax & are used to conveythe design of an algorithm is called _________.A ProgramB FlowchartC PseudocodeD None of the above.Q 21. Which of the following symbol is not used while drawing flowchart?A TerminalB Input/OutputC ProcessingD ControlQ 22. A rectangle in flowchart denotes

Page 11: fpl

A Start of ProgramB Input or output functionC Arithmetic and data movement instructionD End of programQ 23. Pseudocode is also called as the_____________.A Program Design Language (PDL)B MicroflowchartC imitationD Decision.Q 24. The________is a program design tool that visuallyrepresents the solution logic.A FlowchartB Program mapC Pseudo codeD Structure chartQ 25. A flowchart is used in _____ of the softwaredevelopment .A Implementation phaseB Testing phaseC Analysis phaseD Design phaseQ 26. In flowcharts, ellipse is used for denoting _______

A Start onlyB Stop onlyC Both Start and EndD None of these

Q 27. Basic symbols of flow chart are __________ .A Start and EndB Processing, DecisionC Input - OutputD All of aboveQ 28. Pseudocode emphasize on the ___________aspect of a program.A DevelopmentB CodingC DesignD debugging.Q 29. Which logic is used to select the proper path out oftwo or more alternative paths in the program logic?A Looping logicB Sequence logicC Iteration logicD Selection logicQ 30. Infinite loops can be avoided by using

Page 12: fpl

A SentinelB CounterC AlgorithmD Both A & BQ 31. In structure charts modules are described as ______ .A circleB triangleC RectangleD ellipse*Q 32. What is the result of design phase in PDLC?A Algorithm & flowchartB ProgramC Algorithm onlyD Flowchart onlyQ 33. Which of the following is not a program planning tool?A FlowchartB Structure chartC Pseudo codesD LoopQ 34. The most important aspect of program coding isA ReadabilityB UsabilityC ProductivityD All of the aboveQ 35. Which of the following structures are used incomputer programsA SequentialB DecisionC IterativeD All of aboveQ 36. Sentinel value is used to ________ .A Start a loopB Terminate a loopC Input valueD Output valueQ 37.________ is used to write the algorithms.A Computer Language ‘C’B Computer Language ‘C++’C Any Programming LanguageD English Language

4. Indentation*Q 1. Consider the following statements and determinewhich of the following is correct?(a) Indentation makes programs more readable

Page 13: fpl

and simpler to understand(b) Indentation is compulsory while writing aprogramA Only (a) is trueB Only (b) is trueC Both (a) and (b) are trueD Both (a) and (b) are falseQ 2. Indentation is used to format ________ .A Program source codeB Object codeC Executable codeD All of the aboveQ 3. Indentation is generally only of use to the......A ProgrammersB CompilersC InterpretersD Assemblers

Page 14: fpl
Page 15: fpl

Low Level Languages (Assembly & M/C Lang.)Q 1. Low level languages are ______ .A Machine level languageB Assembly level languageC High level languageD Both A and BQ 2. The language that the computer can understandand execute is calledA Low-level machine languageB High-level languageC Assembly LanguageD None of the aboveQ 3. The Assembly languages are machine dependentlanguages. Validate this statement.A The statement is correctB The statement is wrongC The statement is partially correctD None of above options is applicableQ 4. ___________ is the quality of a Machine Language.A Machine IndependentB Difficult to ProgramC Easy to modifyD Not easily understood by the computerQ 5. Which language gives instructions that areexecuted by a computer?A symbolicB High-levelC MachineD Middle-levelQ 6. Machine language is _____ .A the language in which the machine can uderstood the programB is the only language understood by the computerC differs from one type of computer to anotherD All of theseQ 7. The Language made of streams of 0 ` s & 1 ` s iscalled as a ___________.A Symbolic languageB High level LanguageC machine LanguageD AlgorithmQ 8. The tool used by a programmer to convert sourceprogram to machine language code is called________________________________A CompilerB Language translator

Page 16: fpl

C LinkerD PreprocessorQ 9. Each line of _____________ program consists offour columns known as fieldsA Machine languageB Assembly languageC Scripting LanguageD PascalQ 10. Mnemonics are used in ________A Assembly language programB C++ programC Java programD C# programQ 11. Machine languages areA Third generation languages.B First generation languages.C Second generation languages.D None of above

High Level LanguagesQ 1. What is the limitation of high level language?A Lower efficiencyB Machine dependentC Machine level codingD None of the aboveQ 2. Which of the following is not a High Levellanguage?A ‘C’B AssemblyC C++D FORTRAN*Q 3. Which among the following is a non-structuredprogramming language ?A PascalB C languageC FORTRAND All of the above*Q 4. A ______ is the language prefered to write a program.A MachineB AssemblyC High-levelD EnglishQ 5. Which of the following is a business oriented language?A FORTRANB PASCAL

Page 17: fpl

C CD COBOLQ 6. Which of the following is not a procedurallanguage?A CB PASCALC FORTRAND LISPQ 7. This is a number crunching program. & still usedby scientist because the language allows variablesof any size up to the memory limit of the machine.A FORTRANB CC JAVAD ADAQ 8. ____________ is designed for Bussiness DataProccessing applications.A BASICB COBOLC FORTRAND C’ languageQ 9. This is a multi-platform language that is especiallyuseful in networkingA FORTRANB PERLC JAVAD ADAQ 10. Which of the following language is easy to debug ?A assembly languageB machine languageC all high-level languagesD all the above

CQ 1. Which of the following is not a keyword in C language?A forB breakC returnD mainQ 2. ` C ` is _______________________ languageA ProceduralB AssemblyC MachineD Object-orientedQ 3. Which of the following is false statement for ` C ` ?A A keyword can be used as a variables name

Page 18: fpl

B variable names can contain digitsC variable name do not contain blank spaceD capital letters can be used in variables namesQ 4. F7 key is used as shortcut key in ` C ` programming for the purpose of ____ .A Tracing the 'C' ProgramB Compiling the 'C' ProgramC Editing the 'C' ProgramD None of above options is applicableQ 5. To save a file in TURBOC , we use…..A f2B f3C f3D none of themQ 6. Who invented the C Language?A Dennis RitchieB Brian Kernighan and Dennis RitchieC NewtonD EnstinQ 7. C is invented in the year______A 1972B 2008C 2000D 1976Q 8. One thousandtenty four bytes equals_____________.A 1 MegabyteB 1 GigabyteC 1 KilobyteD None of the aboveQ 9. The library files that come with C areA Text editors for program developmentB The compiler & linkerC Program examplesD Files that contain functions which carry out various commonly usedoperations & calculationsQ 10. Which of the following is not a character classification in the ‘C’ language?A alphabetsB charactersC digitsD graphicalQ 11. ` C ` can be used onA Only MS-DOS operating systemB Only unix operating systemC Only WINDOWS operating systemD All of the aboveQ 12. ` C ` can be used on __________platform(s).A MS-DOS operating system

Page 19: fpl

B Linux operating systemC Windows operating systemD All the aboveQ 13. C programs are converted to m/c language withthe help of_______A an editorB a compilerC An OSD none of theseQ 14. Which escape character can be used to begin anew line in ` C ` ?A \aB \bC \mD \nQ 15. What is ASCII value range for ` a ` to ` z `A 65-90B 97-122C 47-57D None

Q 16. Every ` C ` program is contained in a source filehaving what suffix _______.A .hB .cC .cppD .exeQ 17. There are only _______ keywords available in CA 43B 39C 32D 78Q 18. A compound statement is a group of statements included between a pair ofA double quoteB curly bracesC parenthesisD a pair of /’sQ 19. What is length of variable in c?A 44B 76C 56D 31

Page 20: fpl

PASCALQ 1. Pascal programs starts with the keywordA ProgramB BeginC VarD Procedure

BasicQ 1. BASIC stand for _______ .A Beginner All Purpose Symbolic Instruction CodeB Formula translationC Object oriented programmingD None of theseQ 2. BASIC is _______ .A High Level LanguageB Low Level Lang.C Assembly LanguageD None of above

FortranQ 1. FORTRAN is a ......A General Purpose and Procedural LanguageB Imperative programming languageC Both a and bD None of above

LISP*Q 1. LISP isA Object orientedB List orientedC Class orientedD All of the above

Object Oriented Lang. (C++ & JAVA)Q 1. What is the correct file extention for a C++ program?A C++B C+C CPPD .CCPQ 2. ______________ programming deals with solving problems by identifiying thereal world objects of the problem and the processing requirement of those objectsand creating their simulations,

Page 21: fpl

processes and communications.A Procedure OrientedB Object OrientedC Functional programmingD Logic programmingQ 3. Which of the following language is Object Oriented Laguage?A CB C++C LISPD COBOL

Programming LanguagesQ 1. Which of the following are characteristics of a goodprogramming language?A SafetyB SimplicityC PerformanceD All of the aboveQ 2. Which of the following factors should be considered while selecting aprogramming language for application development?A Nature of applicationB Ease of learning the languageC Familiarity with the languageD All A,B,CQ 3. Which of the following is not a language for computer programming?A WindowsB PascalC COBOLD All of these

Compilers, Interpreter, LinkerQ 1. Advantage(s) of interpreters over compliers are _________.A they are less complex programs than compliersB they need less memory space for execution than compliersC syntax error in a program statement is detected during processingof that statementD all of them*Q 2. The rule which governs the formation of valid statements in the sourceslanguage is calledA Semantic ruleB Lexical ruleC Syntax ruleD None of the above

Page 22: fpl
Page 23: fpl
Page 24: fpl

Testing (4+14+4=22)Q 1. Testing is a____if a program does not workcorrectly.A FailureB SuccessC CompleteD Partial*Q 2. White box testing is of the following form:ATest engineer has complete knowledge of the code andfunctionality of the program, and testing is based on thisknowledge.BTest engineer has no knowledge of the code but has full knowledgeof the functionality of the program.CTest engineer has complete knowledge of the code but has noknowledge of the functionality of the program.DTest engineer has no knowledge of the code and does not knowhow the code functions, and testing is based mostly on requirementsheets.Q 3. The inputs for developing a test plan are taken fromA Project planB Business planC Support planD None of the aboveQ 4. To make a program useful and error free twoprocesses are important. They are _______.A planning & TestingB Testing & DebuggingC Planning & DebuggingD Debugging & linking

Syntax ErrorsQ 1. Which of the following is a type of error?A compile timeB syntax

Page 25: fpl

C LogicalD All the aboveQ 2. Which of the following is a type of an error?A Syntax ErrorB Logical ErrorC Run-time ErrorD All of aboveQ 3. Which of the following are syntax errorsA Incorrect punctuationB Missing semicolonC Missing DeclarationsD All of the aboveQ 4. Which of the following errors can be detected by a` Compiler ` ?A Illegal charactersB Semantic errorsC use of undefined variable namesD all of theseQ 5. Syntax errors are ___________ than logical error.A easy to removeB difficult to removeC difficult to detectD None of aboveUnit III: Program Testing and Debugging Prepared by: Mr. Laxman J. DeokateQ 6. Syntax error typically involve ________ .A Incorrect punctuationB Invalid charactersC Not using separators such as a semicolonD All of aboveQ 7. A program can not be compiled until all of its_____ errors have been corrected.A logicalB Run timeC SyntaxD All of the above

Q 8. The errors that can be pointed out by the compiler areA Syntax errorsB Semantic errorsC Logical errorsD None of the above

Logical (Run-time) ErrorsQ 9. The printf() function returns which value when an

Page 26: fpl

error occures?A positive valueB zeroC Negative valueD None of these\Q 10. In computer programming, a logical error is a bugin a program that causes the program .......A to operate incorrectlyB to failC to go into an infinite loopD All of the aboveQ 11. Errors that occur when rules of programming language are notfollowed________A logical errorsB syntax ErrorsC User ErrorsD Program ErrorsQ 12. Run Time Errors are encountered at the time of _________A ExecutionB CompilationC CodingD SavingQ 13. Due to logical error program will produce _______ .A Incorrect outputB Required outputC GarbageD Incorrect output or garbage

*Q 14. Logical error in a program will ___________ error message.A ProduceB Not produceC do nothingD All of above

Debugging*Q 1. Which of the following would be the most appropriate way to debug aproblematic code?AComment out the whole code and progressively uncomment it, tillyou find the errorB

Page 27: fpl

Put appropriately named print statements throughout the code andfollow the output to find the errorC Both of the aboveD None of the aboveQ 2. A Debugger is_____A a compilerB an active debuggerC a C interpreterD a analyzing tool in CQ 3. ______________ being a reactive process, it mustbe carried out when errors are found in a program.A TestingB DebuggingC EvaluatingD None of the aboveQ 4. Program errors are known as ____________, andthe process of detecting and correcting these errorsis called ______________.A Virus, Testing.B Bugs, Debugging.C Defects, Checking.D None of these.

Page 28: fpl

Documentation (Total Q. 16)Q 1. The process of collecting,organizing & maintaining acomplete record of development of programs is calledas _______.A TestingB DocumentationC DebuggingD Coding*Q 2. Which of the followings is not a form of documentation?A user manualB commentsC log booksD system manualQ 3. What do you mean by documentation standards?A Process of writing programsB Rules and regulations about how documentation is to be performedC Process of drawing flowchartsD Proces of writing algorithms*Q 4. Documentation is any communicable material (such astext, video, audio, etc., or combinations thereof) which ____A Explain some attributes of an object, system or procedureB Are in books or computer readable file formatsC Describe the structure and components, or on the other hand, operation,of a system/product.D All of aboveQ 5. _______ makes software easier to modify and adapt in futureA Proper documentationB FlowchartC PseudocodeD Algorithm

CommentsQ 1. The ____________are used as aid in documentationA CommentsB SoftwareC HardwareD None of the aboveQ 2. Comments are written using the ______.A General English StatementsB Assembly Language StatementsC Higher Level Language StatementsD Block Of CodeQ 3. ________do not contain any program logic and areignored by language processor.A ProtocolsB Loops

Page 29: fpl

C CommentsD None of the aboveQ 4. Comments are helpful because ______ .A It helps us to find out errors in programB It helps us know the program execution timeC It helps us to understand source codeD It increases the performance of the code.Q 5. In C ,a block comment is indicated using thecharacter(s) ____.A // //B /* */C ?D ! !Q 6. Comments are _______________A Executable statementsB Non executable statementsC Assignment statementsD Input/Output statementsQ 7. The comments can be written in a program _______.A within declarative statementsB within functionsC for any statementD All of the above

System &User manualQ 1. A system manual containsAinput requirements, forms, type of output required, flowcharts, controlprocedureB information about OSC manual of computer systemsD multimedia informationQ 2. User manual are used for_____________A modifying the programB maintaing a programC to know the operational details of programD None of above*Q 3. In which form of documentation System flow charts and program flow chartsare included?A CommentsB User ManualC System ManualD CodeQ 4. User manual are used for_______________________________A modifying the programB maintaing a programC to know the operational details of program

Page 30: fpl

D None of above

ANSWERS:Documentation1.B 2.C* 3.B 4.D 5.A*Comments1.A 2.A 3.C 4.C 5.B 6.B 7.DSystem and User Manual1.A 2.C 3. C* 4. C

Page 31: fpl

1. C (Total Q. 238)Q 1. Which of the following is not a keyword in C language?A forB breakC returnD mainQ 2. ` C ` is _______________________ languageA ProceduralB AssemblyC MachineD Object-orientedQ 3. Which of the following is false statement for ` C ` ?A A keyword can be used as a variables nameB variable names can contain digitsC variable name do not contain blank spaceD capital letters can be used in variables namesQ 4. F7 key is used as shortcut key in ` C `programming for the purpose of ____ .A Tracing the 'C' ProgramB Compiling the 'C' ProgramC Editing the 'C' ProgramD None of above options is applicableQ 5. To save a file in TURBOC , we use…..A f2B f3C f3D none of themQ 6. Who invented the C Language?A Dennis RitchieB Brian Kernighan and Dennis RitchieC NewtonD EnstinQ 7. C is invented in the year______A 1972B 2008C 2000D 1976Q 8. One thousandtenty four bytes equals_____________.A 1 MegabyteB 1 GigabyteC 1 KilobyteD None of the aboveQ 9. The library files that come with C areA Text editors for program developmentB The compiler & linker

Page 32: fpl

C Program examplesD Files that contain functions which carry out various commonly usedoperations & calculationsQ 10. Which of the following is not a character classification in the ‘C’ language?A alphabetsB charactersC digitsD graphicalQ 11. ` C ` can be used onA Only MS-DOS operating systemB Only unix operating systemC Only WINDOWS operating systemD All of the aboveQ 12. ` C ` can be used on __________platform(s).A MS-DOS operating systemB Linux operating systemC Windows operating systemD All the above

Q 13. C programs are converted to m/c language with the help of_______A an editorB a compilerC An OSD none of theseQ 14. Which escape character can be used to begin a new line in ` C ` ?A \aB \bC \mD \nQ 15. What is ASCII value range for ` a ` to ` z `A 65-90B 97-122C 47-57D None

Q 16.Every ` C ` program is contained in a source file having what suffix _______.A .hB .cC .cppD .exeQ 17.There are only _______ keywords available in CA 43B 39C 32D 78

Page 33: fpl

Q 18.A compound statement is a group of statementsincluded between a pair ofA double quoteB curly bracesC parenthesisD a pair of /’sQ 19.What is length of variable in c?A 44B 76C 56D 31

2. DatatypesQ 1. The maximum value an integer constant can haveis _________A -32767B 32767C 1.74E+32D -1.70E+38Q 2. Which classes of the data types are supported by C?A primary data typesB derived data typesC User-defined data typesD All the aboveQ 3. Which of the following is invalid variable name?A BASICSALARYB _basicC basic-hraD hELLO

Q 4. Which of the following is not a valid identifier?A NumB $numC AmountD _amount1Q 5. Which of the following is the correctly declaration variable?A 6numB emp_idC intD sum isQ 6. Identifiers are ___________.A Reserved wordB keywordC user defined namesD none of the aboveQ 7. What are hungarian notations?

Page 34: fpl

A Writing loopsB Manipulating pointersC To write variable nameD Flowchart notationsQ 8. The conversion specification %c is usedA to print a single characterB to print more than one characterC to print whole stringD None of theseQ 9. How does variable definition differ from variable declaration?A Definition allocates storage for a variable, but declaration onlyinforms the compiler as to the variable's type.B Declaration allocates storage for a variable, but definition onlyinforms the compiler as to the variable's type.C Variables may be defined many times, but may be declared onlyonce.D Variable definition must precede variable declaration.Q 10. What is the difference between definition and declaration of variablesA there is no differenceB a definition occurs once, but declaration can occur many timesC a declaration occurs once, but definition can occur many timesD both can occur many timeQ 11.Identify the invalid keyword in the following list.A integerB charC floatD long intQ 12.Symbolic constants can be defined using a_________A # define directiveB const keywordC symbolic notationD None of theseQ 13.What one of following variable names is not valid?A go_cartB go4itC 4seasonD run4Q 14.Which of the following is not a user defined data type?A intB structC unionD None of the above

Page 35: fpl

*Q15.In "C" program ,constant is definedA before mainB after mainC anywhwreD none of aboveQ 16.Which of the following is not a integer constant in ` C ` ?A 'C'B -C 45D 1.2Q 17.What number is equivalent to -4e3?A -4000B -400C -40D 0.004

Q 18.Which of the following format strings is used toread an unsigned integer variable?A %dB %cC %uD None of aboveQ 19.The __________ field specification is used to reador write a short integer.A %cB %fC %lfD %dQ 20.Character constant should be enclosed in ______ .A Single inverted commaB Double inverted commaC BothD NoneQ 21.In C a variable name cannot contain ____________.A Blank spacesB HyphenC Decimal pointD All of the aboveQ 22.

Page 36: fpl

Size of data type ` double ` in ` C ` programming language is _____ .A 16 bitsB 32 bitsC 54 bitsD 64 bitsQ 23. Which of the following is the valid range of a longdouble data type ?A 3.4E-4932 to 1.1E+4932B 3.4E-4932 to 3.4E+4932C 1.1E-4932 to 1.1E+4932D 1.7E-4932 to 1.7E+4932Q 24. An integer constant in C must have _________ .A Atleast one digitB Atleast one decimal pointC A comma along with digitsD Digits seperated by commasQ 25.Minimum number of temperory variables needed to exchange the contents of twovariables isA 1B 2C 3D 0Q 26. If ` a ` is a variable defined in a ` C ` program then &a denotes the ______ .A content of aB address of aC Both A and BD none of theseQ 27. What is variableA Whoes value changesB Whoes value does not changeC it is a constantD is a keywordQ 28. A character variable can at a time store _________A One chracterB 8 chractersC 254 CharcterD None of the aboveQ 29.Assuming an unsigned integer is represented using16 bits, the maximum value that an integerconstant can have isA 256B 32768C 65536D 128

Page 37: fpl

Q 30. What is the maximum size of a float variable?A 2 bytesB 1 byteC 4 bytesD 8 bytes

Q 31. How many bits a byte containts ?A 2B 8C 4D 6Q 32. Which one of the following is NOT a valid identifier?A __identB autoC bigNumberD g443354

Q 33. How will you write the value 3.14 to treat it as along double number?A 3.14gB 3.14fC 3.14lD 3.14dQ 34. __________is a convention used for variable names in a programminglanguageA IEEE standardB Hungarian notationC PascalD All of the AboveQ 35. What does ` a ` represents in the C language ?A a digitB a characterC a wordD an integerQ 36. The ` %u ` format specifier is used for printing _______.A an Unsigned integerB a Signed integerC a floatD an addressQ 37.In ` C ` language,if a variable is not defined , it contains some unpredictablevalue.This value is known as__________________.A extra value

Page 38: fpl

B non usable valueC garbage valueD useless valueQ 38. Which of the following is not a integer constant in ` c `A -320B 45C -3.18D 1456Q 39. Which of the following is not the identifier in C?A A3B AC ifD tax_rateQ 40. Which of the following Identifier is not valid?A _ optionB amountC $salesD salesQ 41. The ____________ format string is used fordisplaying floating point number with an exponent.A %dB %fC %eD %gQ 42. Which one of the following printf() format specifiers indicates to print adouble value in decimal notation, left aligned in a 30-characterfield, to four (4) digits of precision?A %-30.4eB %4.30eC %-4.30fD %-30.4f*Q 43. Global variables that are declared static are ____________. Which one of thefollowing correctly completes the sentence above?A Deprecated by Standard CB Internal to the current translation unitC Read-only subsequent to initializationD Allocated on the heap

3. OPERATORSQ 1. Which one of the following C operators is right associative?A [ ]B ,C =D ->

Page 39: fpl

Q 2. which one of the following is a logical operator?A =B &&C <>D +Q 3. Arithmetic operations are ______ type of operation.A InputB OutputC ProcessingD Decision MakingQ 4. Address operator ( & ) in ‘C’ is also called as a .......A Refrence operatorB Logical operatorC Unary operatorD ConnectiveQ 5. 0 AND 0 givesA 1B 0C 10D 2Q 6. Evaluate the following expression a = 7/22*(3.14 + 2) * 315A 8.28B 6.28C 3.14D 0Q 7. The 2’s complement of 1000 isA 111B 101C 1000D 1Q 8. The expression, a=30*1000+2768 evaluates to ___________A 32768B -32768C 113040D 0Q 9. A _________ is a sequence of the operands & operators that reduces to asingle value.A an expressionB a categoryC a formulaD a functionQ 10. Which of the following is the a correct operator to compare the values store inany two variables?A :=B =C equal

Page 40: fpl

D ==Q 11. The operator ` + ` in a+=4 meansA a = a + 4B .a + 4 = aC a = 4D a = 4 + 4Q 12. X & X = ?A 1B 0C 2xD xQ 13. The number of variables allowed on the left handside of = areA 2B 3C 1D 4Q 14. The operator ` ^ ` is used for doing a _____ operationA bitwise ANDB bitwise ORC bitwise exclusive ORD Logical exclusive ORQ 15. if int x = 2945, what is the value of the expression(x/100)%10?A 5B 9C 294D 0.5Q 16. _________ operator is not available in C.A +B -C *D \Q 17. The equality operator is represented byA :=B .EQ.C =D ==Q 18. if int x = 2945, what is the value of the expression x%10?A 294B 5C 294.5*Q 19. Which operator has the lowest priority?A ++B %C +

Page 41: fpl

D *//./Q 20. A Postfix expression consist of the _______ .A operands followed by the operatorsB operators followed by the operandsC operands followed by the operandsD operators followed by the operators*Q 21. The operators avialable in C are ________.A 45B 35C 25D NoneQ 22. Which of the following C operator is odd one?A +B -C /D **Q 23. The bitwise AND operator is used forA MaskingB ComparisonC DivisionD Shifting bitsQ 24. When applied to a variable, what does the unary"&" operator yield?A The variable's addressB The variable's right valueC The variable's binary formD The variable's valueQ 25. The increment operation ` n+++ ` increments thevalue of the variable ` n ` by ________.A 2B -1C 3D It is an invalid increment operationQ 26. The symbol != stands forA is greater thanB is much greater thanC is almost equal toD is not equal toQ 27. 0 NAND 1 givesA 1B 0C 10D 2Q 28. Which of following is allowed in ` C ` Arithmeticinstruction ?A {}

Page 42: fpl

B []C ()Q 29. The operator ` || ` is an example for------------ operatorA LogicalB BitwiseC ConditionalD RelationalQ 30. Which of the following is an example of acompounded assignment statement?A A =5B A +=5C A=B=CD A=BQ 31. What will be the BCD equivalent of the decimal number 12?A 0001 0010B 0010 0001C 0010 1000D 1000 0100Q 32. The ______ operator evaluates the operand on the right side of the operands& places its value in the variable on the left side of the opeartor.A assignmentB additiveC multiplicativeD postfix

Q33.The ` sizeof ` operator tells us the size of a type or a primary expression interms of number of _____ .A bytesB bitsC nibblesD wordsQ 34. Base of hexadecimal number system is.A 2B 8C 10D 16Q 35. Identify the unary operator?A --B +C /D *Q 36. The ` % ` operator in C returns theA remainder of the divisionB quotient after the divisionC Percentage of a given valueD All the above

Page 43: fpl

Q 37. Which operator can be used in a conditional statement?A relationalB relational & conditionalC logical & arithmeticD all operators in 'C'Q 38. If a is an integer variable , a=5/2 will return a valueA 2.5B 3C 2D 0Q 39. In "C "Programming language x -=y+1 meansA x=x-y+1B x=-x+y+1C x=-x-y-1D x=x-y-1

Q 40. Which one of the following C operators is rightassociative?A [ ]B ,C =D ->Q 41. Which of the following is not a comparative operator?A >=B >C ==D *Q 42. Which of the following is the a correct operator tocompare the values store in any two variables?A :=B =C equalD ==Q 43. The operator >= is an example for ___ operator.A arithmeticB relationalC logicalD bitwiseQ 44. Find the same expression for !(x>=y).A y>xB x>=yC x<Y< td>

Page 44: fpl

D x!=yQ 45. 0 AND 0 givesA 1B 0C 10D 2Q 46. Which of the following is used as “ is equal to” in C?A =B !=C ==D None of theseQ 47. X%Y is equal toA (X-(X/Y))B (X-(X/Y)*Y)C (Y-(X/Y))D (Y-(X/Y)*Y)Q 48. The correct meaning of the expression ` a+=4 ` is _____ .A a=a+4B a+4=aC a=4D a=4+4Q 49. The size of a structure can be determined by a. sizeof variable name b. size of (struct tag)A only aB only bC both a and bD none of theseQ 50. if I want to check whether value of a & b are equalthen which sign I have to use?A =B ==C !=D None of theseQ 51. p++ executes faster than p=p+1 becauseA p uses registersB p++ is a single operationC ++ is faster than +D None of theseQ 52.What willl be the result of expression ` x=16>>2 ` ?A 4B 8C 3D 0Q 53. Which is used to find memory allocation of variable________ .A sizeof

Page 45: fpl

B a++C # defineD # variable constantQ 54. A _________ is a sequence of the operands & operators that reduces to asingle value.A an expressionB a categoryC a formulaD a function

Q 55. Which operator has the lowest priority?A ++B %C +D *Q 56. Hierarchy decides which operatorA is most importantB is used firstC is fastestD operates on largest numbersQ 57.which of the following is a ternary operator?A ? :B *C sizeofD /Q58.which of the following operators in ‘C’ does not associate from the right?A ,B =C +=D ++Q59.The number of the relational operators in the C language isA FourB SixC ThreeD OneQ 60. Which of the following is not a logical operator?A &B &&C ||D !

4. IF … ELSEQ 1. A two way selection is implemented in theprogram, by using __________ statement.A case

Page 46: fpl

B else..ifC switchD if..elseQ 2. Which of the following is not a iterative construct?A a for loopB a do-while loopC an if-else statementD a while loopQ 3. If multiple statements are to be executed using the` If ` statement then they must be placed within_________.A else statement.B a pair of braces.C pair of paranthesisD None of the above.Q 4. There are different ways to implement a multiwayselection in ` C ` . They areA Nested if …..elseB switch ….caseC both a & bD non of the aboveQ 5. Which of the following statements, is used indecision making?A ifB if-elseC switchD All of the aboveQ 6. Which combinations of writing ` if..else ` and `switch ` statements inside a program is possible?A writing switch in if elseB writing if else in switchC writing one switch in anotherD all of above

5. SWITCH … CASEQ 1. The keyword _________is followed by an integeror character constant.A switchB caseC forD voidQ 2. A switch statement is used toA switch between functionsB switch from one variable to anotherC to choose from multiple possibilities

Page 47: fpl

D to use switching variablesQ 3. A __________ statement is very useful whilewriting the menu driven programs.A whileB breakC switchD if

6. LOOPsQ 1. A ` do-while ` loop is useful when the statementswithin the loop must be executed:A Only onceB At least onceC More than onceD None of the aboveQ 2. Sentinel value is used to ________ .A Start a loopB Terminate a loopC Input valueD Output valueQ 3. Which part of a loop executes only once?A loop statementB loop expressionC loop conditionD initializationQ 4. Which of the ` C ` loops check the condition beforea loop is executed?A whileB forC both a & bD d0 ---whileQ 5. How many loops are present in C?A OneB TwoC ThreeD None of theseQ 6. If a ` while ` loop condition is checked for theseventh time, then the loop has already executedfor _________times.A 0B 5C 6D 7Q 7. __________ must be done before the firstexecution of the loop body.A Condition Check

Page 48: fpl

B Initialization of the loop counterC Increment of the loop counterD Both A & BQ 8. In do-while loop, loop condition is checked at the__________ .A Beginning of loopB End of loopC End of programD Start of programQ 9. Which of the ` c ` loops is a pretest loopA Do… whileB ForC WhileD Both for and whileQ10.The body of a ` WHILE ` Loop hasA one statement onlyB atleast two statementsC one or more statementsD None of aboveQ11.How many times a ` do while ` loop is guaranteedto loop?A 1B 0C infinitelyD many

7. BREAK … CONTINUEQ 1. Which statement can stop a loop?A continueB breakC initializationD ifQ 2. The ` continue ` statement cannot be used withA forB switchC do

Page 49: fpl

D whileQ 3. ` continue ` statement is usedA to go to the next iteration in a loopB come out of a loopC exit and return to the main functionD restarts iterations from beginning of loopQ 4. Which of the following is used for making the nextiteration of the loop to be started?A breakB caseC continueD All the AboveQ 5. Which amongst the following keywords is not at allrequired while writing a basic ` switch - case `construct?A defaultB caseC breakD continueQ 6. The _____statement allows the programmer totake the control to the beginning of the loop,bypassing the statement inside the loop which hasnot yet been executed.A whileB continueC go toD if

8. FUNCTIONSQ 1. Any ` C ` program contains at least _____Function.A main()B TwoC ThreeD ZeroQ 2. The various methods of debugging a program tolocate & correct logical errors include :A Manual executionB Printing the intermediate resultC Using a debuggerD All of the aboveQ 3. malloc() function used in dynamic memoryallocation is available in which header file?A stdio.h

Page 50: fpl

B stdlib.hC conio.hD mem.hQ 4. . ... function is used to flush the data on output screenA getchB clrscrC mainD None of theseQ 5. scanf ("%15le",&dy) In this statement the maximum field width of the data itemwill be______________.A 15 charactersB 3 charactersC No limitD None of aboveQ 6. Which of the following statement return the controlback to main when used in functions?A breakB continueC returnD exitQ 7. If ` C ` program contains only one function it mustbe____________.A if statementB while loopC for loopD main functionQ 8. The printf() function returns which value when anerror occures?A positive valueB zeroC Negative valueD None of these\Q 9. Function in C language is defined asA Name given to group of statementsB Name given to group of different data typesC Name given to goup of structuresD None of the above.Q 10. Identify the wrong statementA putchar(65)B putchar('x')C putchar("x")D putchar('\n')Q 11. _________ is used for output formatting .A print fB scan fC getch

Page 51: fpl

D returnQ 12. For a function, a local variable is declared_________ .A inside the functionB outside the functionC both A and BD in the main programQ 13. Function can return multiple values using _______A function callB return statementC argumentsD array of pointersQ 14. The value which is passed to function is called ____________________.A argendB ParameterC valueD none of these

Q 15. ________ is a repetitive process in which afunction calls itself.A loopB functionC both a & bD recursionQ 16. The getch() function in ` C ` is ___________A user defined functionB library functionC both of aboveD none of aboveQ 17. When we pass an array of a structure to a functionit is passed by the____________ mechanism.A Call by valueB Call by referenceC Call by nameD NoneQ 18. What is a meaning of ` void () ` ?A it returns valueB it does not return any valueC it returns two valuesD it returns only one valueQ 19. In the declaration statment void main() the word‘void’ means the function----------A does not return any valueB return a value

Page 52: fpl

C returns 2 or more valuesD none of theseQ 20. The default parameter passing mechanism isA Call by valueB Call by referenceC Call by value resultD none of these*Q 21. All macro substitutions in a program are done _______ .A before compilation of a programB after compilation of a programC during executionD none of aboveQ 22. Which of the following are the parameter passing methods1.pass by value.2. pass by reference3. pass by address?A allB 1 & 2C 2 & 3D None of the aboveQ 23. The ___ function can be used to test for an end offile condition.A getcB fopenC ferrorD feofQ24.The number of arguments in printf() are ______ .A 2B any numberC 4D 3Q25.The ______ function reads the data from keyboardA displayfB scanfC printfD readQ26.Which is more appropriate for reading in a multiwordstring?A gets()B printf

Page 53: fpl

C scanfD puts()Q27.Which one of the following statements about thefunction is true?A The function call is found in the called function.B the function declaration requires that the parameters be named.C The function definition is done with function declarationDThe function definition contains statements that perform the function'staskQ28.The mechanism by which a function can call itselfis calledA reversalB recallC reactionD recursionQ29.The ______ function reads the data from keyboardA displayfB scanfC printfD readQ30.In the function call statement fun(a,b) , what arethe two variables a &b are called________A real paramaetersB formal parametersC actual parametersD imaginera parametersQ31.When you pass an array as an argument to afunction what actually gets passed?A address of arrayB value of the elements of arrayC address of first element of arrayD number of elements of arrayQ32.Functions return _______ value by default.

Page 54: fpl

A voidB charC integerD floatQ33.Recursion is a repetitive process in which afunction________A calls other functionB calls itselfC do not call itselfD do not call other functionQ34.A _________ is a self contained block ofstatements that performs a coherent task of somekind.A functionB compilerC statementD body of programQ35.When the main function is called, it is called withthe arguments……A argcB argvC None of theseD both a & bQ36.. ... ... is standard output functionA printfB scanfC getchD clrscrQ37.The _______ function is used to display the outputon the screen.A scanfB printfC getcharD clrscrQ38.

Page 55: fpl

Which of the following statement is not truerelated to a subprogram?ASubprogram helps you organize your total program (main program +subprograms) by grouping specific tasks in a well defined location.BSubprogram can save you repeating similar program structures at severalplaces in your codeC Subprogram can be executed independently.D Subprograms shorten and simplify manual programming.Q39.Find the function not present in # includefile.A printf()B sqrt()C scanf()D None

9. INPUT/OUTPUTQ 1. scanf ("%15le",&dy) In this statement themaximum field width of the data item willbe______________.A 15 charactersB 3 charactersC No limitD None of aboveQ 2. Which device is commanly used as the standardpointing device in a Graphical user enviornment ?A KeyboardB MouseC JoystickD Track ballQ 3. Which device is used as the standard Input devicein a Textual User Interface?A KeyboardB MouseC JoystickD Track ballQ 4. What will be the output of the following code ?main(){printf("Hello")}A HelloB Syntax errorC HelloD none

Page 56: fpl

Q 5. Which of the following is an output device?A MonitorB KeyboardC Touch-screenD Mouse

10. STRINGQ 1. string ends withA '\0'B '/0'C '%0'D none of themQ 2. Which of the following header file is required forusuage of strcpy() function?A string.hB strings.hC files.hD strcpy()Q 3. Which of the following statements determines ifthe contents of string1 are the same as thecontents of string2?A if (string1==string2)B if(strcmp(string1,string2)==0)C if(strcmp(string,string2))D if(strcmp(string,string2)<0)Q 4. A string is treated as an____A Array of integersB Array of floatsC Array of charactersD Both specify array sizeQ 5. which string manipulation function is used fordetermine length of string?A strcpyB strcatC strlenD strcmpQ 6. A String is enclosed within ________.A [ and ]B < and >C " and "D ' and '

11. BCD/OCTALQ 1. What will be the decimal equivalent of the binarynumber 10000

Page 57: fpl

A 32B 16C 8D 24Q 2. Base of octal number system is.A 2B 8C 10D 16Q 3. The binary number system uses base ofA 2B 8C 10D 16Q 4. What will be the BCD equivalent of the decimalnumber 12?A 0001 0010B 0010 0001C 0010 1000D 1000 0100

12. ARRAYQ 1. A ______ is a collection of different data types.A arrayB record typeC structureD type definitionQ 2. What is the name given to a derived C type inwhich values are stored in continous memorylocations?A ArrayB PointersC FunctionsD StructureQ 3. An efficient means of printing a two-dimensionalarray is by using _______.A a 'do...while' loopB a 'for' loopC two nested 'for' loopsD a 'while' loopQ 4. Array can be initialized, provided they areA automaticB externalC staticD both B & C

Page 58: fpl

Q 5. A _______has to take different processing actionwhen a multidimensional array has been used.A EditorB compilerC parameterD None of theseQ 6. Array subscripts in C always start atA -1B 1C 0D None of theseQ 7. What is the name given to a derived C type inwhich values are stored in continous memorylocations?A ArrayB PointersC FunctionsD StructureQ 8. A _______ is an ordered collection of related dataitems.A an elementB an arrayC a variableD a stringQ 9. The maximum number of elements in array definitionint x[10] is ___________.A 9B 10C 11D undefinedQ10.The student names can be stored using a _______array, whereas a listing of marks obtained bye himcan be stored using a _______ array.A string, numericB numeric, stringC character, NumericD indexed, stringQ11.What will happen if you assign a value to anelement of an array whose subscript exceeds thesize of array?A element will be set to zero.

Page 59: fpl

B NothingC Other data may be overwrittenD Error message from compiler will occurQ12.In an array declaration ` int arr[12] ` the word arrrepresents the _________.A VariableB stringC array variableD none of these.Q13.Select the correct option out of the followingstatements (marks is a one-dimensional integerarray)A *marks is same as marks[0]B *(marks + 1) is same as marks[1]C Both statements A and B are correctD None of the above statement is correctQ14.Arrays are ______________.A homogeneous data structuresB heterogeneous data structuresC both of theseD none of theseQ15.The number of elements that can be stored in anarray is known by the __________.A index valueB index valueC array nameD size of the arrayQ16.a[i] can be written asA i[a]B a+IC i+aD all are correctQ17.Structure is a collection of ________elementsA Same

Page 60: fpl

B DifferentC Same or DifferentD Same & DifferentQ18.A set of similar data types is called as____A structureB functionC pointerD arrayQ19.What is the index number of the last element of anarray with 29 elements?A 29B 28C 0D Programmer-definedQ20.Which element of the array does the expressionnum[4] references, where ` num ` is a name ofarray?A ForthB ThirdC FifthD FirstQ21.__________ is a group of related data items thatshare a common name.A ArrayB StructureC UnionD All of the above

13. SEARCHING & SORTINGQ 1. A _______ is the process of arranging theelements of an array in order.A searchingB sortingC selectionD NoneQ 2. The process finding data from list is called asA Sorting

Page 61: fpl

B SearchingC ParsingD ListingQ 3. The process through which data are arranged inascending or descending order is knownas_______A arrangingB sortingC listingD searchingQ 4. A bubble sort compares the _______ elements, asit carries out the sorting process.A contrasting elementsB first and lastC even numberedD adjacent

Q 5. How many passes are required for sorting usingbubble sort for n numbers.A n-1B n-2C nD None of the aboveQ 6. The process finding data from list is called asA SortingB SearchingC ParsingD Listing

14. PREPROCESSOR DIRECTIVEQ 1. Which of the following is not preprocessordirectory?A #ifB #elseifC #undefD #pragmaQ 2. All preprocessor directives are proceed ________A Before compilation of the programB After compilationC During executionD None of the aboveQ 3. Which of the following is not a valid preprocessordirective in ` C ` ?A #ifB #for

Page 62: fpl

C #undefD #pragmaQ 4. The include command tells the preprocessor thatwe need information from selected libraries knownas __________ .A header filesB library filesC c filesD i/p o/p fileQ 5. The word ` #define ` is used for the _____ .A macro definitionB header file declarationC file inclusionD commentingQ 6. Which of the following is not a pre-processordirective in ` C ` language?A #defineB #includeC #ifndefD #pointerQ 7. What is used to interpret the preprocessordirectives?A A CompilerB An InterpretorC A Pre processorD None of the above

15. FILE HANDLINGQ 1. The ___ function can be used to test for an end offile condition.A getcB fopenC ferrorD feofQ 2. Which of the following C functions is used to setfile pointer?A fwriteB fseekC freadD putcQ 3. Which of the following C functions is used to outputdata to a binary file?A fwriteB outputC write

Page 63: fpl

D writef

Page 64: fpl
Page 65: fpl
Page 66: fpl