Some Important Questions with Answers
1 ) Which window is used to designed the form.
Ans: Design window
installment payments on your Which window contains the Golf swing Controls components.
Ans: Colour scheme window
3. What is the best option component to recognize multiline textual content. Ans: Textual content Area
4. What will be the output from the following command?
Learning. concat(" Java" )
5. What is going to be the output of the subsequent command?
" Learning". concat(" Java" )
6. Identity the different list type handles offered by Java Swing. Ans: (i) jListBox
7. Identity any two commonly used method of ListBox.
Ans: getSelectedIndex() and getSelectedValue()
8. Write code to add a feature (" New CourseвЂќ) into a list (SubList) at the beginning of record. Ans: SubList. add(0, вЂќNew CourseвЂќ);
on the lookout for. Describe three common controls. Also offer some of their houses. Ans:
text message, border
jTextField textual content, font
twelve. By default a combo box does not offer editing feature. How will you make a combo field editable. Ans: By setting its editable property to false.
14. Write Term the aspect classes of Swing API for the subsequent components(a) frame (b) switch Ans: (a)JFrame(b)JButton
12. What is the brand of celebration listener interface for action events? Ans: ActionPerformed
13. What does getpassword() on a password field return?
Ans: a character array
14. What is event powered programming?
Ans: This coding style responds to the consumer events and is also driven by occurrence of user occasions. 15. What are containers? Give examples.
Ans: Containers will be those handles inside them e. g., framework (JFrame), Panel (JPanel), ingredients label (JLabel) etc . are pots.
16. Which will method of list is used to determine the value of selected item, if only one particular itm is usually selected. Ans: getSelectedValue()
18. Which type of storage is usually provided by variables.
Ans: non permanent
18. What will be the output of the following code portion:
String firstName = " Johua ";
String lastName = " Yacomo";
Line fullName = firstName + lastName;
jTextField1. setText(" Complete name: " );
jTextField2. setText (fullName);
Ans: Full Name:
19. Which usually expression is used to print out the value of a variable " x" of type int. Ans: jTextField1. setText(" by = " + x);
20. The statement i++; is equivalent to
twenty one. Name the primitives datatypes in java.
Ans: Number type, Fragmentary; sectional type, Personality type and Boolean type. 22. Which in turn events gets fired if a user simply click a JButton and JRadioButton. Ans: ActionPerformed
23. Which usually of the next is a assortment construct?
a. do while Loop w. for Cycle c. although Loop g. non-e of the
Ans: none of these
twenty four. What will be taken if you will find two or more likely options. Ans: is more if and switch
twenty-five. Name the loop that never ends.
Ans: unlimited loop
26. Which orthodontic braces is used to enclose statements within a block statement. Ans: Curly braces
27. Which in turn of the following is an exit controlled loop?
a. for loop b. do while Cycle
c. whilst loop d. none of such
Ans: do while cycle
28. Which will process is employed to convert a task right into a series of orders that a computer will use to execute that job.
Ans: Project design
30. Which with the following aspect is the best suitable for accept the nation of the consumer?
B. Combination box
C. Radio switch
Ans: List and combo box
30. Which construct will be used to find the sum with the first 15 natural amounts? Ans: for loop
thirty-one. Which from the following is usually not a good development guideline? Ans: Using textual content fields to take input of marital status
Short answers type questions:
1 . Explain the following terms:
a) IDE: GAGASAN is an acronym for Integrated Development Environment the industry work environment that integrates almost all tools necessary for Application Expansion and makes them available within one environment.
b) Varieties: Forms prefer accept data (input) and submit info to an external agent to get...
Essay regarding The touch screen phone: friend or foe
Essay about Solar Energy
Essay about Puberty and Secondary Sex Characteristics
Essay about Sensory Internal organs and Their Functions
Essay about The Changes during the Industrial Innovation
Essay regarding Reasons for Drop in the Effect of Native Americans in America
Essay about The Accurate Toothbrush
Essay about Strangers on the Train
Essay regarding The American Dream- Of Mice and Men The Great Gatsby