NEW
Font size
S
M
L
XL
WorksheetsCSA unit1 vocabulary quiz
Total questions: 22
Worksheet time: 11mins
Name
Class
Date
1.
Variable
a)
An algorithm to sort an array.
b)
A function that takes two parameters.
c)
A string literal in a Java program.
d)
The modulus of a complex number.
e)
A name associated with a memory location in the computer.
2.
boolean
a)
A function to convert a String to an integer.
b)
A method that returns no value.
c)
Used to declare a variable that can only have the value true or false.
d)
A floating-point data type.
e)
A loop that iterates through an array.
3.
double
a)
A data type for storing whole numbers.
b)
A sequence of characters.
c)
A data type that only stores true or false.
d)
Used to declare a variable that is a decimal number like 3.25.
e)
A data structure that holds multiple elements.
4.
int
a)
A method that performs addition.
b)
A function that prints text to the console.
c)
Used to declare a variable of type integer (a whole number like -3 or 235).
d)
An array that stores strings.
e)
A keyword for defining a constant.
5.
static
a)
A keyword to define a loop.
b)
An array of fixed size.
c)
Means that the field or method exists in the object that defines the class.
d)
A class that handles mathematical operations.
e)
A method for converting data types.
6.
compiler
a)
A text editor for writing code.
b)
A data structure for storing key-value pairs.
c)
A built-in library for web scraping.
d)
Software that translates the Java source code into the Java class file that can be run.
e)
A function in Python for reading from a file.
7.
compiler or syntax error
a)
An error or bug that is found by the compiler like a missing semicolon.
b)
A mathematical overflow.
c)
A runtime exception.
d)
A missing file in a file system.
e)
An error in a web server.
8.
Main Method
a)
A method for handling mouse events.
b)
A recursive function.
c)
The last method executed in a program.
d)
Where execution starts in a Java program.
e)
A mechanism for handling exceptions.
9.
Boolean
a)
A way to store large numbers.
b)
An expression that is either true or false.
c)
A variable that stores text.
d)
A type of loop.
e)
A method for parsing strings.
10.
Camel Case
a)
A data type for holding fractions.
b)
A user interface component.
c)
A sorting algorithm.
d)
A syntax for writing comments in code.
e)
One way to create a variable name by appending several words together and uppercasing the first letter of each word after the first word (myScore).
11.
Casting a Variable
a)
Adding elements to a list.
b)
Storing multiple variables in an array.
c)
Declaring a function.
d)
Changing the type of a variable using (type) name.
e)
Deleting a file in a file system.
12.
System.out.println()
a)
A method for array sorting.
b)
A command to shut down the computer.
c)
Java method that lets us print out a line of output followed by a newline to the user.
d)
A method to read data from a file.
e)
A function to calculate the square root.
13.
Declare a Variable
a)
A command for exiting a program.
b)
Defining a new class.
c)
Specifying the type and name for a variable. This sets aside memory for a variable of that type and associates the name with that memory location.
d)
Assigning a constant value to a variable.
e)
Opening a connection to a database.
14.
Initializing a Variable
a)
Setting up a network connection.
b)
Deleting a variable from memory.
c)
The first time you set the value of a variable.
d)
Creating a new object from a class.
e)
The process of ending a program.
15.
String literal
a)
A mathematical formula.
b)
A sequence of boolean values.
c)
Text enclosed by double quotes.
d)
A list of characters.
e)
A series of integer values.
16.
modulo
a)
An algorithm for sorting numbers.
b)
A binary operation for combining strings.
c)
A built-in Java function for finding the square root.
d)
The division operator in Python.
e)
The % operator which returns the remainder from one number divide by another.
17.
Operator
a)
A method in a class.
b)
A Java package for networking.
c)
A data type for storing large text.
d)
Common mathematical symbols such as + for addition and * for multiplication.
e)
A keyword for creating a new class.
18.
Shortcut or compound assignment operators
a)
Logic gates in digital electronics.
b)
Patterns in object-oriented design.
c)
Methods for converting between data types.
d)
Operators like x++ or x+= 1 which mean x = x + 1.
e)
Functions to perform file operations.
19.
assignment statements
a)
Functions to write data to a file.
b)
Commands to manipulate an array.
c)
Rules for validating data.
d)
Statements that return a value.
e)
Initialize or change the value stored in a variable using the assignment operator =.
20.
data type
a)
A loop that iterates indefinitely.
b)
Determines the size of memory reserved for a variable, for example int, double, boolean, String.
c)
A command for opening a new window.
d)
A method for calculating the average.
e)
A set of functions in a library.
21.
ArithmeticException
a)
A warning for low battery.
b)
An exception for file not found.
c)
An exception for invalid user input.
d)
An error for exceeding array bounds.
e)
If you divide by zero, you will get this error.
22.
operator precedence
a)
The flow of control in a switch statement.
b)
The order in which methods are called.
c)
Some operators are done before others, for example *, /, % have precedence over + and - unless parentheses are used.
d)
The sequence in which classes are loaded.
e)
The rules for matching braces in code.
Reset
