• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 4 pages
Exam (elaborations)

Certiport Practice for CS Exam with Complete Solutions

Document preview thumbnail
Preview 1 out of 4 pages

Certiport Practice for CS Exam with Complete Solutions

Content preview

Certiport Practice for CS Exam with
Complete Solutions

for - correct Answer-The _________ loop executes a statement, or a block
of statements, based on the value of a control
variable (also called a counter).

while - correct Answer-The ___________ loop executes a statement or block of
statements repetitively based on a Boolean expression.
You can think of it as a repeating if statement.

do..while - correct Answer-The ____________ loop is similar to a while loop,
but the Boolean expression is not checked until
after the code executes.

exception - correct Answer-An ____________ is an object that contains information
about an error.

thrown - correct Answer-Developers use the terms THROW and CATCH when talking
about exceptions. When an exception
occurs it is ____________.

catch - correct Answer-You should _____________ any exceptions your program may
encounter.

try - correct Answer-Think of a ______________ statement as a warning to the
computer that you're about to try something that
may not work. "I'm going to do some division, and it might result in a
DivideByZeroException!"

catch - correct Answer-The ____________ block executes if the exception does occur.
You can leave this block empty but
generally it's good to put your "backup plan" in the catch block.

try-catch - correct Answer-A ___________________ structure doesn't prevent the
exception from being thrown, it simply the developer a chance to keep the program from
crashing.

object - correct Answer-Represents something from the real world

field - correct Answer-a variable declared within a class

Document information

Uploaded on
March 27, 2025
Number of pages
4
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$10.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
EXAMHAVEN
5.0
(1)
Sold
8
Followers
2
Items
2005
Last sold
3 weeks ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions