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.

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?

21
Q

can java variable begin with any digit or numbers?

22
Q

can the variable be in any length?

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

25
if there are more than one variable of the same type, you need to separate the variable names by using a ___
comma (,)
26
when printing variables, it needs to be enclosed in double quotes
false
27
used to perform operations on variables and values.
operators
28
data types, and are enclosed in single quotes.
Characters
29
To separate string literals from values of identifiers, use the + operator, which is also known as a
concatenation operator
30
predefined functions from a library that is readily available.
scanf or cin from C/C++
31
simply a way to put together a group of related classes and Java has quite a number of packages for your use.
Packages in Java
32
magic word to import the packages
import
33
what can be found in java.util package?
Scanner
34
Reads an int value
nextInt()
35
Reads a float value
nextFloat()
36
Reads a double value
nextDouble()
37
Reads a short value
nextShort()
38
Reads a long value
nextLong()
39
Reads a byte value
nextByte()
40
Reads a boolean value
nextBoolean()
41
Reads a string value
nextLine()