Professional Documents
Culture Documents
1 The internal computer component which gets erased every time the computer is turned off.
A. Hard drive B. Processor C. Random Access Memory(ram) D. ROM
2. _____________ is a method convert the string into its integer equivalent.
A. Integer.toString() B. Integer.valueOf() C. Integer.parseInt() D.Float.parseFloat()
char middlename=’K’;
String firstname = “Rajvansh”;
String lastname = “Narayan”;
System.out.println (firstname+" "+ middlename+" "+ lastname);
6. What is the correct code to clear the content of any textfield in Net Beans?
A. jTextField1.setText(“ ”); B. jTextField1.setText= (“ ”); C. jTextField1.getText (“ ”); D.
jTextField.Clear()
7. Which property of Combo Box retrieves the index of the selected item?
A. isSelectedIndex() B. isSelectedItem () C. GetSelectedItem () D. getSelectedIndex()
10 . What will be the final value of sum1 after the execution of the program given below?
int sum1 = 3; sum1=sum1+1;
jTextField1.setText (""+sum1);
sum1=sum1+1; jTextField2.setText (""+sum1);
sum1=sum1+1; jTextField3.setText (""+ (sum1));
sum1=sum1+1;
jTextField4.setext(""+sum1); jTextField5.setText(""+sum1);
A. 5 B. 6 C. 4 D.7
24. Define Cyber Crime. Enlist any preventive measures you can take while working online.
25. List some common Printer troubleshooting steps that you should keep in mind.
26. Explain the following utilities: a) Disk Defragmentation b) System Restore c) Disk Clean up
27.