Java Programming
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION
SSSPM’S Polytechnic Barshi
A
Report on
Java Programming Micro Project
Academic year: 2018-19
‘Online Test Exam’
Program : Computer Engg. Program code : CO4I
Course : Java Programming Course code : 22412
Java Programming
MAHARASHTRA STATE
BOARD OF TECHNICAL EDUCATION
Certificate
This is to certify that Mr. /Ms.………………………………………………………………………….
Roll No. ……... of ……. Semester of Diploma in …………………………………………........
…………………………of Institute, SSSPM’S POLYTECHNIC (Code:0122) has completed
the Micro Project satisfactorily in Subject ---------------------------- for the academic
year 20…..- 20….. as prescribed in the curriculum.
Place: ……………………. Enrollment No: ……………………………………..
Date: ……………………… Exam Seat No: …………………………………….
Guide Head of the Department Principal
Java Programming
●Group Details●
Sr.No Name of group members Roll Enrollment No Exam
No Seat No
1. Suryawanshi S.B. 1701220020
2. Gavhane A.R. 1701220033
3. Karade N.N. 1701220028
4. Garad S.S. 1801220057
Name of Guide :- Ms. Futane V.S.
3
Java Programming
Code:-
/*Online Java Paper Test*/
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class OnlineTest extends JFrame implements ActionListener
{
JLabel l;
JRadioButton jb[]=new JRadioButton[5];
JButton b1,b2;
ButtonGroup bg;
int count=0,current=0,x=1,y=1,now=0;
int m[]=new int[10];
OnlineTest(String s)
{
super(s);
l=new JLabel();
add(l);
bg=new ButtonGroup();
for(int i=0;i<5;i++)
{
jb[i]=new JRadioButton();
add(jb[i]);
bg.add(jb[i]);
}
b1=new JButton("Next");
b2=new JButton("Bookmark");
b1.addActionListener(this);
b2.addActionListener(this);
add(b1);add(b2);
set();
l.setBounds(30,40,450,20);
jb[0].setBounds(50,80,100,20);
jb[1].setBounds(50,110,100,20);
jb[2].setBounds(50,140,100,20);
jb[3].setBounds(50,170,100,20);
b1.setBounds(100,240,100,30);
b2.setBounds(270,240,100,30);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLayout(null);
4
Java Programming
setLocation(250,100);
setVisible(true);
setSize(600,350);
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==b1)
{
if(check())
count=count+1;
current++;
set();
if(current==9)
{
b1.setEnabled(false);
b2.setText("Result");
}
}
if(e.getActionCommand().equals("Bookmark"))
{
JButton bk=new JButton("Bookmark"+x);
bk.setBounds(480,20+30*x,100,30);
add(bk);
bk.addActionListener(this);
m[x]=current;
x++;
current++;
set();
if(current==9)
b2.setText("Result");
setVisible(false);
setVisible(true);
}
for(int i=0,y=1;i<x;i++,y++)
{
if(e.getActionCommand().equals("Bookmark"+y))
{
if(check())
count=count+1;
now=current;
current=m[y];
set();
((JButton)e.getSource()).setEnabled(false);
current=now;
}
5
Java Programming
if(e.getActionCommand().equals("Result"))
{
if(check())
count=count+1;
current++;
//System.out.println("correct ans="+count);
JOptionPane.showMessageDialog(this,"correct ans="+count);
System.exit(0);
}
}
void set()
{
jb[4].setSelected(true);
if(current==0)
{
l.setText("Que1: Which one among these is not a datatype");
jb[0].setText("int");jb[1].setText("Float");jb[2].setText("boolean");jb[3].setText("char");
}
if(current==1)
{
l.setText("Que2: Which class is available to all the class automatically");
jb[0].setText("Swing");jb[1].setText("Applet");jb[2].setText("Object");jb[3].setText("ActionEvent");
}
if(current==2)
{
l.setText("Que3: Which package is directly available to our class without importing it");
jb[0].setText("swing");jb[1].setText("applet");jb[2].setText("net");jb[3].setText("lang");
}
if(current==3)
{
l.setText("Que4: String class is defined in which package");
jb[0].setText("lang");jb[1].setText("Swing");jb[2].setText("Applet");jb[3].setText("awt");
}
if(current==4)
{
l.setText("Que5: Which institute is best for java coaching");
jb[0].setText("Utek");jb[1].setText("Aptech");jb[2].setText("SSS
IT");jb[3].setText("jtek");
}
if(current==5)
6
Java Programming
{
l.setText("Que6: Which one among these is not a keyword");
jb[0].setText("class");jb[1].setText("int");jb[2].setText("get");jb[3].setText("if");
}
if(current==6)
{
l.setText("Que7: Which one among these is not a class ");
jb[0].setText("Swing");jb[1].setText("Actionperformed");jb[2].setText("ActionEvent");jb[3].setText("B
utton");
}
if(current==7)
{
l.setText("Que8: which one among these is not a function of Object class");
jb[0].setText("toString");jb[1].setText("finalize");jb[2].setText("equals");jb[3].setText("getDocumentB
ase");
}
if(current==8)
{
l.setText("Que9: which function is not present in Applet class");
jb[0].setText("init");jb[1].setText("main");jb[2].setText("start");jb[3].setText("destroy");
}
if(current==9)
{
l.setText("Que10: Which one among these is not a valid component");
jb[0].setText("JButton");jb[1].setText("JList");jb[2].setText("JButtonGroup");jb[3].setText("JTextArea
");
}
l.setBounds(30,40,450,20);
for(int i=0,j=0;i<=90;i+=30,j++)
jb[j].setBounds(50,80+i,200,20);
}
boolean check()
{
if(current==0)
return(jb[1].isSelected());
if(current==1)
return(jb[2].isSelected());
if(current==2)
return(jb[3].isSelected());
if(current==3)
return(jb[0].isSelected());
if(current==4)
7
Java Programming
return(jb[2].isSelected());
if(current==5)
return(jb[2].isSelected());
if(current==6)
return(jb[1].isSelected());
if(current==7)
return(jb[3].isSelected());
if(current==8)
return(jb[1].isSelected());
if(current==9)
return(jb[2].isSelected());
return false;
}
public static void main(String s[])
{
new OnlineTest("Online Test Of Java");
}
8
Java Programming
Output:-
9
Java Programming
10
Java Programming
11
Java Programming
12
Java Programming
ANNEXURE I
Rubric for Evaluation of Micro Project of Java
Programming(22412)
Title of Micro Project:
Group Members:
Sr.No. Roll No. Name of Candidates
1 Gavhane Aniket Rajaram
2 Suryawanshi Shubham Bhalchandra
3 Garad Shubham Shahaji
4 Karade Nilesh Nilkanth
Sr. Criteria Marks Indicators for different level of Performance (Evaluation Scale 0 to 2)
No Obtained
( Out of Poor (0) Average (1) Good (2)
2)
Submission Not Submitted proposal or project report Project proposal & project
of Project anything in time submitted in time report submitted ij time
1
proposal/Rep
ort
Not attained any Attained some CO/PRO Attained maximum CO/PRO
CO/PRO CO/PRO
2
attainment
Content of Not contains relevant Contains some relevant Contains maximum relevant
3 project/Forma information information information
tting
Total Marks
4
(06)
Question/
5
Answers (04)
Total (10) :
Additional Comments (if any):
Ms. Futane V.S.
Name of Teacher
13
Java Programming
ANEEXURE II
Evaluation Sheet for the Micro Project
Academic Year: 2018-19 Name of the Faculty:
Course:Java Programming Course code: 22412
Semester: IV Title of the project:
Cos addressed by Micro Project:
A:
B:
C:
D:
Major learning outcomes achieved by students by doing the project
(a) Practical outcome:
(b) Unit outcomes in Cognitive domain:
(c) Outcomes in Affective domain:
1)
2)
Comments/suggestions about team work /leadership/inter-personal communication (if any)
……………………………………………………………………………………………………………
…
Marks out of 6 Marks out of 4for
for performance performance in
Roll No Student Name in group activity oral/ presentation Total out of 10
(D5 Col.8) (D5 Col.9)
(Signature of Faculty)
14