Tuesday, 31 January 2017

Unit 2 Question Bank

UNIT-II
Java GUI Programming Revision Tour – I

S. No.
Concept
Degree of Importance
Level
Errors generally committed
References
1
Netbeans Java IDE
**
L1,L-2
Not use appropriate component

2
Basics of GUI
*
L1
Wrong  properties used

3
Tokens
*
L1
Wrong identification

4
Data Types
***
L1,L2
Appropriate data types not used

5
Variables
*****
L2, L3
Wrong Declarations

6
Text Interactions
****
L1, L2
Proper syntax errors

7
Operators in Java
*****
L1, L2
Wrong evaluation

8
Expressions
****
L1, L2,L3
Semicolon not used

9
Programming Constructs
*****
L2, L3
Loop termination errors

Level - 1
Que1. Explain the term  RAD?
Que2. What is event?
Que3. What is message?
Que4. What are properties?
Que5. What is an identifier?
Que6. Define  Keyword?
Que7 What is GUI Programming?
Que8. What do you understand by fall through?
Que9. Name the character set supported by Java?
Que10. Identify the valid keywords:-
            Class, new,   message ,      else,    event, try 
Level – 2
Que1. . What do you understand by jump statement?
Que2. Write loops that display the numbers from 51 to 60.
Que3. What is the significance of Break statement in a switch statement?
Que4. What are the operators? Different types of operators available in Java.
Que5. The expression 8%3 evaluates to ____________
Que6. Differentiate  between = and == operator in java?
Que7. Name the two type of selection statement available in Java.
Que8. Differentiate between while and do while loop of Java giving suitable examples.
Que9. Explain the term  type casting?
Que10. What are primitive data types? Name the various primitive data type available in Java.
Level -3
Que1. Expand the term API?
Que2. What is the relationship of properties, methods and events?
Que3. What is event driven programming?
Que4.What are the three constructs that govern statement flow?
Que5. Which elements are needed to control a loop?
Que6. How is the if else if combination more general than a switch statement?
Que7. What is the difference between entry controlled and exit controlled loop?
Que8. How many times will the following loop get executed and what will be the final value of the variable I after execution the loop is over.
int i = 5;
do
{
                        I += 3;
                        System.out.println("I  = "+i);
                        i = i + 1;
}
while (i >= 9);
Que9. Write a program to print the factorial of a given number?
Que10. Que10. What will be the value of p=p* ++j where j is 22 and p=3 initially?
Java GUI Programming Revision Tour – II
S. No.
Concept
Degree of Importance
Level
Errors generally committed
References
1
GUI Programming
**
L1,L-2
No complete definition with example

2
Frame
**
L1,L2
Diagram never shown

3
Push Buttons
**
L1
Coding and properties setting

4
Labels
***
L1,L2
Coding and properties setting

5
Text fields
***
L2, L3
Method written not properly

6
Radio Buttons
***
L1, L2
Not properly defined

7
Text Area
*****
L1, L2
UI properties setting

8
Check Boxes
**
L1, L2.L3
Coding and symbols using

9
Combo box
*****
LI,L2, L3
Command written

10
List
***
LI,L2, L3
Programming not proper done

Level – 1
Que1. What command do you need to write in actionPerformed() event handler of a button, in order to make it exit button
Que2. What method would you use, in order to simulate a button’s (namely OKBtn) click event, without any mouse activity from user’s side.
Que3. How would you set a label to have both an image as well as text?
Que4. What is combo box?
Que5. Name the class used to create the following:
(i)    a list control (ii) a combo box control

Que6. What would be the name of the event handler method in the ListSelection listner interface for a list namely CheckList to handle its item selections
Que7. By default, a combo box does not offer editing feature. How would you make a combo box editable.
Que8. What does getPassword ( ) on a password field return
(a)  a string (b) an integer (c) a character array

Que9. What is RAD programming?

Que10. What is IDE? Name two IDE for Programming in java.
Level – 2
Que1. What is a button group? What all controls can you put in it?
Que2. Why java is called a platform independent language?
Que3. Elaborate the java Compilation process. 
Que4. Why do we write a comment in a program? What are the two ways of writing comment in a java Program?
Que5. What is a syntax error in context of a program? Give an example.
Que6. Text entered in a jtextField is of String type. A programmer wants tostore it in a variable of type integer. Is it possible how? Explain
Que7. What is IDE? Name two IDE for Programming in java.
Que8. Name any two types of Tokens available in Java
Que9. Write the purpose of Switch Statement with the help of an example. Which Java Statement can be used in place of switch statement? In the switch statement, what happens if every case fails and there is no default option?
Que10. What is the purpose of ‘break’ statement in java?
Level – 3
Que1. What is a list? How it is different from combo box
Que2. What is the difference between a text field and a password field when both can obtain text from user?
Que3. Name two containers for each of the following categories
(i)    top level (ii) middle level (iii) component level
Que4. What are containers or container controls?
Que5. What do you understand by message and an event
Que6. Define GUI .How can you create a GUI application on java platform

Que8. What are the various types of dialog options supported by jOptionPane?
Que9. Name four methods associated with jOption dialog.
Que10. Explain the various possible values for Option type property of jOptionPane dialog.
UNIT-II
Chapter- 5 JAVAGUI PROGRAMMING REVISION TOUR-III
S.No.
Concepts
Degree of Importance
Levels of Assignment
Errors generally committed
1
Objects
*
L 1
Definition is not cleared in real world
2
Classes
*
L 1
Students is get complexed in declaration of  private, public  and protected part
3
Methods
***
L3
How decide parameters and signature
4
Use of keyword  Void
*
L1
When students used void keyword
5
Actual and formal Parameter
**
L2
How can you differentiate actual and formal parameter in real world
6
Constructor
**
L2
limitation of constructors
7
This Keyword
***
L3
e.g.  of real world , where this using
8
Class Methods and Instance Methods
**
L2
Static keyword is using  where
LEVEL-I
1.     In Java, Methods reside in  ___________.
2.    Can every class be referred to as a user defined data type?
3.    A________ Constructor takes no Arguments.
4.    What is a parameterized constructor? How is it useful ?
                                                            LEVEL-II
1.    At what time is the constructor method automatically invoked?
2.    How do we invoke a constructor?
3.    How is call –by –value method different from call- by- reference method?
LEVEL-III
1.    List some of the special properties of the constructor methods?
2.    Differentiate between Composite Data Type and User- Defined Data type.
3.    Differentiate between Software Objects and Real world Objects?
4.    What is ‘this’ OBJECT?
Chapter –Six
More about classes and libraries
Sr No
Concepts
Degree of Importance
Levels of Assignment
Errors generally committed
1
Controlling access to members of  class
**
L 1,L3
Definition not cleared , scope for each access specifier is wrongly explained , example not given
2
Java libraries
***
L1,L2
Improper Usage for Method , argument passed to each method not specified correctly,


3
Working with string
*****
L1, L2,L3
Working of methods not explained correctly , difference between string buffer and string data type not cleared , working of comapreTo() & equals( ) methods


4
Using math library
*****
L1,L2,L3
Argument passed to method not mentioned , return type not mentioned


5
packages
*
L1
Packages used for methods not known 


Reference :           “Informatics Practices “ by Sumita Arora
                              “Informatics Practices “ by Reeta Sahoo
Question bank by Sumita Arora


Level 1
  1. What is the difference between length( )  and capacity( ) string function?
    1. Explain the following string functions available in Java giving suitable examples in each case:                                         
    2. Length ( )
    3. substring ( )
    4. concat ( )
    5. trim ( )
    6. toUpperCase ( )
    7. toLowerCase( )
  2. Name any four packages available in java.  
  3. What is an abstract class?                                         
  4. What is the difference between an abstract class and an interface?
  5. How   compareTo() & equals() differ from each other                     
  6. Explain indexOf(char ch)
  7. Explain power()
  8. Explain the library function append()
  9. Explain charAt(int a)

Level 2
  1. What is a package? Why do we design a package?.                       
  2. What members of a class out of private, protected and public are inheritable?
  3. When do we declare a method or class ‘final’? Explain with example         
  4. When do we declare a method or class abstract? Explain with example     
  5. What will be the contents of jTextField1 and jTextField2 after executing the followingcode:

String s = "ABC Micro Systems";
jTextField1.setText(s.length()+" ");
      jTextField2.setText(s.toLowerCase());

6. What will be the contents of jTextField1 , jTextField2 , jTextField3 after executing the followingcode
jTextField1.setText(Math.power(2.3));
      jTextField2.setText(Math.round(2.3));

7. What will be the contents of jTextField1 , jTextField2 , jTextField3 after executing the followingcode
String s1 = "ABC ";
String s2 =” Microsystem”
jTextField1.setText(s1.concat(s2));
      jTextField2.setText(s1.length());
 jTextField3.setText(s2.length());
8. What will be the contents of jTextField1 after executing the followingcode
String s1 = "ABC ";
jTextField1.setText(s1.replace (‘A’ , ‘H’));
     
9. What will be the contents of jTextField1 after executing the followingcode
String s1 = "   ABC Microsystems";
jTextField1.setText(s1.trim());

10. What will be the contents of jTextField1 , jTextField2 , jTextField3 after executing the followingcode
String s1 = "ABC ";
jTextField1.setText(s1.indexOf(‘C’));


Level 3
  1. Write the code for an application count button that counts the occurrence of a particular character in a string.  3 mark
  2. Write the code that changes the first letter of each word in a textbox touppercase and display the modified sentence in the same textbox. 4
  3. An application that converts  a string into its reverse and print its in RevTF. write the suitable code for the application                               3 mark
  4. find output if ”abc”is passed as argument
   Public static void func(string s1)
      {
String s = s1+”xyz” ;
System.out.printlln(“ “ + s1);
System.out.printlln(“ “ + s);
}
  1. find the output
       stringBuffer city = new stringBuffer(“Madras”);
stringBuffer string = new stringBuffer(“ ”);
string.append(new string(city));
string.insert(0 , “Central”);
string.out.println(string);

6. What will be the contents of jTextField1 and jTextField2 after executing the followingcode:
String s = "ABC Micro Systems";
jTextField1.setText(s.replace( ‘r’ , ‘t’);
     
7. What will be the contents of jTextField1 and jTextField2 after executing the followingcode:
String s = "   Informatics Practices ";
jTextField1.setText(s.toUppercase());
      jTextField2.setText(s.trim());
8. What will be the contents of jTextField1 and jTextField2 after executing the followingcode:
String s = " Informatics Practices ";
jTextField1.setText(s.conact(“  Practicals”));

9. What will be the contents of jTextField1 and jTextField2 after executing the followingcode:
String s = " Informatics Practices ";
jTextField1.setText(s.lastIndexof(“s”);
    
10. What will be the contents of jTextField1 and jTextField2 after executing the followingcode:
String s = " Informatics Practices ";

jTextField1.setText(s.substring( 0, 3));

Chapter -7
Inheritance
Sr.No
Concept
Importance
Levels
Errors
1
Definition & need
***
1,2,3
Generally no errors
2
Types of Inheritance
**
1,2
Confusion between Multi-level & Multiple Inheritance
3
Base & Derived Class
*****
1,2,3
 Improper definition of sub class
4
Visibility Modes
****
1,2,3
Difference between protected and public visibility modes
5
Function Overloading
***
1,2,3
Confusion in type of arguments
6
Function Overriding
***
1,2,3
Which of the function will be called by which object
7
Abstract Class & Methods
**
2,3
Generally No errors
8
Interfaces
**
2,3
Generally No errors

Level 1
1.    What is Inheritance & What is the need of inheritance?
2.    Name the various type of inheritance available in java.
3.    Define the concept of Base Class and derived class.
4.    What are the visibility modes in java?
5.    What is the difference between function overloading and function overriding?
6.    What is abstract class & methods?
7.    Does Java support Multiple Inheritance? Yes or No.
8.    What is the difference between protected and public visibility mode.
9.    What is the default visibility mode if nothing is specified?
10.  What is the difference between method prototype and method signature

Level 2

1.    Name the various type of inheritance available in java.
2.    Can a derived class have access to private members of base class?
3.    When do we declare a method or class ‘final’?
4.    What is an abstract class?
5.    Differentiate between Interface and Multilevel Inheritance.
6.    What is the sequence of constructor calling in inheritance?

Level 3
1.    Why was the concept of inheritance introduced in object oriented Languages? Write the Syntax and its body key points.
2.    When do we declare a method or class abstract?
3.    Differentiate between an abstract class and an interface?
4.    Differentiate between Protected and Friendly access specifiers ? 
5.    Write a student class with following specifications:-
·         Two private variables : first name, last name
·         Constructor with two arguments
·         Void Method printdata() to print first+lastname

Write a Graduate class that inherits from student class
·         Add private variables, Stream,  Degree
·         It must have a constructor method
·         Method PrintGrade() to print Stream, Degree along with inherited first and last name.

6.    When an overridden  method is called through a Super class reference which version of the method is executed ?


Unit -2 ( Programming)
Chapter – 8 ( GUI Dialogs and Tables)

SNo
Concept
Degree of Importance
Level of Assigment
Error
Reference
1.     
jDialog
*
L 1
Error In Designing

2.     
jOptionPane
**
L 2
coding

3.     
jOptionPane DialogTypes
*
L 1, L2
Problem in using value/code for the dialog type

4.     
Creating jOptionPane programatically
***
L 2, L 3
Classes required to be imported

5.     
Tables
*
L 1
Use of methods

6.     
Table Model
*
L 1
Problem of the DefaultTableProperty


Level 1:
1.    What is use of Dialog window?
2.    Which control allows display and render data in row and column format?
3.    Can you insert/remove rows from an existing table?
4.    What is JOptionPane?
5.    What is jTable Control?
6.    How to disappear the dialog window?
7.    Explain all the Dialog Types supported by jOptionPane?
Level 2:
1.    What do you know about jDialog?
2.    Which Buttons will be shown by Input Dialog by Default?
3.    Write code to remove first & last row of a table?
4.    Write the import statement required for using jOptionPane Class?
5.    Name the method which helps to display a dialog box?
6.    Write the code to add two floating point numbers and display in dialog box.
7.    Name four methods associated with jOption dialog.
Level 3:
1.    Explain all the elements of JOptionPane?
2.    Explain Table-Model alongwith its significance?
3.    Create an application to take input from the user and display the sum when user input 0.
4.    Explain the use of JOptionPane.QUESTION_MESSAGE dialog.
5.    Which predefined dialog types of JOtionPane class does not return anything?


UNIT 9:DATABASE CONNECTIVITY TO MYSQL

SNO
CONCEPT
IMPORTANCE
LEVELS
Errors
1
JDBC ODBC Definition
***
1
Use of proper words
2
Classes Used for Databases Connectivity
*
2
Appropriate classes should be used according to the description
3
Methods to perform operations like display ,delete ,insert and update etc.
*
3
Take care of syntax,
indentation
Level 1:
Q1.Define database connectivity?
Q2.What is JDBC? How it is different from ODBC?
Q3.Defineresult set?
Q4.Which method will be used to obtain the following type of data from a result set?
            Intdata, float data, string data, at data
Q5.Name some Result Set Methods?
Level 2:
Q1.Mention the tasks performed by JDBC?
Q2.What is Connection? What is its role?
Q3.What will Class.ForName do while loading drivers?
Q4.Explain how can you make the connection?
Q5.What does statement object do?
Q6.How can you load the drivers?
Level 3:
Q1. Create a Java GUI application to displaythe records of employees of table DEPT.
Q2. Create a Java GUI application to perform Update and delete operations using DEPT.
Q3. Name the class that provide an easy and  convenient way to display standard dialogs for
Posting  a information, asking a question or prompting for simple user input. How can import 
it in your program/ application?
.UNIT -2
WEB APPLICATION DEVELOPMENT

S.NO
Concepts
Degree of Importance
Levels of Assignment
Errors generally committed
1
Web Browser
***
L 1
Example  not given  or sometimes students mix the definition with web server

2
Web Server
***
L 1
Students  does not understand the actual concept of or definition of Web Browser and write wrong definition

3
Web Address and URL
**
L2
Students generally does not give  details answer  of this question with example

4
Communicating with web server 
*
L3
Students generally  have no idea about this topic

5
Client Server Application
**
L3
Students Does not give right definition of this topic



LEVEL-1
1. What do you mean by web browser?
2.  Differentiate between web browser and web server.
3.  Explain the concepts of Client Server Computing by giving example.
4. Define Web site.
5. Expand the following terms
(A) HTTP                    (B) WWW     (C)   URL                       (D) CGI
6. Dynamic documents sometimes referred to as _____ dynamic documents.
7. _____is a technology that creates and handles dynamic documents.
8. In a URL the ____is the full name of the file where the information is located.
9. _____ is a repository of information linked together from points all over the world.
10. In a URL, the ____ is the computer on which the information is stored.

                                                  LEVEL-2
1. What is a URL? What are its Components? Explain with the help of Example.
2. Why we use the CGI scripts and Server side scripts Explain? 
3. How can you differentiate other servers on the internet from World Wide Web?
4. Nisha wants to upload and download files from/to a remote internet server, write
               the name of the relevant communication protocol, which will let her do the same.
            5. Bhupesh is confused between the terms Domain Name and URL. Explain the
    difference with the help of appropriate examples of each.
                                                                      
LEVEL-3
1. What is a protocol? How does protocol affect the Internet?
            2. Explain Advantages of using dynamic web pages over static web pages.
            3. What do you mean by DNS?
            4. Which protocol is used for transferring hypertext document on the internet?
            5. Rajesh says that the following No. indicate an address 208.77.1888.166
               What is above address called? To which object / device is it assigned?

Unit -2 ( Programming)
Chapter –11 ( HTML:-Basic HTML elements)

SNo
Concept
Degree of Importance
Level of Assigment
Error
Reference
1.     
HTML and its capabilities
**
L1
Concept clarity is not there

2.     
Writing HTML Documents
**
L2
Improper use of tags

3.     
Container and Empty Elements
*
L1,L2
Tags not properly closed

4.     
HTML tag structure
*
L1
Problem in syntax

5.     
Basic HTML Tags
***
L2,L3
Proper use not known

Level 1:

1.    What is the purpose of HTML?
2.    In which section of an HTML do you enter the TITLE element?
3.    HTML tags are case-sensitive or not?
4.    Write the extension of HTML file?
5.    What is the purpose of using BODY tag?
6.    Write HTML code to set the bgcolor as “red”.

Level 2:
1.How can an image be inserted in a web page?
2.What is the difference between container and empty tags?
3.List the types of alignments applied to paragraphs.
4.Write any two attributes used with BODY tag.
5.Which HTMLtag and corresponding attributes are used to add an image as background of an HTML document.?
6.How is <P> tag different from <BR> tag?
Level 3:

1.    What is a BASEFONT tag?  Name any two attributes of this.
2.    Differentiate between BASEFONT and FONT tag?
3.    How is HEAD tag different from <BODY>  tag?
4.    How can you give comments in HTML?
5.    What is the purpose of using the tag <H1>…<H6>?
6.    Which  HTML command is used to display the following in your web page- X2 + Y2  ?
7.    What is the difference between Colspan and rowspan?

Chapter 12 : HTML-II (Lists ,Tables and Forms)
                                               
S.No
Concept
Degree of Importance
Levels of Assignment
Errors
1
Lists
***
L1,L2
Use <UL>tag when <OL>tag is required
2
Tables
****
L2,L3
Confuse when settings are to be applied to the whole table and when to a particular cell.
3
Forms
****
L3
Students Do not give proper formatting to the form.

Level 1:
1.      What are the different forms of List used in HTML? Name them.
2.      What is a <OL>…</OL> tag? Name any two attributes used with this tag.
3.      What is CELLPADDING?
4     What is CELLSPACING?
5     What is the purpose of using TYPE attribute used in Lists?
6     What is the purpose of using START attribute used in Lists?
7     What is <THEAD> tag?
8     What is rowspan and colspan attributes?
9     What is Align attribute?
10  What is unordered lists?

Level 2:
  1. What is table? What are the basic commands for creating a table?
  2. What is FORM tag? Explain with example.
  3. What is INPUT tag? Explain with example.
  4. What is the syntax of creating Radio box?
  5. What is the syntax of creating Check box?
  6. What is the Syntax of creating Text Area?
  7. What are <DL> ?


Level 3:
1. What for Rowspan and Colspan attributes used?
2. How is form processed when the form is submitted?
3. What are Submit and Reset Buttons?
4. What is the difference between GET and POST Methods?





No comments:

Post a Comment