How can we help?

You can also find more resources in our Help Center.

Study sets matching "2 computer science java"

Study sets
Classes
Users

Study sets matching "2 computer science java"

12 terms
Computer Science 2 AP; Java
Main Method
Delimiters
Syntax
Print
Required method in every Java program.
Creates a Program Block, such as curly brackets which begin a…
The rules governing the formation of statements in a programm…
Doesn't leave an extra blank line.
Main Method
Required method in every Java program.
Delimiters
Creates a Program Block, such as curly brackets which begin a…
30 terms
Computer Science Java Ch 2
In Java, what data type is used to rep…
What symbol is used for concatenation?
What do we call a series of characters…
What is a name for a location in memor…
Strings
+
Escape Sequence
Variable
In Java, what data type is used to rep…
Strings
What symbol is used for concatenation?
+
52 terms
AP Computer Science: Chapter 2 - Introducing Java
Algorithm
Argument
Bytecode
Class
A set of steps that outline how to solve a problem.
Data passed to a method for processing.
Compiled Java source code.
The description of an object.
Algorithm
A set of steps that outline how to solve a problem.
Argument
Data passed to a method for processing.
24 terms
computer science 7th edition chapter 2 java
constant
variable
data type
primitive type
describes the values that cannot be changed during the execut…
is a named memory location that you can use to store a value
describes the type of data that can be stored there, how much…
is a simple datât type. Java's are byte, short, int, long, fl…
constant
describes the values that cannot be changed during the execut…
variable
is a named memory location that you can use to store a value
23 terms
Computer Science: JavaScript Quiz 2
Declaration
Initialization
Untyped
Data Type
The Act of Announcing a Variable
The Act of Assigning a Value to a Variable. In JavaScript if…
A Programming Language in which, Variables can Hold any Data…
The Type of Value a Variable Holds
Declaration
The Act of Announcing a Variable
Initialization
The Act of Assigning a Value to a Variable. In JavaScript if…
33 terms
computer science vocab java
class
variable
declare
initializing
A class is the blueprint from which individual objects are cr…
Stores different types of data
Declaring the value or name of a variable.
Assigning value to a variable
class
A class is the blueprint from which individual objects are cr…
variable
Stores different types of data
19 terms
Computer Science Ch 1-2 Java Vocab
Abstraction
Attribute
Constructor
Encapsulation
When parts of the code are hidden. You do not know bow the co…
A specification that defines a property of an object, element…
What we do to create an object of the class. Ex: creating a n…
When everything an object needs to know is defined in the cla…
Abstraction
When parts of the code are hidden. You do not know bow the co…
Attribute
A specification that defines a property of an object, element…
13 terms
Computer Science Set #2 Variables and Naming in Java
Naming Convention
Identifier
Lower Case
Upper Case
a rule to follow as you decide what to name your identifiers
everything in Java is given a name, the names are called iden…
all letters in a word are written without any capitalization
all letters in a word are written in capitals, use underscore…
Naming Convention
a rule to follow as you decide what to name your identifiers
Identifier
everything in Java is given a name, the names are called iden…
AP Computer Science: Ch. 2 Introduction to Java
platform independent
bytecode
Java Virtual Machine (JVM)
compiler
program source code created on one type of computer platform…
low level-level code file that cannot execute as a regular ma…
Bytecode is understood, and executed, by a Java interpreter,…
to translate the program source code created by the programme…
platform independent
program source code created on one type of computer platform…
bytecode
low level-level code file that cannot execute as a regular ma…
22 terms
Computer Science: Java Operators
first highest precedence
second highest precedence
third highest precedence (lowest prece…
increment operator
unary operators: +, -, !, ++, and --
binary arithmetic operators: *, /, and %
binary arithmetic operators: + and -
increases the value of the variable by one
first highest precedence
unary operators: +, -, !, ++, and --
second highest precedence
binary arithmetic operators: *, /, and %
27 terms
Computer Science 2: Java Output Test
java
java
java
java
fastest growing programming language
object oriented language
benefited from the less desirable features of early languages
virus free
java
fastest growing programming language
java
object oriented language
26 terms
Computer science - Java
Class
object
Packages
All programs
reality/entity... exists on its own
concrete example of a class... created dynamically during progra…
similar classes organized together
Are classes
Class
reality/entity... exists on its own
object
concrete example of a class... created dynamically during progra…
22 terms
Computer Science: Java Operators
first highest precedence
second highest precedence
third highest precedence (lowest prece…
increment operator
unary operators: +, -, !, ++, and --
binary arithmetic operators: *, /, and %
binary arithmetic operators: + and -
increases the value of the variable by one
first highest precedence
unary operators: +, -, !, ++, and --
second highest precedence
binary arithmetic operators: *, /, and %
52 terms
AP Computer Science: Chapter 2 - Introducing Java
Algorithm
Argument
Bytecode
Class
A set of steps that outline how to solve a problem.
Data passed to a method for processing.
Compiled Java source code.
The description of an object.
Algorithm
A set of steps that outline how to solve a problem.
Argument
Data passed to a method for processing.
72 terms
Computer Science: Java Final
17 % 1
17.0/ 4
17/4
5 + 6 * 7 %8 - 9 +17.0/4
1
4.25
4
2.25
17 % 1
1
17.0/ 4
4.25
22 terms
Computer Science Java Exceptions
ArithmeticException
ArrayIndexOutOfBoundsException
ArrayStoreException
ClassCastException
Arithmetic error, such as divide-by-zero.
Array index is out-of-bounds.
Assignment to an array element of an incompatible type.
Invalid cast.
ArithmeticException
Arithmetic error, such as divide-by-zero.
ArrayIndexOutOfBoundsException
Array index is out-of-bounds.
40 terms
Computer Science Java and Excel
Events
Functions
Brackets
Values
associate an object with an action. JavaScript uses commands…
are statements that performs tasks. Can specify parameters, t…
A pair of surrounds all statements in a function
are bits of information. Values types are Number, String, Boo…
Events
associate an object with an action. JavaScript uses commands…
Functions
are statements that performs tasks. Can specify parameters, t…
28 terms
Computer Science (winter.java)
What is a compound condition?
What is a condition?
When do you use a compound condition?
&& (what is it called)
Two or more conditions working together to preform an action
Something that evaluates to be true or false
When an action is based on 2 things
Separates 2 conditions, and operator
What is a compound condition?
Two or more conditions working together to preform an action
What is a condition?
Something that evaluates to be true or false
78 terms
Computer Science: Java
What's source code?
What does JVM stand for?
What does IDE stand for?
What does the Compiler do?
Area in the text editor where code is typed
Java Virtual Machine
Integrated Development Environment
Check for errors in code
What's source code?
Area in the text editor where code is typed
What does JVM stand for?
Java Virtual Machine
49 terms
Computer Science Java
keywords
primitive types
reference types
static
class, while and if are....
which are simple values stored directly in the memory location
which store addresses of objects stored somewhere else in mem…
methods not associated with any object
keywords
class, while and if are....
primitive types
which are simple values stored directly in the memory location
103 terms
Computer Science - Java
semicolon
\n
\t
3 4
All java statements are terminated with a __________.
What is the newline character?
What is the tab character?
What is the output? System.out.print ( 3 + " " + 4 );
semicolon
All java statements are terminated with a __________.
\n
What is the newline character?
10 terms
Computer science Java
Class
Object
Constructor
Public (class)
A templatw that descrives behaviour/state that the object of…
An object is an instance of a class in which objects exhibit…
Job of this is to assign sensible values to the data fields o…
Is access specifier which sets accessibility of classes, meth…
Class
A templatw that descrives behaviour/state that the object of…
Object
An object is an instance of a class in which objects exhibit…
12 terms
Java Computer Science
Java Development Kit
Java Runtime Environment
Java Source Code
Java Byte Code
A software development environment used for developing Java a…
Run a program
code that you the programmer writes
is the instruction set of the Java virtual machine.
Java Development Kit
A software development environment used for developing Java a…
Java Runtime Environment
Run a program
38 terms
Computer Science Intro to Java
CPU
Memory
RAM
Secondary
central processing unit... brain of computer... communicates betwee…
RAM... Secondary
fast... memory lost when turned off... memory chips
cheaper... keeps data when turned off... dvd/flashdrive
CPU
central processing unit... brain of computer... communicates betwee…
Memory
RAM... Secondary
155 terms
Computer Science Java Vocabulary
Argument
Attributes
Behaviors
Class
A value that appears in a call to a method
Parts of a class that contain the current state of objects of…
Parts of a class that define what objects of that class can d…
A list of specifications that define a certain type of object…
Argument
A value that appears in a call to a method
Attributes
Parts of a class that contain the current state of objects of…
20 terms
Computer Science (Java)
Concatenation
String literal
Substring
\"
" " + variable name + " "
"This is a String"
String.substring(x,y)
Escape character for "
Concatenation
" " + variable name + " "
String literal
"This is a String"
88 terms
AP computer science Chapter1 java software solutions, AP Computer Science: Chapter 2 - Introducing Java
GUI
Operating System
User interface
Program
the user interface for most modern OS and applications(ex: wi…
main software of the computer
allows user to interact with the machine
a series of instructions that hardware executes
GUI
the user interface for most modern OS and applications(ex: wi…
Operating System
main software of the computer
39 terms
Computer Science Think Java
Single most important skill for a comp…
Program
input
output:
problem solving
sequence of instructions that specifies how to perform a... comp…
Get data from the keyboard, a file, a sensor, or some other d…
Display data on the screen, or send data to a file or other d…
Single most important skill for a comp…
problem solving
Program
sequence of instructions that specifies how to perform a... comp…
21 terms
Computer Science: The Java World
Java
A Java program consists of one or more…
class/class file
project
refers to both a programming language as well as the componen…
A Java program consists of one or more class files.
group of instructions organized in a specific way
- refers to all of the files associated with your program... 1.…
Java
refers to both a programming language as well as the componen…
A Java program consists of one or more…
A Java program consists of one or more class files.
28 terms
Computer Science- Java 1
3 GENERATION OF PROGRAMMING LANGUAGES?
Gen. 1: Machine Languages
Gen. 2: Assembly Languages
Gen. 3: High Level Languages
Machine, assembly, high level
- used only binary digits... -programmers toggled switches on th…
-uses mnemonic symbols for data ... -an assembler translates the…
-easy to write, read and understand... -a compiler translates to…
3 GENERATION OF PROGRAMMING LANGUAGES?
Machine, assembly, high level
Gen. 1: Machine Languages
- used only binary digits... -programmers toggled switches on th…
57 terms
Computer Science (11 JAVA)
Name 4 naming conventions for variables
How do you declare and initialize an a…
How do you sort your array
How do you sort arrays in reverse order
Cannot be a java keyword... Cannot start with a capital... Cannot c…
int [] mark = new int[] {1, 2, 3}... mark = new int[3] after dec…
Arrays.sort(yourArray)
Arrays.sort(yourArray, Collections.reverseOrder())
Name 4 naming conventions for variables
Cannot be a java keyword... Cannot start with a capital... Cannot c…
How do you declare and initialize an a…
int [] mark = new int[] {1, 2, 3}... mark = new int[3] after dec…
49 terms
AP Computer Science - Java Review
bit
byte
object-oriented approach
Graphical User Interface (GUI)
A binary digit.
A sequence of bits used to encode a character in memory.
Approach used in more modern computer languages such as C++,…
A means of communication between human beings and computers t…
bit
A binary digit.
byte
A sequence of bits used to encode a character in memory.
31 terms
Computer Science and Java
What is a program?
What is an interpreter?
What is a compiler?
What is a source code?
A sequence of instructions that specifies how to perform a co…
Reads a high-level program and executes it, translating line…
Reads the entire program and translates it completely before…
A program in a high-level language, before being compiled.
What is a program?
A sequence of instructions that specifies how to perform a co…
What is an interpreter?
Reads a high-level program and executes it, translating line…
10 terms
AP Computer Science - Java Review
bit
byte
statement
variable
A binary digit.
A sequence of bits used to encode a character in memory.
An individual instruction in a program.
A memory location, referenced by an identifier, whose values…
bit
A binary digit.
byte
A sequence of bits used to encode a character in memory.
73 terms
Computer Science Java-Chapter 3
Accessor
Data Hiding
Garbage hiding
White space
A method designed to read or get the current state of an object
A term used to indicate that a class's internal state is hidd…
The part of the Java virtual machine that destroys an object…
Spaces, tabs, and new lines
Accessor
A method designed to read or get the current state of an object
Data Hiding
A term used to indicate that a class's internal state is hidd…
76 terms
Computer Science Final - JavaScript
"String".length;
+, -, *, /, %, ()
//
JavaScript
gives the number of characters in a string, counting spaces
addition, subtraction, multiplication, division, and modulus…
comments out a single line of text so the computer will ignor…
a programming language that makes websites respond to user in…
"String".length;
gives the number of characters in a string, counting spaces
+, -, *, /, %, ()
addition, subtraction, multiplication, division, and modulus…
25 terms
AP Computer Science- Java Methods
int compareTo (String str)
boolean equals (String str)
int indexOf (String str)
int length()
Returns a number indicating whether this string comes before,…
Returns true or false when comparing strings
Returns the position of the first character in the first occu…
Returns the number of characters in this string
int compareTo (String str)
Returns a number indicating whether this string comes before,…
boolean equals (String str)
Returns true or false when comparing strings
43 terms
Computer Science Quiz - Alice & Java
Mouse events
Keyboard events
Program Event
Keys are chosen for their
Triggered when user clicks on an object
Triggered when the user presses a key on key board
Triggered by actions taking place within program
Memory values and convenient positions
Mouse events
Triggered when user clicks on an object
Keyboard events
Triggered when the user presses a key on key board
25 terms
Computer Science Java- Chapter 4
Operator written after a variable is _…
Operator written before a variable is…
The conversion of one data type to ano…
Any statement that evaluates a value i…
Postfix
Prefix
Cast
Expression
Operator written after a variable is _…
Postfix
Operator written before a variable is…
Prefix
33 terms
Java Exam - 2015 Computer Science
What is printed out by this program?…
for (int x =1; int x <= 2; x++) {... for…
What is 40 % 3?
A _________ translates programs writte…
Bleebop three times, then 42
1122
1
compiler
What is printed out by this program?…
Bleebop three times, then 42
for (int x =1; int x <= 2; x++) {... for…
1122
11 terms
Computer Science: Java Week 1
What is a computer program?
What is an algorithm?
What four functions do computer progra…
What are the five components in comput…
an algorithm performed on a computer
a set of instructions
Input, Process, Output and Storage
Keywords, identifiers, operators, punctuation, syntax
What is a computer program?
an algorithm performed on a computer
What is an algorithm?
a set of instructions
28 terms
Java computer science final exam
Class
Object
State
Behavior
blueprint of an object
They make something out of your class
Is the value of the object
The methods the object has
Class
blueprint of an object
Object
They make something out of your class
129 terms
Computer Science Java Curriculum Vocabulary
Argument
Attributes
Behaviors
Class
A value that appears in a call to a method
parts of a class that contain the current state of objects of…
parts of a class that define what objects of that class can d…
A list of specifications that define a certain type of object…
Argument
A value that appears in a call to a method
Attributes
parts of a class that contain the current state of objects of…
155 terms
Computer Science Java Curriculum Vocabulary
Argument
Attributes
Behaviors
Class
a value that appears in a call to a method
parts of a class that contain the current state of objects of…
parts of a class that define what objects of that class can d…
a list of specifications that define a certain type of object…
Argument
a value that appears in a call to a method
Attributes
parts of a class that contain the current state of objects of…
41 terms
Java AP Computer Science A: Chapter 2 (Group 1)
object
attributes
method
class
Represents a real object in a problem; it has a state and set…
Values an object stores internally representing it's state
A group of programming statements
Blueprint for an object
object
Represents a real object in a problem; it has a state and set…
attributes
Values an object stores internally representing it's state
148 terms
Computer Science Java Curriculum Vocabulary
Argument
Attributes
Behaviours
Class
A value that appears in a call to a method
Parts of a class that contain the current state of objects of…
Parts of a class that define what objects of that class can d…
A list of specifications that define a certain type of object…
Argument
A value that appears in a call to a method
Attributes
Parts of a class that contain the current state of objects of…
51 terms
Computer Science Interview Java Questions
What is JVM?
What is the most important feature of…
What do you mean by platform independe…
What is the difference between a JDK a…
The Java interpreter along with the runtime environment requi…
Java is a platform independent language.
Platform independence means that we can write and compile the…
JDK is Java Development Kit which is for development purpose…
What is JVM?
The Java interpreter along with the runtime environment requi…
What is the most important feature of…
Java is a platform independent language.
49 terms
AP Computer Science - Java Review
bit
byte
object-oriented approach
Graphical User Interface (GUI)
A binary digit.
A sequence of bits used to encode a character in memory.
Approach used in more modern computer languages such as C++,…
A means of communication between human beings and computers t…
bit
A binary digit.
byte
A sequence of bits used to encode a character in memory.
21 terms
Exploring Computer Science Java Vocab
Class
Public
Private
Object
Blueprint for a object.
Allows other objects to access (encapsulation).
Restricts access to the class (encapsulation - information hi…
Instance of a class.
Class
Blueprint for a object.
Public
Allows other objects to access (encapsulation).
11 terms
Computer Science II (Java) Final
start()
sleep()
join()
synchronized()
causes a thread to begin execution of its run method.
Causes the currently executing thread to sleep (temporarily c…
Causes the current thread to wait for the thread that join wa…
forces a only one at a time behavior on objects and methods w…
start()
causes a thread to begin execution of its run method.
sleep()
Causes the currently executing thread to sleep (temporarily c…
1 of 10