OOP Flashcards

1
Q

initiated the Java language project in June 1991

A

James Gosling, Mike Sheridan, and Patrick Naughton

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Java two types of programs

A

applications and applets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Data types

A

Integer (Numbers)
String (Words, Letters)
Float (Decimals (6-7))
Character (Specific Character)
Double (Decimals (15))
Boolean (True or False)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

helpful to take aclassor all classes visible for a program specified under apackage, with the help of a single statement

A

Importstatement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

By using this, we can access data members or member functions of a class directly without the use of a fully-qualified name.

A

static import statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

tells the compiler the path of a class or the entire package.

A

import statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

This method tells the compiler that the class is defined under a particular package, and we want to use that class or classes in our program.

A

Fully-qualified Name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

a block of code that, when called, performs specific actions mentioned in it.

A

method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

It is used to define the access type of the method.

A

Access Specifier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Public: You can access it from any class

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Private: You can access it within the class where it is defined

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Protected: Accessible only in the same package or other subclasses in another package

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

specifier used by the Java compiler if we don’t mention any other specifiers. It is accessible only from the package where it is declared

A

Default

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

It is used to give a unique name to the method.

A

Method name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

It is a list of arguments (data type and variable name) that will be used in the method.

A

Parameter list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

This is the set of instructions enclosed within curly brackets that the method will perform.

A

Method body

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

It defines the return type of the method

A

ReturnType

18
Q

The first device known to carry out calculations.

A

Abacus

19
Q

French philosopher and mathematician who invented the calculating device called the Pascaline.

A

Blaise Pascal

20
Q

English mathematician and physical scientist, designed two calculating machines—the difference engine and the analytical engine.

A

Charles Babbage

21
Q

The first computer-like machine.

A

Mark I

22
Q

Built at the University of Pennsylvania. It contained 18,000 vacuum tubes and weighed some 30 tons.

A

ENIAC
(Electronic Numerical
Integrator and Calculator)

23
Q

Built and sold to the U.S. Census Bureau.

A

UNIVAC
(Universal Automatic Computer)

24
Q

Two early programming languages.

A

FORTRAN and COBOL

25
Q

IBM introduced it in the year 1981.

A

PC
(Personal Computer)

26
Q

Designed and built the first Apple computer in their garage.

A

Stephen Wozniak and Steven Jobs

27
Q

Most handheld device has its GPS to locate locations.

A

GPS
(Global Positioning Satellites)

28
Q

is an electronic device capable of performing commands.

A

computer

29
Q

two main components of a computer system

A

hardware and software

30
Q

the ‘‘brain’’ of the computer and the single most expensive piece of hardware in a computer.

A

The central processing unit (CPU) i

31
Q

connected directly to the CPU

A

(RAM)

32
Q

consists of programs written to perform specific tasks.

A

Software

33
Q

two types of programs

A

System programs and application programs.

34
Q

The system program that loads first when you turn on your PC is called

A

operating system

35
Q

perform specific tasks.

A

Application programs

36
Q

There are two types of electrical signals:

A

analog and digital

37
Q

continuous waveforms used to represent things, such as sound.

A

Analog signals

38
Q

represent information with a sequence of 0s and 1s.

A

Digital signals

39
Q

The digit 0 or 1 is called

A

binary digit, or bit.

40
Q

A program that translates a program written in assembly language into an equivalent program in machine language.

A

Assembler