Level 18 Level 20
Level 19

[Quiz] Introduction III


92 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
network address
these addresses are like the addresses in main memory except that they identify individual computers on a network instead of individual memory locations inside a single computer
packets
small pieces of a large message
local-area network (LAN)
a network that is designed to span short distances and connect a small number of computers
wide-area network (WAN)
a network that connects two or more LANs, often across long distances
internetworking
connecting many smaller networks together
protocol
A set of rules that defines how data is formatted and processed on a network
Transmission Control Protocol (TCP)
this software handles problems such as pieces information arriving out of order or information getting lost,pen if too much information arrives at one location at the same time
Internet Protocol (IP)
this software defines how information is formatted and transferred
IP address
This identifies every computer connected to the internet
Internet address
The Internet name of a computer
domain name
This tells you about the organization to which the computer belongs
subdomains
a small addition to the domain name, such as an individual school
top-level domain (TLD)
the last part of each domain name, usually indicating the type of organization to which the computer belongs
Domain Name System (DNS)
the software that does the translation from Internet address to IP address
domain server
maintains a list of all computers at that organization and their IP addresses
World Wide Web (WWW)
software that makes sharing information easy, with the click of a mouse
hypermedia
when graphics, sound, animations, and video are mixed in
Mosaic
the first graphical interface browser for the Web, released in 1993
Web server
A computer dedicated to responding to requests for Web pages
HyperText Markup Language (HTML)
Many documents in the Internet are formatted using this
Java developer
James Gosling (with a team) at Sun Microsystems
Classes should...
...begin with a capital letter
...camel case
The identifier 'myVariable' demonstrates...
OOP
Object-Oriented Programming
Block comment syntax
/**blah blah blah**/
Single line syntax
// blah blah blah
reserved words
words that can have special meanings in a programming language and therefore cannot be used as a name by a programmer
keywords
Limited vocabulary of a programming language
static
Indicates that a variable or method belongs to a class, rather than to any object created from the class.
source files
Java files comprising your program
case sensitivity
'dog' vs 'Dog' demonstrates
self-documenting
Halmark of good identifier names
identifier
A name for a variable or constant. An identifier must begin with a letter and can include any number of letters, numbers, and some special characters.
data type
The kind of information a variable stores.
typed
Java is a heavily _______ language
declaration/initialization
double pi = 3.14;
initialization
executed once when the program reaches it
casting
A conversion of a large memory data type to a smaller memory data type making the two compatible for the compiler.
x = x/2;
Equivalent to: x /=2;
x++;
Equivalent to: x = x + 1;
int r = 8%3;
Write a complete declaration/initialization for an integer called r that is the remainder when 8 is divided by 3
modulus operator
Another name for % operator
4
Number of bytes in an int
32
Number of bits in an int
8
Number of bits in a byte
Integer.MAX_VALUE
2^31 - 1 (^ stands for 'raised to the power of')
Integer.MIN_VALUE
-2^31 (^ stands for 'raised to the power of')
NaN
Not a Number
16
Number base for hexadecimal
0x or 0X
To denote a hex number in Java, use this prefix
capitalized
Constant identifiers are, by convention, _______
truncated
5/2 and yields a '2' as a result, the answer is said to be _______
==
Equal to (Relational Operators)
!=
Not Equal (Relational Operators)
<=
Relational operator for 'less than or equal to'
&&
Short Circuit AND (Logical Operators)
||
Logical operator for 'OR'
pipe
Name of the '|' symbol
=
Assignment -stores the right hand value in
++
Increment operator
--
Decrement operator
+
Additive operator (also used
\n
escape sequences for: line feed
\"
Double quote
\\
escape sequences for: backslash
if(<boolean expression>){
Syntax for one-way selection
true
T or F. Each object has it's own copy of the instance variables
nested
A statement placed within the same type of statement
for(<initialization>; <termination condition>; <update statement>){
Syntax for standard 'fixed iteration' repetition structure
for(SomeType element : collection)
'for-each' syntax for a repetition structure
20 19 18 17 16 15
for(int k = 20; k >=15; k--) System.out.print(k + " ");
2 4 6 8 10
for(int j = 2; j <=10; j+=2) System.out.print(j + " ");
//no output: termination condition met in first pass
for(int k = 20; k <=15; k--) System.out.print(k + " ");
while(<boolean test>)
Syntax for pre-condition repetition structure
A statement that leads to termination
The body of a while loop must contain _______
infinite
An _______ loop never ends
exception
is considerd an error when you compile a program
ArithmeticException
Use this exception to guard against division by zero
IllegalArgumentException
Use this exception to make sure the correct value of a parameter is being used
ArrayIndexOutOfBoundsException
Use this exception to make sure you do not exceed the size of an array
if(age = 2) System.out.println("Terrible two");
if(age == 2) System.out.println("Terrible two");
do
Causes the computer to repeat some statements over and over again (for instance, as long as the computer keeps getting unacceptable results).
B2
Hex value of binary number: '10110010'
178
Decimal value of hex number: 'B2'
6
System.out.print(k + " ");
Scanner keyBoard = new Scanner(System.in);
How do you create an object (called 'keyBoard') to read user-input from the keyboard, assuming the necessary libraries have been brought in?
String userName = keyBoard.nextLine();
You have created an object named 'keyBoard' to read user-inputs. Use it to read a String value into a variable named 'userName' . Write a complete line of code.
int age = keyBoard.nextInt();
You have created an object named 'keyBoard' to read user-inputs. Use it to read an integer value into a variable named 'age' . Write a complete line of code.
?:
Ternary operator
sound = (happyAndKnowIt)? clapHands():booHoo();
if(happyAndKnowIt)sound = clapHands(); else sound=booHoo(); //Write using shortcut
Correct the syntax: final int distance = 100;
final int DISTANCE = 100; //constants have all cap names by convention, although it works fine without the caps
Correct the error: int final DISTANCE = 100;
final int DISTANCE = 100; //'final' keyword must be first