quiz in java online Test

What is Java (in regard to Computer Science) ?


What is an assignment statement ?


What will be the value of “num” after the following statements?

int num;

num = (5+4);

num = num / 9;

num = 12;


If you want your conditional to depend on two conditions BOTH being true, what is the proper notation to put between the two Boolean statements ?


What is the result of compiling and running the following code?

class PrintTest{

public static void main(String[] args) {

double d=222.4578;

System.out.printf(“% .2f”,d);

}

}


What is the result of compiling and running the following code, assuming that the file bb.txt does not exist?

class WriterTest{

public static void main(String[] args) throws IOException{

Writer w=new BufferedWriter(new FileWriter(“bb.txt”)); // Line1

w.write(1); // Line2

w.close();

}

}


1. A value must always be assigned to String object when it is created, and cannot be modified later.


What is the Java development environment?


When programming in Java, which of the following must you keep in mind?


What's the extension for a compiled Java file?


What's the common term for an error within a computer program's code that prevents it from functioning properly?


What's another name for an execution error?





























































Comments
RIPAN Baghla
By: RIPAN Baghla
938 days 17 hours 27 minutes ago

can i get my wrong answers

RIPAN Baghla
By: Alok
149 days 15 hours 19 minutes ago

Yes..By Clicking the Review Test Button we can recheck all the Q

LINCY
By: LINCY
938 days 16 hours 54 minutes ago

WAT DO U MEAN BY GET WRONG ANSWERS,DO U MEAN ANSWERS OF THE QUESTIONS U WENT WRONG
IT AUTOMATICALLY COMES WEN U END THE TEST,I MEAN ALL THE CORRECT ANSWERS OF THE QUESTIONS

LINCY
By: LINCY
938 days 16 hours 52 minutes ago

CLICK END TEST,THEN U WILL REACH THE SCREEN WITH YOUR SCORE SHEET,THERE CLIK REVIEW TEST ,U WILL RECIEVE THE CORRECT ANSWERS

nehajain
By: nehajain
937 days 18 hours 30 minutes ago

CAN WE HAVE THE SOLN OF WRONG ANSW

nehajain
By: nehajain
937 days 18 hours 28 minutes ago

CAN WE HAVE CLOCK TIME WITH THIS TEST

Suriya Akter
By: Suriya Akter
795 days 10 hours 16 minutes ago

Nice questions

narendra
By: narendra
694 days 12 hours 49 minutes ago

i want some more java question

Want to learn?

Sign up and browse through relevant courses.

or fill this simple form
Name:
Your Email:
Password:
Country:
Contact no.:


Area code Number
Subjects you are interested in:
Word verification: (Enter the text as shown in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
5 Followers
Tests: 2

Your Facebook Friends on WizIQ

More Tests By Author

Java quiz
5 Questions | 133 Attempts

Connect