variables Flashcards

1
Q

what happened when you declaration a variable

A

the compiler reserve portion of main memory space large enough to hold a particular type of value and indicate the name

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

two pieces of information are used in the call to the println method

A

1-string

2-variable

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

when you change the value of the variable

A

is called assignment that means that assignment statement overwrites the old data ‘

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

constants

A

are to use English meaning of the words not variable their value doesn’t change

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

when naming a constant to distingiush them from regular variable

A

using upper case and seperate by _

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

PDA

A

personal digital assistenta

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

what is the role of 8 bits

A

the first bit to the sign

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

what happened if we put L at the end of the number

A

we mean that the type is long

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

what happened if we put F at the end of the statement

A

it means that the number is float

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

the difference between the number 607,”607is my data of birth day”

A

the first is number

the second is character

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

what is ASCII stand for

A

American standard code for information interchange

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

ASCII

A
upper case 
lower case 
. ; ,
digits 0-9
the space 
&
\ |
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

if we put L in the end of the the number

A

that is mean that the number if LONG

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

if we put F in the end of the the number

A

it means that the number is float

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

ASCII

A

american standard code for inforamation interchange

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

ASCII

A
upper case 
lower case 
. ; ,
the digts 0-9 
the space
&|\
17
Q

char c1 =”A” ; ​//”A”
char c2=”\u 00043”; //”A”
char c3=65; //”A”

A

A
A
A

18
Q

int code1=”A”;

int code2=56;

A

56

56

19
Q

how the character turn to binary

A

character to unicode to binary

20
Q

byte

A

-128 127

21
Q

short

A

-32,768 32,767

22
Q

int

A

-2,147,483,648 2,147,483,647