Alien head

C Programming

Description: cs Java BasicsProgramming and Data Structures
Number of Questions: 15
Created by:
Tags: cs Java Basics Programming and Data Structures
Attempted 0/15 Correct 0 Score 0

Which of the following parameters in applet tag specifies the number of milliseconds between each billboard?

  1. Bgcolor

  2. Billboards

  3. Delay

  4. Finally

  5. None of these


Correct Option: C
Explanation:

This parameter in applet tag specifies the number of milliseconds between each billboard.

Which of the following is an example of not equal to operator?

  1. op1 > = op2

  2. op1 = = op2

  3. op1 ! = op2

  4. op1 < = op2

  5. None of these


Correct Option: C
Explanation:

This is an example of not equal to operator.

Which of the following classes in Java is used to encapsulate a combo box in an applet program?

  1. IllegalArgumentException

  2. JCheckBox

  3. IllegalMonitorStateException

  4. JComboBox

  5. JRadioButton


Correct Option: D
Explanation:

This class in Java is a swing version that is used to encapsulate a combo box in an applet program.

Which of following operators returns true if the value of one operand is true?

  1. ! op

  2. !

  3. op1 && op2

  4. op1 || op2

  5. None of these


Correct Option: D
Explanation:

 '||' operator returns true if the value of one operand is true.

Which of the following interfaces in java.beans package allows a designer to provide a graphical user interface through which a bean may be configured?

  1. InstantiationException

  2. BeanInfo

  3. DesignMode

  4. Customizer

  5. None of these


Correct Option: D
Explanation:

This interface in java.beans package allows a designer to provide a graphical user interface, through which a bean may be configured.

Which of the following is used to duplicate the current applet in order to create another AppletViewer instance?

  1. Start

  2. Restart

  3. Reload

  4. Stop

  5. Clone


Correct Option: E
Explanation:

This option is used to duplicate the current applet in order to create another AppletViewer instance.

The ___________ is an increment operator which is used to add 1 to the value of the variable.

  1. **

  2. ++

  3. --

  4. *

  5. =


Correct Option: B
Explanation:

The '++' is an increment operator which is used to add 1 to the value of the variable.

Which of the following options closes the AppletViewer window and terminates the applet?

  1. Restart

  2. Stop

  3. Quit

  4. -classpath

  5. None of these


Correct Option: C
Explanation:

This option closes the AppletViewer window and terminates the applet.

Which of the following options specifies that index page is not to be created?

  1. -notype

  2. -author

  3. -nohelp

  4. -doctype

  5. -noindex


Correct Option: E
Explanation:

The -noindex option specifies that index page is not to be created.

Which operator is used to compute the remainder of op1 and op2?

  1. op1 % op2

  2. op1 * op2

  3. op1 + op2

  4. op1/op2

  5. None of these


Correct Option: A
Explanation:

 '%' operator is used to compute the remainder of op1 and op2.

Which of the following options causes javadoc to use the author's name in the HTML file?

  1. -author

  2. -doctype

  3. properties

  4. -noverify

  5. None of these


Correct Option: A
Explanation:

The -author option causes javadoc to use the author's name in the HTML file.

Which of the following UNIX commands is used to make copies of files or entire directories?

  1. cp

  2. rmdir

  3. mkdir

  4. cpio

  5. None of these


Correct Option: A
Explanation:

This command is used to make copies of files or entire directories.

________ option reloads the applets with the changes in the .class file applied.

  1. Save

  2. Reload

  3. Stop

  4. Print

  5. None of these


Correct Option: B
Explanation:

 Reload option reloads the applets with the changes in the .class file applied.

Which of the following commands displays the full absolute path to your current location in the file system?

  1. mv

  2. cd

  3. mkdir

  4. pwd

  5. None of these


Correct Option: D
Explanation:

The 'pwd' command displays the full absolute path to your current location in the file system.

Which of the following commands is used to find the place where an application program or system utility is stored on a disk?

  1. cut

  2. which

  3. od

  4. uniq

  5. None of these


Correct Option: B
Explanation:

The 'which' command is used to find the place, where an application program or system utility is stored on a disk.

+ View questions