stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Programming Concepts Skill Review 3 Flashcards | StudBud
Explore
/
Programming Concepts Skill Review 3
Programming Concepts Skill Review 3
24 terms
·
StudBud Administration
A quiz on basic programming terms and concepts.
Flashcards
24 cards
F
Practice quiz
P
Host live
L
Questions
24
Answers
1
In Java, the name of the class must be the same as the name of the .java file.
false
true
true-but additional numbers may be added to the end
true-but case does not matter
2
When you create _____, you sketch out your programming in plain English before you write code.
pseudocode
fake code
syntax
synonyms
3
Which of the following is the correct definition of the main method?
Public static void Main(String arg)
public static method main(String[] arg)
public static void main(String[] arg)
public static main(String arg)
4
Which of the following translates and executes program code line by line
Translator
Assembler
Interpreter
Compiler
5
Programming language source code is always written in
rich text
word processor
plain text
notepad
6
All Java statements must end with a: ____
#
;
,
.
7
What does the word
binary
mean?
Binary means "having a discrete number of values."
Binary means "having only two states."
Binary means "containing a computer."
Binary means "using electronics to do arithmetic."
8
A Java compiler creates code for a Java Virtual Machine. What is a Java Virtual Machine?
the output of a Java Compiler
a Java Compiler
an idealized CPU that is simulated by a program
a chip made by Sun that is inside every computer
9
What is the output by the code
System.out.print("a\tc" );
a c
a\tc
abc
a\c
10
Which of the following is a valid identifier in Java?
main
java123
{abce
123java
11
Machine Language
instructions used directly without further translation
software responsible for the general operation of a computer
a sequence of 0s and 1s
program decodes instructions in a higher order language
12
Java is an object-oriented programming language. An object-oriented language
breaks problems into smaller, manageable problems.
Uses structured programming.
a program of objects which communicate through interactions.
All of the above.
13
Which of these is a correct string literal?
hello world
"hello world'
"hello world"
"hello" \"world"
14
Algorithm
a precise set of rules specifying how to solve some problem
programming in which units of data are viewed as "objects"
Software that performs some useful task
human-readable computer language, usually as text.
15
What is true about strong-typed languages?
variables are defined in bold type
variables are robustly defined
variables can contain numbers, booleans, and strings
variables are of one particular type
16
The execution of a Java application begins with the ___________ method.
main
begin
start
first
17
The escape sequence that represents the new-line character is:
\r
\\
\n
\t
18
The purpose of a Java compiler is to _______________
Translate bytecode to source code
Translate source code to bytecode
Execute the Java program
Edit the source code
19
In Java, source code is compiled into object code called ______________.
Bit-code
method code
Byte-code
class code
20
The extension for a Java source file is
txt
src
class
java
21
Our decimal number 44, when represented in binary, is:
111000
101010
101100
10100
22
Identify the invalid Java identifier.
1Week
Week1
amountDue
amount_due
23
What is a
bit
?
A bit is a single binary value.
A bit is a small unit of computer time.
A bit is a collection of several bytes.
A bit is a single character stored in main memory.
24
A _____ is a function that belongs to an object.
statement
variable
string
method