Download presentation
Presentation is loading. Please wait.
Published byAlyson Nicholson Modified over 9 years ago
1
ReviewNum1 { Hardware, Binary, Java, BlueJ, Variables, Classes, Arithmetic, Print Statements, Errors, Boolean Expressions, Conditionals, Loops, Random Numbers, Scanner Input }
2
Rules: 30 second time limit. You must cycle through team players. Done once you put pen down with cap on. You may ask your team for help. You may look at the notes at any time. Disqualified if you copy an answer. Disqualified= -2 Wrong Answer = -1 No Answer = 0 Correct Answer= +1 First Correct = +2
3
Ready?
4
Write the output of the following code: System.out.print(“Review”); System.out.println(“Day”);
5
What is the base-10 representation of this unsigned binary number? 1101
6
Write a while loop that would print this output: 0 1 2 3 4
7
In 3-bit unsigned, what is the largest possible value we can represent?
8
What is the base-10 representation of this binary number in sign and magnitude? 1000
9
What hardware component reads CDs, DVDs, and Blurays?
10
How do we write the Java logical operator “AND”?
11
What binary complement system requires that you flip all of the bits and then add one to map negative numbers?
12
Write the output of the following code: int x = 20; while (x <= 100) { x = x + 5; }System.out.print(x);
13
What binary complement system requires that you flip all of the bits to map negative numbers?
14
Write the output of the following code: double y = 13.7; System.out.print(y < 11.3 + 2.5);
15
Fill in a value for X to make the expression TRUE int x = _____; if ( ( x > 5 ) && ( x != 6 ) ) {…
16
If you are missing a close curly brace “}” somewhere in your code, what error will you get?
17
How do we write the Java relational operator “equal to”?
18
What is the name of this Java arithmetic operator? %
19
What is the base-10 representation of this binary number in sign and magnitude? 1100
20
When you plug a USB drive into your computer, what part is it being plugged into?
21
What symbols do we write in code to start writing a comment?
22
What hardware component is the main printed circuit board in your computer?
23
What is the base-10 representation of this unsigned binary number? 0110
24
Write a while loop that would print this output: 100500
25
How do we write the Java relational operator “not equal to”?
26
What hardware component performs all of the arithmetic for your computer?
27
Fill in the missing code to get user input from this scanner and store it into the integer x. Scanner scan = new Scanner(System.in); int x = ______________________
28
What Java variable type stores decimal numbers?
29
What is the line of code that will import the user input scanner in Java?
30
List all possible random numbers that could be stored in the integer myRand. int myRand = rand.nextInt(4);
31
What hardware component stores permanent data without containing any moving parts?
32
How many bytes are in one kilobyte? Hint: 2 10
33
In 4-bit unsigned, what is the largest possible value we can represent?
34
Write the output of the following code: System.out.println(“Test”); System.out.print(“Friday”);
35
Fill in a value for Y to make the expression FALSE int y = _____; if ( ( y 6 ) ) {…
36
How do we write the Java logical operator “OR”?
37
Write the output of the following code: System.out.println(“Study”); System.out.print(“Your”); System.out.println(“Notes”);
38
Fill in the missing code to get a random number from 0 to 999 from this generator and store it into the integer x. Random rand = new Random(); int x = ______________________
39
Write the output of the following code: int y = 100; while (y >= 0) { y = y – 100; System.out.print(y); System.out.print(y);}
40
In 4-bit using Two’s Complement, what is the smallest possible value we can represent?
41
What is the best cooling system for your CPU?
42
Fill in the missing code to complete the initialization of the scanner. Scanner scan = new Scanner(______);
43
What hardware component stores permanent data on a spinning disk?
44
What is the result of this unsigned binary addition? 0101 + 0111 = ____
45
What do we call it when a binary addition produces a result that passes the greatest possible representation that a number of bits could store?
46
What two things do you need to install on your computer to start programming in Java?
47
What is the result of this unsigned binary addition? 0110 + 0011 = ____
48
What is the base-10 representation of this binary number in sign and magnitude? 0111
49
Before executing any code, the code must first be transformed into 0’s and 1’s, which is also known as?
50
Write the output of the following code: System.out.print(“Fun”); System.out.println(“ ”); System.out.print(“Day”);
51
What hardware component stores data quickly but temporarily for loading programs and data?
52
What is the result of this unsigned binary addition? 0110 + 0110 = ____
53
List FOUR output devices from a computer.
54
If you wanted to have many monitors plugged into your computer, you would need multiple of this component.
55
List FOUR input devices to a computer.
56
What hardware component changes AC electricity into DC for your other components?
57
What does JDK stand for?
58
Write the output of the following code: int x = 5; while (x > 0) { x = x – 1; }System.out.print(x);
59
Write the output of the following code: String player = “Bob”; System.out.println(“player”); System.out.println(“Bob”); System.out.print(player);
60
What is the base-10 representation of this unsigned binary number? 1011
61
What is the base-10 representation of this binary number in sign and magnitude? 1011
62
What is the line of code that will import the random number generator in Java?
63
What does PCB stand for in computer hardware?
64
What does IDE stand for?
65
What binary compliment system do almost all computers and programming languages use?
66
Write the output of the following code: int x = 7; System.out.print(x != 7);
67
What binary compliment system requires an end-around carry for additions to produce the correct result?
68
What is your computer science teacher’s name?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.