Term
Print an error to stdout. |
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
Scanner scan = new Scanner(in); |
|
|
Term
|
Definition
Scanner scan = new Scanner(new File(filename)); |
|
|
Term
Test if input has next line. |
|
Definition
|
|
Term
Test if input has next word. |
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
Test if line matches regex. |
|
Definition
|
|
Term
|
Definition
|
|
Term
Append to the end of a queue. |
|
Definition
void append(int val){ node temp = new node(); temp.value = val; if(tail == null) head = temp; else tail.link = temp; tail = temp; } |
|
|
Term
Compare two strings lexicographically. |
|
Definition
string.compareTo(anotherString); // negative if anotherString comes before string, zero if same, positive if anotherString comes after string. |
|
|
Term
Compare two strings for equality. |
|
Definition
string.equals(string); // returns 0/1. |
|
|
Term
Algorithm is O(log_2 n). If a data structure conaints 1000000 items, approximately how many iterations will be required? |
|
Definition
|
|
Term
A class queue has an inner class node. How does a Makefile refer to the inner class? |
|
Definition
|
|
Term
After a jar file is created, what command turns on the x bit? |
|
Definition
|
|
Term
When a program terminates successfully, what exit status should it return to the caller? |
|
Definition
|
|
Term
Given some files, what command will print out all of the lines in these files that match a particular regular expression? |
|
Definition
|
|
Term
If the numbers 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 are inserted into a queue in that specific order, then we remove 5 numbers from the queue, wha tnumber will now be at the front of the queue? |
|
Definition
|
|
Term
What character encoding is used by the class String in Java? |
|
Definition
|
|
Term
What is the big-O time efficiency of the recursive Fibonacci function? |
|
Definition
|
|
Term
After discovering that fopen failed to open a file, what expression is used to print an error message? |
|
Definition
|
|
Term
What wildcard dependency in a Makefile would precede the command javac $< |
|
Definition
|
|
Term
What string is passed into getopt(3c) to indicate that -a is an option with no argument, but that -e is an option that requires an argument? |
|
Definition
|
|
Term
What statement indicates program failure to the calling process? |
|
Definition
|
|
Term
What command will search all of the Java files in the current directory and print out every line containing the word auxlib? |
|
Definition
|
|
Term
If we write a loop to compute the nth Fibonacci number, how long should it run? |
|
Definition
|
|
Term
When opening a Scanner to read a file whose name is given, what exception must be caught? |
|
Definition
|
|