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