IT

IT

Friday, December 28, 2012

EDC question Bank -2


Part a

1) Differntiate drift current diffusion current and holding current

2) Define thermal run away

3) Explain salient features and applications of SCR

4) Define Biasing and Q point

5) What is the need for biasing

6) What are the general steps for performing DC &AC analysis

7) Explain briefly about zener breakdown

8) What are the types of capacitors available ? Differntiate them.

9) Define stability factor

10) List out draw backs of emitter feedback bias circuit along with remedial action

PART B

11) Explain the operation , characteristics, parameters of n-channel j-fet in detail

12) Explain in detail about fixed bias circuit , voltage divider bias circuit and define the steps for calculating Q point

13) Explain the operation , characteristics and rating of SCR in detail

14) Explain the operation , characteristics of CE &CB configuration and derive the equation for current gain ß, a, ic, ie, & ib

15) Explain the DC &AC analysis




EDC question Bank -1


part a 
1.explain the salient features of scr
2. difference between depltn and enhqncement mosfet
3. difference b/w ujt and bjt
4. advantge of push pull amp.
5. various methods of biasng the transistr
6. diff. b/w positve and negative feedbck
7. diff. b/w rc phase shift oscillator and lc oscilltr
8. diff bw astable and monostable multi vibratr
9. app. of an oscillator
10. methods to trigger monostable multivibratr
11. app. of 555 timer
12. characteristics of op amp
13. explain the logic for multiplng two signals usg op amp
14. why op amp is usd in arthmetic operations
15. give the efficieny formula fr power amplifier.

part b
1. explain the characteristics of mosfet
2. charactstics of jfet
3. explain dc and ac analysis of CE amplifier
4. explain the f response of tuned amplifier . a)list out the diff. types of negative feedbck and explain it wid an example b) explain the effect of feed back on ac charactrstics of amp. in details
5. what is an oscillatr? what are the diff types of oscillatr?explain the analysis of rc phase shift oscillatr in detail
6. explain in detail abt astable and monostable multivibrtr
7. explain in detail abt 555 timer . a) drw the block diagrm of op amp and explain it b) explain abt currnt to voltage and voltage to current convertr.

Wednesday, October 24, 2012

System Software Lab Programs(1-12) With Output

Link To Download:

                             Click To Download

Link To View The File:

                              Click To View

Monday, October 22, 2012

JAVA PROGRAMMING LAB( All progrmas with output)

To Download Progrmas with output:


Click on this link

To View The File:

Click On this link

Simply Programs:

1(A).Program to Illustrate various Data Types
DataType.java
class DataType
{
public static void main(String s[])
{
int i=3;
float f=89.09f;
short s2=98;
String s1="NASA";
System.out.println("Integer:"+i);
System.out.println("Float:"+f);
System.out.println("Short:"+s2);
System.out.println("String:"+s1);
}}


1(B).Program to illustrate Classes, Object and Methods

Function.java
class Function
{
void dimension()
{
double length=10;
double breadth=10;
double area;
area=length*breadth;
System.out.println("The area is :"+area+"+sqmeter");
}
public static void main(String s[])
{
Function m1=new Function();
m1.dimension();
}}


1(C).Program to illustrate Overriding
Override.java
class A
{
int i,j;
A(int a,int b)
{
i=a;
i=b;
}
void show()
{
System.out.println(i);
System.out.println(j);
}
}

class B extends A
{
int k;
B(int a,int b,int c)
{
super(a,b);
k=c;
}
void show()
{
System.out.println(k);
}
}
class Override
{
public static void main(String s[])
{
System.out.println("Over riding ");
B d=new B(1,2,3);
d.show();
}
}



2.METHOD OVERLOADING




overloadex.java
class overload
{
void over()
{
System.out.println("No Parameters Passed");
}
void over(int a)
{
System.out.println("\nInteger Parameters Passed");
System.out.println("Value is\t"+a);
}
void over(double a)
{
System.out.println("\nDouble Parameters Passed");
System.out.println("Value is\t"+a);
}
void over(int a,int b)
{
System.out.println("\nTwo Integer Parameters Passed");
System.out.println("Values are\t"+a+"\t"+b);
}
}
class overloadex
{
public static void main(String args[])
{
overload obj=new overload();
obj.over();
obj.over(2);
obj.over(2.5);
obj.over(2,3);
}
}


3(A).SINGLE INHERITANCE

singleinh.java
class init
{
int a=5,b=10,c;
}
class adds extends init
{
void add()
{
c=a+b;
System.out.println("addition is "+c);
}
}
class singleinh
{
public static void main(String args[])
{
System.out.println("**Single Inheritance**");
adds obj=new adds();
obj.add();
}
}


3(B).Multiple Inheritance
multipleinh.java

class initialize
{
int a=10,b=5,c;
}
class addition extends initialize
{
void add()
{
c=a+b;
System.out.println("addition is "+c);
}
}
class multiplication extends addition
{
void mul()
{
c=a*b;
System.out.println("multiplication is "+c);
}
}
class division extends multiplication
{
void div()
{
c=a/b;
System.out.println("division is "+c);
}
}
class multipleinh
{
public static void main(String args[])
{
division obj=new division();
System.out.println("the values are\n"+obj.a+"\t"+obj.b);
obj.add();
obj.mul();
obj.div();
}
}


4.STRING HANDLING FUNCTIONS

stringfn.java
class stringeg
{
String s1="JAVA";
String s2="java";
String s3=" String functions in ";
}
class leng extends stringeg
{
void lengt()
{
System.out.println("\n**LENGTH FUNCTIONS**");
System.out.println("Length of string 1 is:"+s1.length());
System.out.println("Length of string 2 is:"+s2.length());
System.out.println("Length of string 3 is:"+s3.length());
}
}
class modify extends leng
{
void modif()
{
System.out.println("\n**MODIFICATION FUNCTIONS**");
System.out.println("string 2 and 3 are joined to form :\n"+s3.concat(s2));
System.out.println("replacing space by * in s3 "+s3.replace(' ','*'));
System.out.println("s3 after trimming "+s3.trim());
}
}
class conv extends modify
{
void conver()
{
System.out.println("\n**CONVERSION FUNCTIONS**");
System.out.println("string 1 to lower case " +s1.toLowerCase());
System.out.println("string 3 to upper case  "+s3.toUpperCase());
}
}
class extrac extends conv
{
void extra()
{
System.out.println("\n**EXTRA FUNCTIONS**");
char buf[]=new char[11-7];
System.out.println("4 th character at string 1 is "+s1.charAt(3));
s3.getChars(7,11,buf,0);
System.out.print("character from 7-11 in string 3 is ->");
System.out.println(buf);
}
}
class comp extends extrac
{
void compar()
{
System.out.println("\n**COMPARISON FUNCTIONS**");
System.out.println(s1+" equals "+s2+" -> "+s1.equals(s2));
System.out.println(s1+" equalsIgnoreCase "+s2+" -> "+s1.equalsIgnoreCase(s2));
System.out.println(s1+" equals "+s3+" -> "+s1.equals(s3));
}
}
class searchi extends comp
{
void searc()
{
System.out.println("\n**SEARCHING FUNCTIONS**");
System.out.println(s3);
System.out.println("indexof(t)="+s3.indexOf('t'));
System.out.println("Last indexof(t)="+s3.lastIndexOf('t'));
System.out.println("indexof(in)="+s3.indexOf("in"));
System.out.println("indexof(t,10)="+s3.indexOf('t',10));
System.out.println("indexof(in,5)="+s3.indexOf("in",5));
}
}
class stringfn
{
public static void main(String args[])
{
searchi A=new searchi();
System.out.println("Strings are :\n"+"**\n"+A.s1+"\n"+A.s2+"\n"+A.s3+"\n**");
A.lengt();
A.modif();
A.conver();
A.extra();
A.compar();
A.searc();
}
}


5.EXCEPTION HANDLING

NegTest.java
class NegTest
{
public static void main(String s[])
{
try
{
int arr[]=new int[-2];
System.out.println("First element:"+arr[0]);
}
catch(NegativeArraySizeException n)
{
System.out.println("Generated Exception:"+n);
System.out.println("after the try block");
}
}
}

6(A).SINGLE THREAD

singthread.java
class singthread
{
public static void main(String args[])
{
Thread t=new Thread();
System.out.println(t);
t.setName("New Thread");
System.out.println("Thread name after using set name():");
System.out.println(t);
try
{
for(int i=0;i<=5;i++)
{
System.out.println(+i);
Thread.sleep(500);
}
}
catch(Exception e)
{
System.out.println(e);
}
}
}


6(B).MULTITHREAD
multithread.java
class newthread implements Runnable
{
String name;
Thread t;
newthread(String threadname)
{
name=threadname;
t=new Thread(this, name);
System.out.println("New thread"+t);
t.start();
}
public void run()
{
try
{
for(int i=5;i>0;i--)
{
System.out.println("name"+t);
Thread.sleep(500);
}
}
catch(Exception e)
{
System.out.println("Interrupted");
}
System.out.println(name+ "existing");
}
}
class multithread
{
public static void main(String args[])
{
new newthread("ONE");
new newthread("TWO");
new newthread("THREE");
try
{
Thread.sleep(1000);
}
catch(Exception e)
{
System.out.println("Main Thread");
}
}
}



7.PACKAGES IN JAVA


P1.java

package p1;
class A
{
void show()
{
System.out.println("PACKAGE");
}
}
class B
{
void add(int a,int b)
{
System.out.println(a+b);
}
}
class C
{
void sub(int a,int b)
{
System.out.println(a-b);
}
}

packmain.java
package p1;
class packmain
{
public static void main(String arg[])
{
A ob1=new A();
B ob2=new B();
C ob3=new C();
ob1.show();
ob2.add(2,3);
ob3.sub(3,1);
}
}



8.INTERFACE IN JAVA

inter.java
interface inter
{
public void add(int a,int b);
public void sub(int a,int b);
}

intermain.java
class A implements inter
{
public void add(int a,int b)
{
System.out.println("sum is"+(a+b));
}
public void sub(int a,int b)
{
System.out.println("difference"+(a-b));
}
}
class intermain
{
public static void main(String args [] )
{
System.out.println("INTERFACE");
inter ob=new A( );
ob.add(5,6);
ob.sub(6,5);
}
}



9.Program to draw multiple shapes using Applet

DrawingStuff.java
import java.applet.*;
import java.awt.*;
public class DrawingStuff extends Applet
 {
int width, height;
public void init()
{
width = getSize().width;
height = getSize().height;
setBackground(Color.black );
}
public void paint( Graphics g )
 {
g.setColor(Color.red);
g.drawRect(10, 20, 100, 15);
g.setColor(Color.pink );
g.fillRect(240, 160, 40, 110);

g.setColor(Color.blue);

g.drawOval(50, 225, 100, 50);
g.setColor(Color.orange);
g.fillOval(225, 37, 50, 25);

g.setColor(Color.yellow);
g.drawArc(10, 110, 80, 80, 90, 180);
g.setColor(Color.cyan);
g.fillArc( 140, 40, 120, 120, 90, 45);

g.setColor(Color.magenta );
g.fillArc( 150, 150, 100, 100, 90, 90);
g.setColor(Color.black );
g.fillArc( 160, 160, 80, 80, 90, 90);

g.setColor(Color.green );
g.drawString("Groovy!", 50, 150);
}
}

DrawingStuff.html
<html>
<head></head>
<applet code="DrawingStuff.class" width="350" height="350">
</applet>
</html>



10.Flow Layout

JAppletExample.java
import java.awt.*;
import javax.swing.*;
public class JAppletExample extends JApplet
{
public void init()
{
Container content = getContentPane();
content.setBackground(Color.white);
content.setLayout(new FlowLayout());
content.add(new JButton("Button 1"));
content.add(new JButton("Button 2"));
content.add(new JButton("Button 3"));
}}

JAppletExample.html

<html>
<head></head>
<applet code="JAppletExample.class" width="350" height="350">
</applet>
</html>




11.Border Layout


BorderLayoutTest.java

import java.awt.*;
import javax.swing.*;
public class BorderLayoutTest
{
public static void main(String[] a)
{
JFrame myFrame = new JFrame("FlowLayout Test");
myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container myPane = myFrame.getContentPane();
myPane.setLayout(new BorderLayout());
myPane.add(new JButton("North"), BorderLayout.NORTH);
myPane.add(new JButton("South"),
BorderLayout.SOUTH);
myPane.add(new JButton("East"),
BorderLayout.EAST);
myPane.add(new JButton("West"), BorderLayout.WEST);
myPane.add(new JButton(new ImageIcon("java.gif")),
BorderLayout.CENTER);
myFrame.pack();
myFrame.setVisible(true);
}}
BorderLayoutTest.html
<html>
<head></head>
<applet code="BorderLayoutTest.class" width="350" height="350">
</applet>
</html>



12.Grid Layout

S2.java
import java.awt.*;
import javax.swing.*;
public class S2 extends JFrame
{
public static void main (String [] args)
{
new S2().setVisible(true);
}
public S2 ()
{
Container cp = getContentPane();
cp.setLayout(new GridLayout(4,3));
String [] Phone = {"7","8","9","4","5","6", "1","2","3","*","0","#"};
for (int i=0;i<Phone.length;i++)
{
cp.add(new JButton(Phone[i]));
}
pack();
}
}