CSCI 1301: Intro to Programming
fully solved 2025(graded A+)
compiling and running java program - answer java program is
translated by the compiler into bytecode. bytecode is translated to
machine level language by the java virtual machine. computer
executes machine level language.
compilers translate __ into ___ - answer source code; object code
what does the CPU do - answer performs instructions of a program
Main Memory - answer holds the program currently running, can
disappear when computer is shut down, fast speed but not alot of
space. (RAM)
Auxiliary Memory - answer lots of space, sometimes external, very
slow, not lost when computer is shut down, holds everything not
currently being used.
define file and directory - answer group of bytes stored in the
auxiliary memory is a file. groups of files are directories.
high level language: define and give example - answer modern
programming language that is easy for most people to understand.
java is a high level language.
machine language - answer language that computer can directly
understand
low level language - answer close to computer language but need
minor translations before computer can run it. Assembly language is
one.
, Compiler compiles ___ into___ (same as other but different terms) -
answer high level language (source code) into low level language
(object code)
interpreter - answer like a compiler but translates in chunks and
immediately executes those chunks. example: JVM
Integrated development environment (IDE) - answer combines text
editor with menu commands for compiling and running a java
program.
Object oriented programming language (OOP) - answer software
made of "objects" that act and interact
syntax errors - answer syntactical mistakes such as capitalization or
missing a ";". a warning is given.
runtime errors - answer occur during execution, such as dividing by
0.
logistical errors - answer conceptual mistakes in algorithms or
program. might work fine but output is wrong. no warning given.
class data types - answer ex: String,
primitive data types (from smallest to largest)and what they hold -
answer byte(integer), short(integer), int(default integer),
long(integer), float(decimal number), double(decimal number),
char(single character), boolean(true or false).
fully solved 2025(graded A+)
compiling and running java program - answer java program is
translated by the compiler into bytecode. bytecode is translated to
machine level language by the java virtual machine. computer
executes machine level language.
compilers translate __ into ___ - answer source code; object code
what does the CPU do - answer performs instructions of a program
Main Memory - answer holds the program currently running, can
disappear when computer is shut down, fast speed but not alot of
space. (RAM)
Auxiliary Memory - answer lots of space, sometimes external, very
slow, not lost when computer is shut down, holds everything not
currently being used.
define file and directory - answer group of bytes stored in the
auxiliary memory is a file. groups of files are directories.
high level language: define and give example - answer modern
programming language that is easy for most people to understand.
java is a high level language.
machine language - answer language that computer can directly
understand
low level language - answer close to computer language but need
minor translations before computer can run it. Assembly language is
one.
, Compiler compiles ___ into___ (same as other but different terms) -
answer high level language (source code) into low level language
(object code)
interpreter - answer like a compiler but translates in chunks and
immediately executes those chunks. example: JVM
Integrated development environment (IDE) - answer combines text
editor with menu commands for compiling and running a java
program.
Object oriented programming language (OOP) - answer software
made of "objects" that act and interact
syntax errors - answer syntactical mistakes such as capitalization or
missing a ";". a warning is given.
runtime errors - answer occur during execution, such as dividing by
0.
logistical errors - answer conceptual mistakes in algorithms or
program. might work fine but output is wrong. no warning given.
class data types - answer ex: String,
primitive data types (from smallest to largest)and what they hold -
answer byte(integer), short(integer), int(default integer),
long(integer), float(decimal number), double(decimal number),
char(single character), boolean(true or false).