1. Two main measures for the efficiency of an algorithm are_____
- a) Processor and memory
- b) Complexity and capacity
- c) Time and space
- d) Data and space
Answer: C - Time and space complexity are the primary measures of an algorithm's efficiency.
2. The complexity of merge sort algorithm is_____
- a) O(n)
- b) O(log n)
- c) O(n2)
- d) O(n log n)
Answer: D - Merge sort has a time complexity of O(n log n) in all cases.
3. HTTP refers to ?
- a) Hyper Text Transfer Protocol
- b) Hyper Text Transmission Protocol
- c) Hyper Text Tie Protocol
- d) None of these
Answer: A - HTTP stands for Hyper Text Transfer Protocol, the foundation of data communication on the web.
4. Dim a as Integer What do you mean by integer within the given quotation_____
- a) Boolean
- b) Number
- c) String
- d) None
Answer: B - "Integer" refers to a numeric data type for whole numbers.
5. Which property determines whether a control is displayed to the user?
- a) Hide
- b) Show
- c) Visible
- d) Enabled
Answer: C - The "Visible" property controls the display of a control in UI.
6. The complexity of linear search algorithm is_____
- a) O(n)
- b) O(log n)
- c) O(n2)
- d) O(n log n)
Answer: A - Linear search checks each element sequentially, resulting in O(n) complexity.
7. A world wide web contains web pages_____
- a) residing in many computers
- b) created using HTML
- c) with links to other web pages
- d) residing in many computers linked together using HTML
Answer: D - The WWW is a network of HTML-based pages hosted on interconnected computers.
8. Which statement about objects is true?
- a) One object is used to create one class.
- b) One class is used to create one object.
- c) One object can create many classes.
- d) One class can create many objects.
Answer: D - A class acts as a blueprint to instantiate multiple objects.
9. Which is a Domain name extension ?
- a) .flv
- b) .xls
- c) .com
- d) .rrr
Answer: C - ".com" is a standard top-level domain (TLD) extension.
10. An object is composed of_____
- a) properties
- b) methods
- c) events
- d) All of the above
Answer: D - Objects encapsulate properties, methods, and events.
11. The complexity of the average case of an algorithm is_____
- a) Much more complicated to analyze than that of worst case
- b) Much more simpler to analyze than that of worst case
- c) Sometimes more complicated and some other times simpler than that of worst case
- d) None or above
Answer: A - Average-case analysis often requires probabilistic methods.
12. What is the internet explorer ?
- a) An icon
- b) a file manager
- c) A browser
- d) an Internet
Answer: C - Internet Explorer is a web browser developed by Microsoft.
13. ______ is text with hyperlinks.
- a) Lower Text
- b) Upper Text
- c) Toggle Text
- d) Hypertext
Answer: D - Hypertext contains clickable links to other documents or sections.
14. Program flowcharts are the parts of_____
- a) operation chart
- b) process chart
- c) algorithms flowchart
- d) system flowcharts
Answer: C - Flowcharts visually represent algorithmic steps.
15. If you Convert Numeric to Character expression then use_____
- a) Str( )
- b) Val( )
- c) Instr( )
- d) Len( )
Answer: A - The `Str()` function converts numbers to strings.
16. How many MDI forms can be added in a Project File ?
Answer: B - Only one MDI (Multiple Document Interface) form is allowed per project.
17. A module-level is available to all the _______ in the module
- a) Data
- b) Procedures
- c) Event.
- d) Task
Answer: B - Module-level variables are accessible to all procedures within the module.
18. In the IDE, which of following is used to design the layout of an application?
- a) Form Designer window.
- b) Project Explorer window.
- c) Context Menu.
- d) Form Layout window.
Answer: A - The Form Designer allows visual UI layout creation.
19. Code window consists of a ______ box and procedure list box
- a) Object.
- b) Event.
- c) Tool.
- d) Message.
Answer: A - The Object box lists controls for code editing.
20. Code in VB is stored in______
- a) Module.
- b) Report.
- c) Both (a) and (b).
- d) None of above.
Answer: A - VB code is typically stored in modules (.bas files) or form modules.