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