Data Structures MCQs
Multiple Choice Questions
33 Pages
MPC
Contributed by
Manpreet Prasad Chaudhuri
Loading
- DATA STRUCTURESFor Off Campus BSc Computer Science ProgrammeUNIT 11. Theoretical computer science refers to the collection of such topics that focus onthe__________, as well as mathematical aspects of computing.A. AbstractB. LogicalC. Both (a) and (b)D. None of the above2.___________ is neither an algorithm nor a program:A. ComputingB. Pseudo codeC. Computer scienceD. None of the above3. ________ is an art of expressing a program in simple English that parallels the forms of acomputer language:A. ComputingB. Pseudo codeC. Computer scienceD. None of the above4. A main procedural program contains modules. These modules are also called____________.A. PackagesB. UnitsC. Both (a) and (b)D. None of the above5. Programming languages are the tools that allow communicating between__________-:A. DeveloperB. ComputerC. Developer and dataD. Both (a) and (b)6. The computer languages allow solving real-world problems in the ________of the real world.A. Context
Page 1
- B. LanguageC. Both (a) and (b)D. None of the above7. The concepts in programming languages are essential knowledge to anyone who wants tobecome skilled in_________________.A. Computer programmingB. Data structuresC. DecodingD. None of the above8. What is a set of steps for carrying out a specific task called?A. ProgrammingB. Source codeC. Data packagesD. Algorithm9. A real world example of an algorithm would be a___________.A. RecipeB. UnitC. Food itemD. None of the above10. The actual text used to write the instructions for a computer program is calleda_______________.A. Source codeB. CompilerC. Both (a) and (b)D. Algorithm11. A compiler is a software tool that translates ___________that the computer can understand.A. Algorithm into dataB. Source code into dataC. Computer language into dataD. None of the above12. The object code is then passed through a program called a ___________ which turns it intoan executable program.A. IntegerB. Source codeC. Linker
Page 2
- D. None of the above13. Data type is the classification of pieces of information in a____________.A. LinkerB. CodeC. ProgramD. None of the above14. ____________ is a container that represents a value in a program.A. CompilerB. VariableC. Data typeD. None of the above15. To distinguish between different data types, a computer uses special__________.A. Internal codesB. External codesC. CompilersD. None of the above16. ____________is the same thing as a variable with one major difference. the value of aconstant does not change, while the value of a variable can change throughout a program.A. VariableB. ConditionalC. ConstantD. None of the above17. Array is a special type of variable used in many programming languages, such as_________.A. CB. C++C. JavaD. All of the above18. What is a segment of code that executes repeatedly based on a certain condition?A. FunctionB. ArrayC. LoopD. None of the above19. What is defined as a set of code used to carry out specific tasks?A. Function
Page 3
- B. ClassC. LoopD. None of the above20. What is used for a real world object that is to be used in a program?A. ProgramB. TemplateC. Car classD. None of the above21. ________ is object oriented programming language that uses virtual functions, multipleinheritance, exception handling, polymorphism, etc.A. C++B. CC. GUID. None of the above22. C++ provides comprehensive coverage of abstract classes, such as___________-.A. InterfacesB. Regular error handling, standard stringsC. I/O stringsD. All of the above23. Making a selection of a choice from two alternatives of a group of alternatives refersto___________.A. SelectionB. Transfer of controlC. Both (a) and (b)D. None of the above24. Which model is used to organize data in the main memory is called data structure?A. LogicalB. MathematicalC. DebuggingD. All of the above25. An index or subscript is a _________ integer value, which indicates the position of aparticular element in the array.A. NegativeB. PositiveC. Plain
Page 4
- D. Both (a) and (b)26. In which languages, the smallest subscript value is 1 and the largest subscript value is n.A. CB. C++ 12423C. BASIC, PASCAL and FORTRAND. Java27. A linked list is a linear collection of similar data elements called_________.A. SubscriptB. IndexC. NodesD. Null28. A ________is a linear list of data elements in which the addition of a new element or thedeletion of an element occurs only at one end.A. TopB. Push and popC. StackD. None of the above29. The hierarchical relationship between data elements can be easily represented using anonlineardata structure called_______.A. TreeB. Root nodeC. Child nodesD. None of the above30. What is the process of finding the location of a given data element in the data structurecalled?A. DeletionB. InsertionC. TraversingD. Searching
Page 5
- UNIT -231. Who should know about the basic algorithmic toolbox structures that allow efficientorganization and retrieval of data frequently used algorithms and basic techniques for modeling,understanding and solving algorithmic problems?A. Computer scientistB. Professional programmersC. Both (a) and (b)D. None of the above32. Algorithms are at the heart of every non-trivial computer application and also a modern andactive area of ____________-.A. ProgrammingB. Computer processingC. Computer scienceD. None of the above33. Operations performed on scalar quantities are termed simple, while operations on vector datanormally termed as_______.A. ComplexB. Not very complexC. SimpleD. None of the above34. An algorithm may have __________‘inputs’ quantities.A. One or moreB. Zero or moreC. Two or moreD. None of the above35.___________ refers to a finite set of steps, which, when followed, solves a particularproblem.A. AlgorithmB. FinitenessC. Output
Page 6
- D. None of the above36. The two main resources that we consider for an algorithm are__________.A. Memory space and processor timeB. Space complexity and time complexityC. Input and output propertiesD. None of the above37. Space complexity of an algorithm is the maximum amount of _______ required by it duringexecution.A. TimeB. OperationsC. Memory spaceD. None of the above38. Frequently, the memory space required by an algorithm is a multiple of the size of input.State if the statement is True or False or Maybe.A. TrueB. FalseC. MaybeD. None of the above39. In which algorithm, the number of times comparison to be done is also affected by thelocation of the value to be searched in the list?A. SearchB. Space efficientC. SearchingD. None of the above40. For many problems such as sorting, there are many choices of algorithms to use, someof which are extremely___________.A. Space efficientB. Time efficientC. Both (a) and (b)D. None of the above41. In the analysis of algorithms, what plays an important role?A. AnalysisB. Growth factorC. TimeD. None of the above
Page 7
- 42. An algorithm performs lesser number of operations when the size of input is small, butperforms more operations when the size of input gets larger. State if the statement is True orFalse or Maybe.A. TrueB. FalseC. MaybeD. None of the above43.________________ is a powerful technique which is used to invoke a function.A. ComputingB. RecursionC. Big Oh Ο (f)D. None of the above44. A function, which invokes itself repeatedly until some condition is satisfied, is calleda_________.A. Recursive functionB. Big Theta θ(f)C. Big Omega Ω(f)D. None of the above45. The number of recursive calls is limited to the _____ of the stack.A. TimeB. AbilityC. QualityD. Size46. ___________functions, which invoke (call) each other, are called mutually recursivefunctions.A. Two or moreB. One or moreC. Three or moreD. None of the above47. For certain problems, a recursive solution is ____________as in the case of factorial of anumber:A. StraightforwardB. SingleC. Both (a) and (b)D. None of the above
Page 8
- 48. A recursive function is often less efficient compared to an iterative function. But it ismore________.A. ElegantB. ComplexC. SimpleD. None of the above49. An iterative function is preferred when its recursive equivalent is__________.A. ComplexB. SimpleC. EfficientD. None of the above50. What is a good approach to remove recursion from an algorithm?A. RecursionB. Stack implementationC. RegressiveD. None of the above51. To verify whether a function grows faster or slower than the other function, we have someasymptotic or mathematical notations, which is_________.A. Big Omega Ω (f)B. Big Theta θ (f)C. Big Oh O (f)D. All of the above52. A subroutine can be coded so that it may call itself recursively, at___________, in order toperform its task.A. One or more placesB. Two or more placesC. More placesD. None of the above53. A function in which f(n) is Ω(g(n)), if there exist positive values k and c such that f(n)>=c*g(n), for all n>=k. This notation defines a lower bound for a function f(n):A. Big Omega Ω (f)B. Big Theta θ (f)C. Big Oh O (f)D. None of the above
Page 9
- 54. An algorithm that indicates the amount of temporary storage required for running thealgorithm, i.e., the amount of memory needed by the algorithm to run to completion is termedas_____.A. Space complexityB. Big Theta θ (f)C. Big Oh O (f)D. None of the above55. The amount of time the computer needs to run to completion is known as_____:A. Space complexityB. Time complexityC. Recursive functionD. None of the above56. How many important properties (features) of algorithm are there?A. ThreeB. FiveC. TwoD. None of the above57. ___________algorithm is one which utilizes minimum processor time and requires minimummemory space during its execution.A. BestB. EfficientC. Both (a) and (b)D. None of the above58. In simple terms, we can say that an algorithm is a step-by-step procedure for performingsome task in a finite amount of time. State if the statement is true or false.A. FalseB. TrueC. MaybeD. None of the above59. Each operation must have a definite meaning and it must be perfectly clear. All steps of analgorithm need to be precisely defined. The actions to be executed in each case should be_____________.A. Rigorously specifiedB. Clearly specifiedC. Both (a) and (b)D. None of the above60. In general, a problem may be defined as a state of thing that is not in the___________.
Page 10
Download this file to view remaining 23 pages
Related documents:
- Management (Paper II) 2017 Question Paper - Question Paper
- Modern India - II - MCQ
- Current Electricity Importabt Notes and MCQs - Notes
- Lab 3 Population Genetics - Assignment
- Total Quality Management Solved MCQs - MCQ
- Marketing - Notes
- Modern India –II Unit 2 Questions with answers - Question Bank
- Liquidation - Notes
- CONCEPT RECAPITULATION TEST - IV Paper 1 [ANSWERS, HINTS & SOLUTIONS]
- SERVICES MARKETING - Notes
- MG6851 Principles of Management QBank - Question Bank
- Binomial Theorem (Solved MCQs and Notes) - Notes
- Rotationl Motion Notes and MCQs - Notes
- Special Education - Question Bank
- MBA sem-3 Question bank for all the topics - Question Paper
- Physics (Paper II) 2017 Question Paper - Question Paper
- International Trade - Question Bank
- FULL TEST – I Paper-2 [ANSWERS, HINTS & SOLUTIONS]
- Modern India –II Unit 5 Questions with answers - Question Bank
- Indefinite and Definite Integration (Solved MCQs and Notes) - Notes