Anda di halaman 1dari 3

ComOrg

Quiz#1

Answers

Give at least (5) types of registers. (Except register).


1. Stack
1. ___________________________
2. ___________________________

2. General purpose
registers

3. ___________________________

3. Index registers

4. ___________________________

4. Stack registers

5. ___________________________

5. Segment registers

Give the five (5) logical instructions.


6. AND
1. ___________________________
7. OR
2. ___________________________
8. XOR
3. ___________________________
9. TEST
4. ___________________________
10. NOT

5. ___________________________

CP1

Quiz#1

Answers

1. The first publicly available version of Java was

1. Java 1.0

2. It is a software implementation of a computer that executes


program like a real machine.

2. Java Virtual Machine

3.

3. Java Runtime
Environment

It consists of the JVM and the Java class libraries. Those


contain the necessary functionality to start Java programs.

4. It contains the development tools necessary to create Java


programs. It therefore consists of a Java compiler, the JVM
and the Java class libraries.

4. Java Development Kit

5. Default Constructor
5. It is a constructor that have no parameter.
6. It is a constructor that have a parameter.

6. Parameterized
Constructor

7. If a class have multiple method by same name but different


parameters.

7. Method Overloading

8. In a simple declaration, the initial value of the variable is


undefined.

8. Initialization

9. It is a literal, a variable, or a sequence of operations on


literals and/or variables that produces a value.

9. Expressions

10. It is a sequence of computation.

10. Precedence

OOP

Quiz#1

Answers

1. Consist of just writing the sequence of commands or


statements in the main program.
2. The language which a central processing unit (CPU) of a
computer understands and consists only of numbers.

1. Unstructured
Programming
2. Machine Language

3. An example of object-oriented programming.


4. An interaction to the outside world through the methods that
they are exposed.
5. A namespace that organizes a set of related classes and
interface.
6. Represented as a 3-compartment box, containing name,
variables, and method respectively.
7. The source code for an object can be written and maintained
independently of the source code for an object.
8. Implemented in the form of objects that contain a method
called run().

3. Java
4. Interface
5. Package
6. Class
7. Modularity
8. Thread
9. sleep()
10. wait()

9. Thread method that blocks for a specified time.


10. Thread method that blocks until certain conditions occurs.

SPL

Quiz#1

1. Reason to study concurrency.

Answers
1. It involves a new way of designing
software that can be very usefulmany
real-world situations involve concurrency.

2. Cooperation is a kind of synchronization.


Explain how does it work.

Computer capable of physical


concurrency are non widely used.
2. Task A must wait for task B to complete
some specific activity before task A can
continue its execution.

WebProg

Quiz#1

1. A shorthand property for setting all the padding properties in one


declaration.
2. Sets the bottom padding of an element.
3. Used to set the color of the text.
4. Sets the horizontal alignment of the text.
5. Specifies the decoration added to a text.
6. The first publicly available version of Java.
7. It is a software implementation of a computer that executes

Answers
1. Dotted
2.
3.
4.
5.
6.
7.

dashed
solid
double
groove
Java 1.0
Java Virtual Machine

program like a real machine.


8. It consists of the JVM and the Java class libraries. Those contain
the necessary functionality to start Java
9. It describes how HTML elements are to be displayed on screen.
10. It is used to define styles for the web pages, including the design,
layout and variations in display for different devices and screen
sizes.

8. Java Runtime
Environment
9. CSS
10. CSS

Anda mungkin juga menyukai