Boolean Logic and Loops
Boolean Logic and Loops 2
Science
Wired & Wireless Tech
CHAMP for Science /Recursion
100
a && ( b l l c ) Which of the following is equivalent to the above expression I. a && b l l a && c II. a l l b && a l l c III. a && b l l c a. I only b. II only b III only c. I and II only e I and III only
Q18
100
Assume that a game has four doors and the only way to win the game is to open every other door. in other words, one and three can be open to win or two and four can be open to win. Wrapping cannot be used. Only one pair of doors can be open at the same time. If the game can be won, return true. If the game cannot be won return false. Which of the following code segments could be placed in the method to properly check for the doors and return the appropriate values. a. I only b. II only c. I and II only d. II and III only e. I and III only
Q36
100
Earth
What is the third planet from the sun?
100
The name of a wired network technology that is defined by IEE 802.3 standards.
What is Ethernet
100
What do you call the condition that stops recursion? a. base case b. stop c. break d. return e. shut it down
Q1
200
What is ouput by the Code: boolean bThree=false; boolean bFour-true; out.print1n (! (bThree && bFour));
Q10
200
! ( !a && !b) Which of the following expressions is equivalent to the above expression: I. a && b II. ! a l l !b III. a l l b a. I only b. II only c. III only d. I and II only e. I and III only
Q19
200
Water
What exists on earth as a solid, liquid and a gas?
200
RF signals are sent and received by this.
What is a transceiver
200
What is the output of the call fun(5)? public static void fun (int x) { if (x >0) { System.out.print (x); fun (x-1); } } a. 5432 b. 54321 c. 5 d. 12345 e. 543
Q3
300
What is output by the Code: int up=9, in=9; if (up>4 && ++in>10 l l in>9) { out.print ("dude"); { out.print (in);
Q17
300
What is output by the code: int it=9, at=9; if ( it>4 l l ++ at>10 && it>0) { out.print ("dude"); } out.print (at);
Q16
300
Ozone
What protects us from ultra violet radiation?
300
A short range wireless network technology that's designed to make connections between two devices is called what?
Bluetooth
300
What is the output of the call fun(3)? public static void fun (int x) { if (x >0) { System.out.print (x); fun (x-1); } } a. 321 b. 1 c. 3 d. 333 e. 32
Q4
400
What is output by the code: boolean bNine=true; boolean bTen=false; out.print1n (bNine l l (bNine && bTen));
Q13
400
Which of the following code segments matches the truth table shown below: a 0 1 1 1 b 0 1 0 1 c 0 0 1 1 a. a = b l l c b. a = b && ! c c. a = b && c d a = !b && !c e. a = !b l l !c
Q14
400
The moon
What is the name of Earths natural satalite?
400
Computers without wifi or those with slow wifi can use this device to upgrade
Wifi adapter
400
The term for the distance from the Earth to the Sun.
What is AU?
500
What is the output by the code: int e=5 if (! (e>3) ) System.out.print ("fun"); System.out.print ("go")
Q1
500
What is the output by the code below: String m = "h" ; int n = 0; do { m=m+"h"; n++; }while )!m.equals ("hhhhh"") ); out.print1n (m + " - " + n);
Q20
500
Scientist believe the earth is this old.
What is five billion years old?
500
A device whose technology uses two or more antennas to essentially send multiple sets of signals between network devices is equipped with what?
MIMO
500
Earth is the center of the solar system and everything else moves around it
What is Geocentric model?
M
e
n
u