Mixed Technology Quiz: Windows Commands, Java Programming, and Satellite Technology
A comprehensive quiz covering Windows run commands, Java programming concepts including inner classes, exceptions, and inheritance, and satellite/remote sensing technology topics including GPS and earth observation.
Questions
RS (Remote Sensing)
- Determines the geometric properties of objects using aerial photographs
- Satellite Images used to acquire information about an object instead of having physical contact with the object
- Making Measurements to determine the position of points and the distances and angles between them
- All the above
GPS (Global Positioning System)
- Links Spatial and Non Spatial data for Decision Making
- Navigation Satellite System to know your location
- Satellite images to acquire information about an object without any physical contact with it
- All the above
Recently launched high resolution earth observation satellite by India
- IKONOS
- QUICKBIRD
- CARTOSAT 2B
- All the above
What is the result of compiling and running the following code, assuming that the file bb.txt does not exist? class WriterTest{ public static void main(String[] args) throws IOException{ Writer w=new BufferedWriter(new FileWriter(“bb.txt”)); // Line1 w.write(1); // Line2 w.close(); } }
- Compiler error
- FileNotFoundException thrown at line 1
- None of these
- .IOException thrown at line 2
Which of the following classes are available in the java.lang package? (A) Stack (B) Object (C) Math (D) Random (E) String (F) StringBuffer (G) Vector
- (B), (C) & (E)
- (B), (C), (E) & (F)
- B), (E) & (F)
- (A), (B), (C), (E) & (F)
Given the code String s1 = "yes"; String s2 = "yes"; String s3 = new String(s1); Which of the following would equate to true? (A) s1 == s2 (B) s1 = s2 (C) s3 == s1 (D) s1.equals(s2) (E) s3.equals(s1)
- (A), (C) & (E)
- (A), (B) & (C)
- (C), (D) & (E)
- A), (D) & (E)
Given the following code: class Base { int x = 10; } class Derived extends Base { int x = 20; } Base b = new Base(); Derived d = new Derived ( ); Base bd = new Derived(); The statement System.out.println(b.x + " " + d.x + " " + bd.x); will produce the output
- 10 20 20
- 20 10 20
- 10 20 10
- 20 20 10
The concept of MULTIPLE inheritance is implemented in JAVA by (A) extending two or more classes (B) extending one class and implementing one or more interfaces (C) implementing two or more interfaces (D) all of these
- (B) & (C)
- (A) & (C)
- A
- D
Which of the following statements are true? (A) An abstract class may not have any final methods. (B) A final class may not have any abstract methods. (C) An inner class may be declared with any accessibility keyword. (D) Transient variables must be static.
- A) & (C)
- (B) & (C)
- A
- D
What will be the output of the program? try { int x = 0; int y = 5 / x; } catch (Exception e) { System.out.println("Exception"); } catch (ArithmeticException ae) { System.out.println(" Arithmetic Exception"); } System.out.println("finished");
- Compilation fails.
- finished
- Exception
- D.Arithmetic Exception
public class Outer { public void someOuterMethod() { //Line 5 } public class Inner { } public static void main(String[] argv) { Outer ot = new Outer(); //Line 10 } } Which of the following code fragments inserted, will allow to compile? A. new Inner(); //At line 5 B. new Inner(); //At line 10 C. new ot.Inner(); //At line 10 D. new Outer.Inner(); //At line 10
- A
- B
- C
- D
Which is a valid declaration within an interface? A. public static short stop = 23; B. protected short stop = 23; C. transient short stop = 23; D. final void madness(short stop);
- B
- A
- C
- D
Which statement is true about a static nested class? A. You must have a reference to an instance of the enclosing class in order to instantiate it. B. It does not have access to nonstatic members of the enclosing class. C. It's variables and methods must be static. D. It must extend the enclosing class.
- D
- C
- B
- A
Which is the run command for microsoft word?
- msword
- winword
- word
- micsofword
Which one is the command for microsoft excel?
- excel
- msexcel
- winexcel
- micsofexcel
Which is the command for group policy edit?
- grppol.cpl
- grpedit.cpl
- secedit.msc
- gpedit.msc
Select the command for startup configuration settings?
- msconfig
- bootconfig
- startupconfig
- windowsconfig
Which is the command to open add or remove programs window?
- addrem.msc
- appwiz.cpl
- appwiz.msc
- addprgms.cpl
Which is the command to check network connections?
- netcom.cpl
- netcom.msc
- ncpa.cpl
- netconnect.msc
Which is the command to go to netmeeting?
- meeting
- conf
- netchat
- msnetmeet