INTRODUCTION Flashcards

1
Q

deals about creating objects that contain
both data and functions.

A

Object-Oriented Programming

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

popular programming language

A

Java

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

Who owned Java?

A

Oracle

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

When is Java created?

A

1995

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

Java requires a __

A

main function

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

Java is enclosed in a __

A

class

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

The main function or in Java parlance, the main method,

A

accepts an array
of arguments.

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

print a line on java console

A

System.out.println

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

strongly-typed programming language, which means that you cannot put or assign or store different types of data together.

A

Java

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

Characters, including nonprintable.

A

char

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

True or False

A

boolean

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

Network packets

A

byte

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

Whole numbers

A

int

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

Smaller than int

A

short

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

Larger than int

A

long

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

Numbers with floating points.

A

float

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

Larger numbers with floating points.

A

double

18
Q

Data should be stored in __

A

identifier or variable

19
Q

variable names

A
  • alphanumeric characters
  • the dollar sign
  • underscore
20
Q

is java variable case sensitive?

A

yes

21
Q

can java variable begin with any digit or numbers?

A

no

22
Q

can the variable be in any length?

A

yes

23
Q

declaring Java variables

A

<data_type> <variable_name>
</variable_name></data_type>

24
Q

___ should be declared first before you can make use of them

A

variables

25
Q

if there are more than one variable of the same type, you need to separate the variable names by using a ___

A

comma (,)

26
Q

when printing variables, it needs to be enclosed in double quotes

A

false

27
Q

used to perform operations on variables and values.

A

operators

28
Q

data types, and are enclosed in single quotes.

A

Characters

29
Q

To separate string literals from values of identifiers, use the + operator, which is also known as a

A

concatenation operator

30
Q

predefined functions from a library that is readily available.

A

scanf or cin from C/C++

31
Q

simply a way to put together a group of related classes and Java has quite a number of packages for your use.

A

Packages in Java

32
Q

magic word to import the packages

A

import

33
Q

what can be found in java.util package?

A

Scanner

34
Q

Reads an int value

A

nextInt()

35
Q

Reads a float value

A

nextFloat()

36
Q

Reads a double value

A

nextDouble()

37
Q

Reads a short value

A

nextShort()

38
Q

Reads a long value

A

nextLong()

39
Q

Reads a byte value

A

nextByte()

40
Q

Reads a boolean value

A

nextBoolean()

41
Q

Reads a string value

A

nextLine()