Byte Correct Answer-It uses the least amount of memory, but still holds numbers up to 255.
Integral data types Correct Answer-Ex. include byte, integer, short, and long;
store whole numbers—such as the number of goals a player has scored
Floating point data types Correct Answer-Examples l...
Certiport: Chapter 1 - Understanding Core
Programming Questions with Correct Answers
Byte Correct Answer-It uses the least amount of memory, but still holds
numbers up to 255.
Integral data types Correct Answer-Ex. include byte, integer, short, and
long;
store whole numbers—such as the number of goals a player has scored
Floating point data types Correct Answer-Examples like float, single,
and double can represent numbers that include fractional data, such as a
player's height.
Value data types Correct Answer-These go on the stack.
Reference data types Correct Answer-These go on the heap.
Nesting Correct Answer-Placing control structures inside other control
structures is called
What kind of expression must the code in the parentheses of an if-
statement be in: Correct Answer-Boolean
What do logical operators allow programmers to do? Correct Answer-
Join two expressions
, For loops work best when? Correct Answer-The number of iterations is
known and is unlikely to change
How many times does a do while loop execute? Correct Answer-At least
one time.
Unlike a do-while loop, a while loop may not execute at all!
The While loop Correct Answer-Executes a statement or block of
statements repetitively based on a Boolean expression.
The Do While Loop Correct Answer-Is similar to a while loop, but the
Boolean expression is not checked until after the code executes.
Try-catch Correct Answer-The code structure that will handle an
exception
An exception Correct Answer-An object that contains information about
an error. Developers use the terms throw and catch when talking about
exceptions. When an exception occurs it is thrown. Therefore, you
should catch any exceptions your program may encounter.
Try statement Correct Answer-Seen as a warning to the computer that
you're about to try something that may not work.
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller cracker. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $15.49. You're not tied to anything after your purchase.