অণুজীব

java-language – programming-java – কুইজ মডেল টেস্ট অনুশীলন – 6

7794. Given: public interface A { String DEFAULT_GREETING = "Hello World"; public void method1(); } A programmer wants to create an interface called B that has A as its parent. Which interface declaration is correct?

  1. public interface B extends A {}
  2. public interface B inheritsFrom A {}
  3. public interface B implements A {}
  4. public interface B instanceOf A {}

7795. What is the Extension of java bytecodes?

  1. None of the Above
  2. .bc
  3. .java
  4. .class

7796. Which of the following is the correct syntax of FOR?

  1. for ( increment; initialize; test)
  2. for ( test; initalize; increment)for ( initialize; test)
  3. incrementfor ( initialize; test; increment)

7797. Given: int x = 3; int y = 1; if (x = y) { System.out.println(x = + x); } What is the result?

  1. The code runs with no output
  2. Compilation fails.
  3. x = 1
  4. x = 3

7798. Which is a valid keyword in java?

  1. Float
  2. string
  3. interface
  4. unsigned

7799. A block is enclosed inside __________

  1. parentheses
  2. braces
  3. brackets
  4. quotes

7800. Constructor has return type

  1. Depends upon the compiler
  2. yes
  3. no
  4. Depends upon the program

7801. Given: int i = 0, j = 5; tp: for (;;) { i++; for (;;) { if(i > –j) { break tp; } } System.out.println(i = + i + , j = + j); What is the result?

  1. Compilation fails.i = 1
  2. j = 4i = 1
  3. j = 0i = 3
  4. j = 4″;}}

7802. Which of the following terms are included inside the package

  1. classes
  2. interfaces
  3. all of the above
  4. method

7803. Given: public class Threads2 implements Runnable { public void run() { System.out.println("run."); throw new RuntimeException("Problem"); } public static void main(String[] args) { Thread t = new Thread(new Threads2()); t.start(); System.out.println("End of method."); } } Which can be result?

  1. End of method. Run. java.lang.RuntimeException: Problem
  2. None of above
  3. java.lang.RuntimeException: Problem
  4. run. java.lang.RuntimeException: Problem

আমাদের কাছে থাকা লক্ষ লক্ষ মডেল টেস্ট থেকে প্রাকটিজের জন্য কিছু এখানে তুলে ধরা হল। প্রতিটি অধ্যায়ের উপরে ইশিখন.কম কুইজ চ্যালেঞ্জ এ আছে শত শত মডেল টেস্ট বার বার মডেল টেস্ট দিয়ে নিজেকে যাচাই কর এবং পুরো বাংলাদেশের সকল শিক্ষার্থীর সাথে আপনার মেধা তালিকা দেখুন। প্রশ্নে কোন প্রকার ভুল থাকলে সঠিক উত্তরসহ নিচে কমেন্ট করে জানাবেন, আমরা ঠিক করে দেবো।

Leave a Reply

স্যার, কিভাবে আপনাকে সাহায্য করতে পারি?

Click one of our representatives below

Customer Support
Customer Support

Syeda Nusrat

I am online

I am offline

Technical Support
Technical Support

Ariful Islam Aquib

I am online

I am offline