অণুজীব

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

7874. Is it possible to access the private class outside the package

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

7875. How can we make a class abstract?

  1. By making all member functions constant.
  2. By declaring it abstract using the static keyword.
  3. By declaring it abstract using the virtual keyword.
  4. By making at least one member function as pure virtual function.

7876. Java does not support ____ inheritance

  1. Single
  2. multiple
  3. Hierarchical
  4. multilevel

7877. For using interface in class which keyword is used

  1. implements
  2. throw
  3. invert
  4. extends

7878. Which statement is true about the hashCode method?

  1. None of aboveThe hashCode method for a given class can be used to test for object inequality
  2. but NOT object equality
  3. for that class.The hashCode method is used by the java.util.SortedSet collection class to order the elements within that set.
  4. The hashCode method for a given class can be used to test for object equality and object inequality for that class.

7879. Java is an enhanced version of C++

  1. FALSE
  2. TRUE
  3. Depends upon the compiler
  4. Depends upon the program

7880. Which of the following statements about the Java language is true?

  1. Java supports only Object Oriented Programming approach
  2. Both Procedural and Object Oriented Programming are supported in Java
  3. Java supports only Procedural approach towards programming
  4. None of the Above

7881. Which of the following line of code is suitable to start a thread ?

  1. Thread t = new Thread(X); t.start();
  2. Thread t = new Thread(); x.run();
  3. Thread t = new Thread(X);
  4. X run = new X(); Thread t = new Thread(run); t.start();

7882. Given a valid DateFormat object named df, and Date d = new Date(0L); String ds = "December 15, 2004"; // insert code here What updates d’s value with the date represented by ds?

  1. 18. d = df.parse(ds);
  2. 18.try{ d = df.parse(ds); } catch(ParseException e) { };
  3. 18.try{ d = df.getDate(ds); } catch(ParseException e) { };
  4. 18. d = df.getDate(ds);

7883. Given: package com.company.application; public class MainClass { public static void main(String[] args) {} } And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATH environment variable is set to "." (current directory). Which two java commands entered at the command line will run MainClass?

  1. None of above
  2. java -classpath . MainClass if run from the /apps/com/company/application directory
  3. java MainClass if run from the /apps directory
  4. java com.company.application.MainClass if run from the /apps directory

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

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