Posts

Showing posts from July, 2024

Kalaimani profile

 Name : Kalaimani. M     Class : Msc computer science   College Name : GACA(kum)   Register No : P 23 CS 378  DOB : 21/05/2003   Qualification : BCA    Father Name : Murugan. T  Mother Name : Usha. M  Qualification : BCA  Blood group : A+ve  Mobile No : 6374568048  Occupation : Farmer    Income :  60,000  E-mail id : kalaimani m2020@gmail.com          

Quiz program

 import java.lang.*; import java.io.*; class Questions{ public String [][]qpa; public String[][]qca;  Questions()throws IOException { qpa=new String[10][5]; /*questionsandobjectives*/ DataInputStream in=new DataInputStream(System.in); qpa[0][0]="keyboard?"; qpa[0][1]="1.input"; qpa[0][2]="2.java JavaProgram"; qpa[0][3]="3.javac JavaProgram.java";qpa[0][4]="4.No one"; qpa[1][0]="What is the use ofthe println method?"; qpa[0][1]="1.Itisusedtoprinttextonthescreen."; qpa[1][2]="2.Itisusedtoprinttextonthescreenwiththelinebreak."; qpa[0][3]="3.Itisusedtoreadtextfromkeyboard."; qpa[1][4]="4.Itisusedtoread textfromafile."; qpa[2][0]="Howtoreadacharacterfromthekeyboard?"; qpa[2][1]="1.char c=System.read()"; qpa[2][2]="2.char c=System.in.read()"; qpa[2][4]="3.char c=(char)System.read()"; qpa[2][3]="4.char c=(char)System.in.read()"; qpa[3][0]="...