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

Itcs113 MCQ

This document contains multiple choice questions about computer hardware, software, programming languages, Java bytecode, object-oriented programming, algorithms, testing and debugging, and software reuse. The questions cover topics such as the roles of the CPU and memory, low-level vs high-level languages, compilers, interpreters, Java class files, applets, the Java Virtual Machine, object-oriented design principles, types of errors, pseudocode, and benefits of software reuse.

Uploaded by

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

Itcs113 MCQ

This document contains multiple choice questions about computer hardware, software, programming languages, Java bytecode, object-oriented programming, algorithms, testing and debugging, and software reuse. The questions cover topics such as the roles of the CPU and memory, low-level vs high-level languages, compilers, interpreters, Java class files, applets, the Java Virtual Machine, object-oriented design principles, types of errors, pseudocode, and benefits of software reuse.

Uploaded by

Ghadeer Ojaimi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Multiple-Choice Questions for ITCS111/113 Feb 26, 2017

Hardware and Software


1. This part of the computer fetches instructions, carries out the operations commanded by the
instructions, and produces some outcome or resultant information.
(a) Memory (b) CPU
(c) secondary storage (d) input device

2. A byte is made up of eight _____________.


(a) CPUs (b) addresses
(c) variables (d) bits

3. Each byte in the memory is assigned a unique _____________.


(a) address (b) CPU
(c) variable (d) bit

4. This type of memory can hold data for long periods of time—even when there is no power to the
computer.
(a) RAM (b) primary storage
(c) secondary storage (d) CPU storage

5. What unit of storage is used to represent 10 9 bytes?


(a) kilobyte (b) Terabyte
(c) Gigabyte (d) Megabyte

6. Memory stores _____________.


(a) The operating system (b) The data processed by the application
program
(c) Application programs (d) All of the above

7. Bit is short for _____________.


(a) Binary system (b) Binary unit
(c) Digital byte (d) Binary digit

Programs, Programming Languages, Compilers, and Interpreters


1. The most basic circuitry-level computer language, which consists of 1 and 0, is ______________.
(a) a high-level language (b) machine language
(c) Java (d) C++

2. Languages that let you use a vocabulary of descriptive terms, such as read, write, or add, are known
as ______________ languages.
(a) high-level (b) machine
(c) procedural (d) object-oriented
Multiple-Choice Questions for ITCS111/113 Feb 26, 2017

3. A ______________ translates high-level language statements into machine code.


(a) programmer (b) syntax detector
(c) compiler (d) class loader

4. The input program to a complier or interpreter is called _____________.


(a) Object code (b) Byte code
(c) source code (d) Assembly language code

5. A Java program is portable means it _____________.


(a) Can run on any machine (b) Can write on any machine
(c) Can read from as well as write to any (d) All of the above
machine

Java Bytecode, Class Loader, Applications and Applets


1. Computers process data under the control of sets of instructions called ______________ .
(a) Hardware (b) Input
(c) Output (d) Programs

2. The file produced by the Java compiler contains _____________ that are executed by the Java
Virtual Machine.
(a) Bits (b) Bytes
(c) Bytecodes (d) High-level codes

3. Java programs can be executed in computer after


(a) converting them to bytecode (b) converting them into machine code
(c) can be executed directly (d) None of the above

4. The process of instructing the computer to solve a problem is called _____________.


(a) Compiling (b) Programming
(c) Processing (d) Controlling

5. Java is a ________________ programming language.


(a) Low-level (b) High-level
(c) Neural (d) Natural

6. The information stored in _____________ typically is volatile (i.e. it disappears when you shut down
your computer).
(a) Hard disks (b) Cloud memory
(c) Main memory (d) Auxiliary memory

7. When a Java program is compiled, the file produced by the compiler ends with the __________ file
extension.
Multiple-Choice Questions for ITCS111/113 Feb 26, 2017

(a) .java (b) .class


(c) .cpp (d) .exe

8. _____________ is a type of program that is designed to be transmitted over the Internet and run in
a Web browser
(a) Application (b) Applet
(c) Machine language (d) Source code

9. JVM stands for _____________.


(a) Java Variable Machine (b) Java Variable Method
(c) Java Virtual Method (d) Java Virtual Machine

Object-Oriented Programming
1. _____________ is not an Object-Oriented design principle
(a) Inheritance (b) Encapsulation
(c) Ploymorphism (d) Sequence

2. Inheritance means _____________.


(a) Many Java methods (b) Information is put in one place with
methods
(c) Information is shared between classes (d) Write variable names correctly

3. Encapsulation means _____________.


(a) Methods with the same name but different (b) Information hiding
functionality
(c) Information is shared between classes (d) Writing statements after each other

4. Polymorphism means _____________.


(a) Many forms (b) Part of a class hidden and another is visible
(c) Information defined in one class can be (d) Writing a Java program
used by another class

Algorithms, Testing and Debugging and Software Reuse


1. An algorithm is _____________.
(a) a set of directions for solving a problem (b) a source program
(c) a programming language (d) a type of main memory

2. Pseudocode is
(a) used to write an algorithm (b) a machine language
Multiple-Choice Questions for ITCS111/113 Feb 26, 2017

(c) used to generate a byte code (d) used to test a program

3. A syntax error _____________.


(a) is a grammatical mistake in your program (b) is the same as a logical error
(c) cannot be discovered (d) cannot be corrected

4. Runtime errors are _____________.


(a) Grammatical mistakes in a program (b) Errors that are detected during
compilation
(c) Errors that are detected when your (d) Errors that do not stop the program from
program is running, but not during running when they occur.
compilation

5. The rules of a programming language constitute its _____________.


(a) objects (b) logic
(c) format (d) syntax

6. An error in a program is called a _____________.


(a) mistake (b) bug
(c) loophole (d) virus

7. Reused components _____________.


(a) Are likely better tested piece of software, (b) Does not save time and money
and more reliable than newly created
software
(c) Should not be used to produce new (d) Are garbage collection data components
programs.

You might also like