stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Creating Java Programs Flashcards | StudBud
Explore
/
Creating Java Programs
Creating Java Programs
59 terms
·
StudBud Administration
·
105 plays
Review topics and terms in Chapter 1 and 2 of Java Concepts: Early Objects #java
Flashcards
59 cards
F
Practice quiz
P
Host live
L
Questions
59
Answers
1
In programming, what is a function?
A piece of code called on over and over again
Something that repeats itself
A piece of data that can change
A piece of data that can never change
2
A ___ is a series of characters that will appear exactly as entered. A ___ is written between double quotation marks.
literal string, literal string
method, class
access specifier, method
literal string, code
3
A collection of programming instructions that describe how to carry out a particular task is a:
program
class
function
method
4
public static void main(String[] args) { . . . } This statement is called the:
static method
main statement
main method
required statement
5
The fundamental building blocks of Java programs are called:
classes
codes
applets
objects
6
An algorithm that can be understood and followed by a machine is called a computer...
pattern
simulation
program
interface
7
What do methods tell?
When to execute Code
When to implement properties
What the properties of the code are
When to stop a program
8
____ is any combination of non printing characters.
whitespace
K&R Style
class body
Camel Casing
9
What type of program can you use to enter your Java program?
Spreadsheet
Database
Compiler
Editor
10
What is Procedural Programming?
to indicate multiplication.
Focuses on objects, or "things."
Programmers create to manipulate data.
attempt to mimic real-world activities.
11
A place to write code, compile, and run it is known as an IDE. What does IDE stand for?
Intensive Development Enviroment
Integrated Development Editor
Integrated Development Environment
Intentionally Deceptive Economy
12
are the words that are part of a programming language
JDK
Javadoc
Java Interpreter
Keywords
13
JVM stands for:
Java Void Main
Java Virtual Machine
JaVa Methods
Java Virtual Method
14
All Java programming statements must end with a__Lines do not necessarily end with a semicolon
closing parenthesis
semicolon
comma
period
15
What translates Java source code into files that contain instructions for the JVM?
Assembler
Compiler
Interpreter
Linker
16
Which statement best describes the portability characteristic of Java?
Easy to change a java program to work on different OSs
Same Java class files run on different OSs without change
Easy to copy Java source code from one machine to another
Easy to compile Java source code on different OSs
17
___software is used for tasks such as word processing, calculations and playing games
System
Application
Java
Computer
18
"Hello, World!" is an example of what data type?
Int
Double
Char
String
19
In programming, what is a variable?
Something that repeats itself
A piece of code called on over and over again
A piece of data that can change
A piece of data that can never change
20
____ are also called modules, methods, functions, and subroutines. Java programmers most frequently use the term “method
Classes
Procedures
Applications
Methods
21
Object-oriented _____ are defined by the data and the methods associated with them.
untis
fields
classes
blocks
22
What term is used to refer to a sequence of characters enclosed in quotation marks?
Variable
Object
String
Comment
23
What do input methods allow you to do?
Control the computer
All of the above
Enter information
Direct the CPU
24
The rules for the programming language
logic
low level
high level
syntax
25
Memory in a computer is an example of what type of storage?
primary
public
secondary
tertiary
26
Collection of programming instructions?
arguments
string
main
method
27
Named computer memory locations are called _____________.
addresses
variables
compilers
appellations
28
consists of programming statements that have been compiled into binary format
Bug
Bytecode
Comments
Call A Procedure
29
Each ______ contains a sequence of instructions.
function
method
program
class
30
A programming loop is computer code that...
debugs computers
drives around
repeats itself
turns 360 degrees
31
A program written in ____ is the most basic circuitry-level language.
machine language
low level
High level
Java
32
Which type of secondary storage consists of rating platters and read/write heads?
RAM
Flashdrive
DVD
Hard disk
33
You misspelled the command javac. You misspelled the filename. You are not within the correct subfolder or subdirectory.
logic error
some of the reasons the javac command might not be recognized
IDE corrupted
syntac error
34
Which statement best describes a computer program?
A program can decide what task it is to perform.
Sequence of instructions & decisions a computer carries out.
A program can only perform one simple task.
Sequence of comments
35
is an object defined in the System class.
Println()
System
OUt
.
36
Which of these testing methods only include the input and the output?
Grey Box
Blue Box
White Box
Black Box
37
Translates an entire program before carrying out the statement
IDe
JVM
JRE
Compiler
38
In Java, almost every statement must end with this symbol:
,
!
;
.
39
Binary code that the computer understands
Assembly code
Low level language
High level language
Machine code
40
In programming, what are conditionals?
finding & fixing problems in your program
statements that only run under certain conditions
placeholders for information that can change
statements that repeat over and over
41
Why would a class named first would be different from a class named FIRST. which is wrong?
Programmers must pay close attention to correct uppercase/lowercase values
Java is case sensitive
Java is high -level
Class names w/different uppercase lowercase values have different classes.
42
An error that causes a program to perform an action the programmer did not intend is called a:
A feature
Run-time (Logic) error
An easter egg
Compile-time (Syntax) error
43
Methods with object instantiations, called instance methods.
boolean variable
nonstatic methods
data type
bug
44
a flaw or mistake in a computer program
Block coments
Bug
Applets
Arguments
45
What is OOP as related to Programming?
Out of Position
Order of Operations
Object Orientated Positioning
Object Orientated Programming
46
Why is creating a GUI environment for users a natural use for object orientation?-select the wrong answer.
a natural use for object orientation.
easy to think of the components a user uses on a computer to real world
As you write larger applications it becomes increasingly easy to use.
GUI object contains data,Each object also contains behaviors
47
When creating a program, the Package contains files. You can think of a Package as a ____
file
string
folder
method
48
A Java _____ can contain only letters, digits, ampersands, or number signs
class body
identifier
syntax
access specifier
49
When a Java application starts, what is the name of the method that is executed?
Main
main
start
begin
50
manages the computer
System software
static
syntax
syntax error
51
What is the term used to refer to Java code that runs in a browser?
Html
Script
Applet
Class
52
What does CPU stand for?
Central Programming Unit
Computer Processing Unit
Computer Programming Unit
Central Processing Unit
53
Which statement best describes a computer program?
Sequence of comments
Sequence of instructions & decisions a computer carries out.
A program can decide what task it is to perform.
A program can only perform one simple task.
54
There are 3 Levels of programming Languages, these are:
Java, Visual Basic, and binary
Machine Code, high-level, low-level
All of the above
Application, Internet, and web based
55
An informal description of a sequence of steps for solving a problem mixing Java & English:
bad code
directions
pseudocode
fake code
56
This type of error is a violation of the programming language rules and is called a:
Compile-time (Syntax) error
Programmer error
Run-time (Logic) error
Bad Code
57
Classes in Java should begin with:
an underscore
an uppercase letter
a lowercase letter
a number
58
You use an import statement when you want to access a built-in Java class that is contained in a group of classes called
access specifier
method
class body
Package
59
What is object- oriented Programming?
is to include all notable programming languages in existence
is a programming paradigm based on the concept of "objects",
is a programming which maycontain data in the form of fields
is to include all notable programming languages in existence