science & technology Online Quiz - 345
science & technology Online Quiz - 345
Questions
The smallest bone found in the human body is located in the middle nose.
- True
- False
Human brain is made up of 80% water and it stops growing as one reach the age of 18.
- True
- False
1/4 of the bones in your body are in your feet
- True
- False
Astronauts become two inches taller on return from space as the cartilage disks in their spine expand in zero - gravity.
- True
- False
Suppose x=10 and y=10 what is x after evaluating the expression (y > 10) && (x++ > 10).
- 9
- 10
- 11
- false
Analyze the following code:boolean even = false;if (even = true) { System.out.println("It is even!");}
- The program has a syntax error
- The program has a runtime error
- The program runs fine, but displays nothing
- The program runs fine and displays It is even!
Analyze the following program fragment: int x; double d = 1.5; switch (d) { case 1.0: x = 1; case 1.5: x = 2; case 2.0: x = 3; }
- The program has a syntax error because the required break statement is missing in the switch statement
- The program has a syntax error because the required default case is missing in the switch statement
- The switch control variable cannot be double
- No errors
What is sum after the following loop terminates? int sum = 0; int item = 0; do { item++; sum += item; if (sum > 4) break; } while (item < 5);
- 5
- 6
- 7
- 8
What will be the value of str after line no.7?1 class string 2 {3 public static void main String ds[])4 {5 String str="A";6 str.concat("B");7 str+="C";8 }9 }
- A
- AB
- AC
- ABC
- compile-time error
Analyze the following code: public class Test { public static void main(String[] args) { System.out.println(max(1, 2)); } public static double max(int num1, double num2) { System.out.println("max(int, double) is invoked"); if (num1 > num2) return num1; else return num2; } public static double max(double num1, int num2) { System.out.println("max(double, int) is invoked"); if (num1 > num2) return num1; else return num2; } }
- The program cannot compile because the compiler cannot determine which max method should be invoked
- The program cannot compile because you cannot have the print statement in a non-void method
- The program runs and prints "max(int, double) is invoked" followed by 2
- The program runs and prints "max(double, int) is invoked" followed by 2
I can have multiple main methods in same class.
- True
- False
Analyze the following code: public class Test { public static void main(String[] args) { System.out.println(m(2)); } public static int m(int num) { return num; } public static void m(int num) { System.out.println(num); } }
- The program runs and prints 2 once
- The program runs and prints 2 twice
- The program has a syntax error because the second m method is defined, but not invoked in the main method
- The program has a syntax error because the two methods m have the same signature
It takes approximately 12 hours for food to entirely digest.
- True
- False
The longest living cells in the body are brain cells which can live an entire lifetime.
- True
- False
The pectin that is found in apples aids in lowering cholesterol levels.
- True
- False
The human body consists of nine systems: the skeletal system, the muscular system, the nervous system, the hormonal system, the circulatory system, the digestive system, the respiratory system, the immune system and the reproductive system.
- True
- False
Chewing gum while peeling onions will keep you from crying.
- True
- False
Human bone is comparable to granite when it comes to supporting weight.
- True
- False
The only bone fully grown at birth is located in the ear.
- True
- False
The adult body is made up of: 100 trillion cells 206 bones 600 muscles 22 internal organs
- True
- False