Full Transcript

Multiple Choice Questions ========================= 1\. What is a computer capable of performing? - a\) Only mathematical calculations - b\) Logical decisions only - c\) Both computations and logical decisions - d\) None of the above Answer: c 2\. Which of the following is not a part...

Multiple Choice Questions ========================= 1\. What is a computer capable of performing? - a\) Only mathematical calculations - b\) Logical decisions only - c\) Both computations and logical decisions - d\) None of the above Answer: c 2\. Which of the following is not a part of computer hardware? - a\) Keyboard - b\) Mouse - c\) Compiler - d\) CD-ROM Answer: c 3\. What is the function of the ALU (Arithmetic and Logic Unit)? - a\) Storing data - b\) Performing arithmetic calculations and logic decisions - c\) Supervising and coordinating computer sections - d\) Outputting information Answer: b 4\. Which language is considered a high-level language? - a\) Assembly language - b\) Machine language - c\) C - d\) None of the above Answer: c 5\. Who developed the C programming language? - a\) Bjarne Stroustrup - b\) Dennis Ritchie - c\) James Gosling - d\) Ken Thompson Answer: b 6\. Which of the following languages is used for large-scale enterprise applications? - a\) C++ - b\) Java - c\) FORTRAN - d\) Pascal Answer: b 7\. What does the term \'multitasking\' refer to in programming? - a\) Running multiple programs simultaneously - b\) Running multiple activities in parallel within a program - c\) Running a program in multiple environments - d\) Running a program on multiple devices Answer: b 8\. What is a key advantage of object-oriented programming? - a\) Increased memory usage - b\) Reusable software components - c\) Simplified code writing - d\) Faster execution speed Answer: b 9\. What is the purpose of the C Standard Library? - a\) To create new programming languages - b\) To provide pre-written functions for common tasks - c\) To teach programming concepts - d\) To manage computer hardware Answer: b 10\. Which of the following is an example of a secondary storage unit? - a\) CPU - b\) RAM - c\) Hard drive - d\) ALU Answer: c 11\. The World Wide Web is primarily used to: - a\) Send emails - b\) View multimedia-based documents - c\) Store data - d\) Write programs Answer: b 12\. Which programming language was used to develop UNIX? - a\) FORTRAN - b\) COBOL - c\) C - d\) Java Answer: c 13\. What is the main function of an operating system? - a\) To compile programs - b\) To manage transitions between jobs - c\) To create hardware components - d\) To write software Answer: b 14\. In which programming paradigm is C++ categorized? - a\) Functional programming - b\) Procedural programming - c\) Object-oriented programming - d\) Logic programming Answer: c 15\. Which component supervises and coordinates the other sections of the computer? - a\) Input unit - b\) Memory unit - c\) ALU - d\) CPU Answer: d 16\. What type of programming is described as having a disciplined approach to writing clear and modular programs? - a\) Object-oriented programming - b\) Structured programming - c\) Assembly programming - d\) Functional programming Answer: b 17\. The evolution of operating systems led to which of the following? - a\) Batch processing - b\) Increased throughput - c\) Timesharing - d\) All of the above Answer: d 18\. What is the main advantage of using library functions in C? - a\) They are slower but more reliable - b\) They avoid the need to reinvent the wheel - c\) They allow for custom functionality - d\) They are difficult to debug Answer: b 19\. Which trend is described by hardware capacity doubling approximately every year or two? - a\) Software efficiency - b\) Hardware trends - c\) Network speed - d\) Programming languages Answer: b 20\. What concept allows multiple users to send and receive data simultaneously on the Internet? - a\) Centralized control - b\) TCP/IP - c\) Packet switching - d\) Bandwidth Answer: c True/False Questions ==================== 1\. A computer\'s primary function is to perform computations and make logical decisions. Answer: True 2\. Assembly language uses English-like abbreviations to represent elementary computer operations. Answer: True 3\. The history of the C programming language began with its development by James Gosling. Answer: False 4\. Secondary storage is typically faster than primary memory. Answer: False 5\. Java is used exclusively for web development and cannot be used for other types of applications. Answer: False 6\. Machine language is the highest level of programming language. Answer: False 7\. Batch processing systems perform multiple tasks simultaneously. Answer: False 8\. The ALU performs both arithmetic calculations and logical decisions. Answer: True 9\. Multiprogramming allows computer resources to be shared by many jobs or tasks. Answer: True 10\. The Internet has no centralized control, allowing it to continue functioning if parts fail. Answer: True 11\. Object-oriented programming is less organized than procedural programming. Answer: False 12\. The C standard library is designed to avoid the need to write new functions from scratch. Answer: True 13\. Structured programming promotes the creation of convoluted and difficult-to-read programs. Answer: False 14\. TCP/IP is the protocol suite used for communication over the Internet. Answer: True 15\. Hardware trends predict that processor speeds approximately double every year or two. Answer: True 16\. The C programming language was designed to be hardware dependent. Answer: False 17\. Java How to Program teaches first-year programming students the essentials of Java. Answer: True 18\. High-level languages are closer to machine code than to everyday English. Answer: False 19\. Distributed computing involves computing distributed over networks. Answer: True 20\. The World Wide Web makes information instantly and conveniently accessible worldwide. Answer: True Fill in the Blanks Questions ============================ 1\. A computer processes data under the control of sets of instructions called \_\_\_\_\_\_. Answer: computer programs 2\. The device used to obtain information from input devices like keyboards and mice is called the \_\_\_\_\_\_. Answer: input unit 3\. The \_\_\_\_\_\_ stores inactive programs and data long-term. Answer: secondary storage unit 4\. Strings of numbers giving machine-specific instructions are referred to as \_\_\_\_\_\_. Answer: machine languages 5\. The programming language that evolved from BCPL and B is \_\_\_\_\_\_. Answer: C 6\. Java was developed to create web pages with \_\_\_\_\_\_ content. Answer: dynamic and interactive 7\. In C programming, a piece of code created by a programmer that performs a specific task is called a \_\_\_\_\_\_. Answer: function 8\. The \_\_\_\_\_\_ component of a computer supervises and coordinates its other sections. Answer: CPU 9\. A \_\_\_\_\_\_ is an economical computer that is powerful enough for individual use. Answer: personal computer 10\. Programs that are convoluted and difficult to read, understand, and modify lack \_\_\_\_\_\_. Answer: program clarity 11\. In \_\_\_\_\_\_ programming, many activities can run in parallel. Answer: multitasking 12\. A \_\_\_\_\_\_ allows multiple users to send and receive data simultaneously on the Internet. Answer: packet switching 13\. Reusable software components in object-oriented programming are known as \_\_\_\_\_\_. Answer: objects 14\. The history of the Internet involves the use of \_\_\_\_\_\_ for transferring digital data. Answer: packet switching 15\. \_\_\_\_\_\_ provides applications for consumer devices such as cell phones and personal digital assistants. Answer: Java 16\. The \_\_\_\_\_\_ unit of a computer performs arithmetic calculations and logic decisions. Answer: ALU 17\. The process of linking the object code with the libraries in the C++ development environment is called \_\_\_\_\_\_. Answer: linking 18\. Programs that run on a computer are referred to as \_\_\_\_\_\_. Answer: software 19\. The amount of work computers process is referred to as \_\_\_\_\_\_. Answer: throughput 20\. A disciplined approach to writing clear, easy-to-test, and easy-to-modify programs is known as \_\_\_\_\_\_ programming. Answer: structured

Use Quizgecko on...
Browser
Browser