Web Hosting Talk







View Full Version : Java + Questions, Need answers


Dan B
01-16-2008, 12:13 AM
Hello WHT! I know most of us are great on computers, some more than others, and some need that extra help. If anybody knows java I need some hel:

I have some PB questions I am stumped on:

- A named memory location which temporary stores data that can change while the program is running:(5 characters)

- A blueprint of an object- the model that defines the variables and methods an object will contain when instantiated (4th letter is "s" (5 characters))

-one of the operators that perform a logical NOT(!), and (&&) or (II). (15 +(2 words))

- differenciating between the uppercase and lowercase versions of an alphabetic letter. (13 characters)

-copy of a program stored on a hard drive, flash drive, or CD (2 words) (2nd letter is o) (8 characters)

- spaces, tabs and blank lines that are used to set off sections of source code to make programs more readable. (5th letter is e) (10 characters)

- A list of instructions (code) for the computer to follow written in some programming language. (7 characters)

CArmstrong
01-22-2008, 04:32 AM
Hey Dan, I moved this thread to Programming Discussion. Hopefully you'll get some help there. :)

Codebird
01-22-2008, 06:39 AM
A named memory location which temporary stores data that can change while the program is running5 characters)

A: cache

A list of instructions (code) for the computer to follow written in some programming language. (7 characters)

A: program

Steve_Arm
01-22-2008, 12:10 PM
1) stack
2) class
3)
4)
5)
6) ?? guidelines
7) program

dollar
01-22-2008, 12:26 PM
- A named memory location which temporary stores data that can change while the program is running:(5 characters)

cache sounds right

- A blueprint of an object- the model that defines the variables and methods an object will contain when instantiated (4th letter is "s" (5 characters))

class sounds right for this one

-one of the operators that perform a logical NOT(!), and (&&) or (II). (15 +(2 words))

Could be boolean operator?

- differenciating between the uppercase and lowercase versions of an alphabetic letter. (13 characters)

case sensitive (doesn't say two words, maybe they count it as one)

-copy of a program stored on a hard drive, flash drive, or CD (2 words) (2nd letter is o) (8 characters)

I'd go with software (says two words i know)

- spaces, tabs and blank lines that are used to set off sections of source code to make programs more readable. (5th letter is e) (10 characters)

formatting

- A list of instructions (code) for the computer to follow written in some programming language. (7 characters)

program seems to fit


I have no idea if these are all right or not.

Steve_Arm
01-22-2008, 12:31 PM
Cache is used to stored data that are access repeatedly, not changing.
The stack is an area allocated for program variables and it can change data.
Likewise heap is a memory area used for dynamic memory allocation.
So it has to be stack.

Codelphious
01-25-2008, 12:54 AM
This sounds like an extra-credit assignment for an introduction to computer programming class...

Anyway... ANSWERS:


- A named memory location which temporary stores data that can change while the program is running (5 characters)
Heap, or Stack. Not enough information given to say which for certain. If the memory is allocated dynamically it must be Heap, if the memory is allocated statically it is the Stack.


- A blueprint of an object- the model that defines the variables and methods an object will contain when instantiated (4th letter is "s" (5 characters))
Class. This could also be "struct", but it said 4th letter was an "s".


-one of the operators that perform a logical NOT(!), and (&&) or (II). (15 +(2 words))
Binary Operators. It's "binary" because it operates on two operands.


- differenciating between the uppercase and lowercase versions of an alphabetic letter. (13 characters)
Casesensitive.


-copy of a program stored on a hard drive, flash drive, or CD (2 words) (2nd letter is o) (8 characters)
ROM image.


- spaces, tabs and blank lines that are used to set off sections of source code to make programs more readable. (5th letter is e) (10 characters)
Style Rules. I know it doesn't say 2 words, but it's the only thing that makes sense to me.


- A list of instructions (code) for the computer to follow written in some programming language. (7 characters)
Program.

foobic
01-25-2008, 01:13 AM
- spaces, tabs and blank lines that are used to set off sections of source code to make programs more readable. (5th letter is e) (10 characters)whitespace

That Guy
01-25-2008, 02:46 AM
This sounds like an extra-credit assignment for an introduction to computer programming class...:

Heap, or Stack. Not enough information given to say which for certain. If the memory is allocated dynamically it must be Heap, if the memory is allocated statically it is the Stack.


I think you may have it switched. The stack is used for dynamic and the heap is used for static.

And yes, I agree. These sounds like questions you'd find in some sort of computer science course. :P

foobic
01-25-2008, 03:49 AM
A named memory location which temporary stores data that can change while the program is running:(5 characters)Since it's java, wouldn't this be "field"?