Save
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

Comp. Prog. Exam01

Computer Programing basics

QuestionAnswer
What are three problem solving techniques presented in class? Draw a picture, count, stepwise refinement, adopt a different perspective, add/remove a constraint, prototype.
If you need to store information in a Java program, where do you store it? In a variable
How do you change the value of a variable? Use and assignment statement.
Assume you have an Object, called anObject. Write a statement to send it a doStuff message which has no parameters. anObject.doStuff()
What is “pixel” an abbreviation for? What does it mean? Picture element, one dot on the screen
Write Java code to declare an variable of type Flopsy, named bunny. Flopsy bunny;
Create an object of type Flopsy and store it in bunny bunny = new Flopsy();
Assuming it exists, what method in the Flopsy class is invoked by System.out.println(bunny); ? toString()
How do you send information along with a message to an object? Put it in a parameter.
Java is a typed language. What does that mean? All information in the program has a type. 11.
How many colors (exactly) are possible in Java? 256 ^3
What are the three attributes of every variable? Type name value
What must every identifier in Java start with? A letter.
What characters are allowed in Java identifiers? Letters, digits, and underscores.
Assuming a programmer is following the capitalization convention, is foo a variable or a class? An Object
What are three Java statements we have covered so far? Assignment, Return, Message
Computing is information processing”; how is most processing accomplished in Java? By sending messages to objects.
Why are accessors called accessors? They allow objects to access the values in variables inside other objects.
Write Java code to declare an variable of type Foo named aFoo. Foo aFoo;
Where is information stored in a Java program? In variables
Java is a typed language, so all information in a Java program has a type. Name two types you have used in your programs. int, String, Button
Which, by convention, begin with small letters, object or class names? object names
Created by: cgammill
Popular Engineering sets

 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards