• 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 2 out of 14 pages
Exam (elaborations)

COMP 248 – Final Exam Study Guide.

Document preview thumbnail
Preview 2 out of 14 pages

COMP 248 – Final Exam Study Guide. Java compiler - answerbytecode that translates source code Java interpreter - answertakes Java bytecode and converts into machine language and executes it Algorithm - answera step-by-step process for solving a problem Pseudocode - answerdetailed description on how to solve a problem program - answeralgorithm expressed in programming language Steps in Problem Solving - answer1. understand problem 2. design solution (algorithm) 3. implement solution 4. test program & fix bugs classes - answercollections of actions methods - answeractions that an object can perform statements - answerinstructions you write when developing a computer program ©SIRJOEL EXAM SOLUTIONS 11/3/2024 10:54 PM compiler time errors - answersyntax error, system will tell you the problem run time errors - answerErrors that occur when the program is being executed. logic errors - answersemantics, bug in the program or mistake in algorithm that program may run but doesn't execute the way you wanted it to identifier - answerwords programmer uses in program to name variables, classes, methods Rules when naming an identifier - answerletters, digits, underscore, dollar sign CANNOT: begin with a digit, be reserved word, not too long what are the 3 primitive types - answernumeric, characters, boolean numeric type - answerall integers; int, byte, int, long floating point numbers; float, double character type - answerchar ('a') boolean values - answerboolean (T/F) variable - answergiving name to a location (ex. int total) constant - answerholds one variable (all capital) output - answerSln(" "); ©SIRJOEL EXAM SOLUTIONS 11/3/2024 10:54 PM console output - answerimport .Scanner; Scanner myKeyboard = new Scanner(S); close() method - answermyK(); Assignment Operator - answerequals sign = Order of operator precedence - answer1. brackets 2. positive or negative 3. multiplication, division, remainder 4. +, -, string concatenation (" + " +); equals() method - answerdetermine if two strings have same content, returns a boolean (T/F) if statement - answerif (condition) statement; if-else statement - answerif (condition) statement; else statement; compareTo() method - answerdetermines if one string comes before another, returns an int

Content preview

©SIRJOEL EXAM SOLUTIONS
11/3/2024 10:54 PM



COMP 248 – Final Exam Study Guide.


Java compiler - answer✔bytecode that translates source code


Java interpreter - answer✔takes Java bytecode and converts into machine language and executes

it


Algorithm - answer✔a step-by-step process for solving a problem


Pseudocode - answer✔detailed description on how to solve a problem


program - answer✔algorithm expressed in programming language


Steps in Problem Solving - answer✔1. understand problem


2. design solution (algorithm)

3. implement solution

4. test program & fix bugs


classes - answer✔collections of actions


methods - answer✔actions that an object can perform


statements - answer✔instructions you write when developing a computer program

, ©SIRJOEL EXAM SOLUTIONS
11/3/2024 10:54 PM


compiler time errors - answer✔syntax error, system will tell you the problem


run time errors - answer✔Errors that occur when the program is being executed.


logic errors - answer✔semantics, bug in the program or mistake in algorithm that program may

run but doesn't execute the way you wanted it to


identifier - answer✔words programmer uses in program to name variables, classes, methods


Rules when naming an identifier - answer✔letters, digits, underscore, dollar sign


CANNOT: begin with a digit, be reserved word, not too long


what are the 3 primitive types - answer✔numeric, characters, boolean


numeric type - answer✔all integers; int, byte, int, long


floating point numbers; float, double


character type - answer✔char ('a')


boolean values - answer✔boolean (T/F)


variable - answer✔giving name to a location (ex. int total)


constant - answer✔holds one variable (all capital)


output - answer✔System.out.println(" ");

Document information

Uploaded on
October 16, 2024
Number of pages
14
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$10.99

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
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
sirjoel
3.6
(20)
Sold
136
Followers
13
Items
12750
Last sold
1 month 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