Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

COMP 248 – Final UPDATED Actual Exam Questions and CORRECT Answers

Rating
-
Sold
-
Pages
11
Grade
A+
Uploaded on
24-09-2024
Written in
2024/2025

COMP 248 – Final UPDATED Actual Exam Questions and CORRECT Answers Java compiler - CORRECT ANSWER- bytecode that translates source code Java interpreter - CORRECT ANSWER- takes Java bytecode and converts into machine language and executes it Algorithm - CORRECT ANSWER- a step-by-step process for solving a problem

Show more Read less
Institution
COMP 248
Course
COMP 248

Content preview

COMP 248 – Final UPDATED Actual
Exam Questions and CORRECT Answers
Java compiler - CORRECT ANSWER- ✔✔bytecode that translates source code



Java interpreter - CORRECT ANSWER- ✔✔takes Java bytecode and converts into machine
language and executes it


Algorithm - CORRECT ANSWER- ✔✔a step-by-step process for solving a problem



Pseudocode - CORRECT ANSWER- ✔✔detailed description on how to solve a problem



program - CORRECT ANSWER- ✔✔algorithm expressed in programming language



Steps in Problem Solving - CORRECT ANSWER- ✔✔1. understand problem
2. design solution (algorithm)
3. implement solution
4. test program & fix bugs


classes - CORRECT ANSWER- ✔✔collections of actions



methods - CORRECT ANSWER- ✔✔actions that an object can perform



statements - CORRECT ANSWER- ✔✔instructions you write when developing a computer
program


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


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

, logic errors - CORRECT 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 - CORRECT ANSWER- ✔✔words programmer uses in program to name variables,
classes, methods


Rules when naming an identifier - CORRECT ANSWER- ✔✔letters, digits, underscore,
dollar sign
CANNOT: begin with a digit, be reserved word, not too long


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



numeric type - CORRECT ANSWER- ✔✔all integers; int, byte, int, long
floating point numbers; float, double


character type - CORRECT ANSWER- ✔✔char ('a')



boolean values - CORRECT ANSWER- ✔✔boolean (T/F)



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



constant - CORRECT ANSWER- ✔✔holds one variable (all capital)



output - CORRECT ANSWER- ✔✔System.out.println(" ");



console output - CORRECT ANSWER- ✔✔import java.util.Scanner;
Scanner myKeyboard = new Scanner(System.in);


close() method - CORRECT ANSWER- ✔✔myKeyboard.close();

Written for

Institution
COMP 248
Course
COMP 248

Document information

Uploaded on
September 24, 2024
Number of pages
11
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$9.99
Get access to the full document:

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

Get to know the seller

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.
MGRADES Stanford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
1297
Member since
2 year
Number of followers
102
Documents
78249
Last sold
6 hours ago
MGRADES (Genius Brains)

Welcome to MGRADES Exams, practices and Study materials The work speaks for itself Me and my team will always make sure you get the best value from the exams markets. I offer the best study and exam materials for a wide range of courses and units. Make your study sessions more efficient and effective. Dive in and discover all you need to excel in your academic journey!

3.8

213 reviews

5
87
4
45
3
50
2
12
1
19

Trending documents

Recently viewed by you

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

Frequently asked questions