mcqpoint.com
Open in
urlscan Pro
139.162.24.117
Public Scan
URL:
https://mcqpoint.com/mcq/java/
Submission: On December 03 via manual from IN — Scanned from DE
Submission: On December 03 via manual from IN — Scanned from DE
Form analysis
4 forms found in the DOMPOST
<form method="post" class="login">
<p class="text-muted">Login is required in order to view results and track your progress. Please continue with your Google account.</p>
<a href="https://mcqpoint.com/login/google/" class="social_bt google_btn"><i class="fa fa-google-plus"></i>Continue with Google</a>
</form>
POST
<form method="post" class="login">
<p class="text-muted">Login is required in order to view results and track your progress. Please continue with your Google account.</p>
<a href="https://mcqpoint.com/login/google/" class="social_bt google_btn"><i class="fa fa-google-plus"></i>Continue with Google</a>
</form>
Name: utf_add_comment — POST
<form id="utf_add_comment" class="utf_add_comment" name="utf_add_comment" method="post">
<input type="hidden" name="_token" value="Nmdhv62ZO71gLdPExFOscss7N0kb5dnhV9wP72nJ">
<input type="hidden" id="business_id" name="business_id" value="160">
<input type="hidden" id="business_type" name="business_type" value="category">
<fieldset>
<div class="row">
<div class="col-md-4">
<label>Name:<span>*</span></label>
<input type="text" id="name" placeholder="Name" value="">
<span id="name_error" class="error-div text-danger"></span>
</div>
<div class="col-md-4">
<label>Email:<span>*</span></label>
<input type="text" id="email" placeholder="Email" value="">
<span id="email_error" class="error-div text-danger"></span>
</div>
<div class="col-md-4">
<label>Subject:<span>*</span></label>
<input type="text" id="subject" placeholder="Subject" value="">
<span id="subject_error" class="error-div text-danger"></span>
</div>
</div>
<div>
<label>Review:<span>*</span></label>
<textarea cols="40" id="review" placeholder="Your Message..." rows="3"></textarea>
<span id="review_error" class="error-div text-danger"></span>
</div>
</fieldset>
<div id="success" class="text-success" style="display: none;"></div>
<input type="button" class="submit button" id="submit-contact-form" value="Submit Review">
<div class="clearfix"></div>
</form>
Name: contact-form-action — POST
<form id="contact-form-action" name="contact-form-action" method="post">
<input type="hidden" name="_token" value="Nmdhv62ZO71gLdPExFOscss7N0kb5dnhV9wP72nJ">
<span class="la la-envelope-o"></span>
<input class="text-danger" name="emails" type="emails" id="emails" placeholder="Enter your email" required="" value="">
<span id="emails_error" class="error-div text-danger"></span>
<div id="success" class="text-success" style="display: none;"></div>
<button class="utf_theme_btn" type="button" id="subscribe">Subscribe</button>
</form>
Text Content
Search Sign In /Sign Up SIGN IN / SIGN UP Login is required in order to view results and track your progress. Please continue with your Google account. Continue with Google Search Sign In /Sign Up SIGN IN / SIGN UP Login is required in order to view results and track your progress. Please continue with your Google account. Continue with Google * Home * Computer Science * Java JAVA MCQ COMPUTER SCIENCE Attempt now to check your rank among 21 students! 50 Questions 30 Mins * Bookmark * Add Comment * Share With Friends * Ask a Question ABOUT JAVA Following are some of the multiple choice questions on the Java with answers that will help the students in developing their knowledge. JAVA MCQ 1. PICK ALL NON-PRIMITIVE DATATYPES FROM BELOW : * Bookmark * Report * Discuss * String * Array * Both a & b * None of these 2. ____________ IS CONVERSION OF ONE DATATYPE TO ANOTHER WITH USERS INTERVENTION. * Bookmark * Report * Discuss * Typecasting * explicit typecasting 3. THE LIFE CYCLE OF A THREAD IN JAVA IS CONTROLLED BY * Bookmark * Report * Discuss * JRE * JDK * JVM * None 4. WHICH WILL CONTAIN THE BODY OF THE THREAD IN JAVA? * Bookmark * Report * Discuss * Start() * Run() * Main() * Execute() 5. WHICH METHOD IS USED TO MAKE MAIN THREAD TO WAIT FOR ALL CHILD THREADS * Bookmark * Report * Discuss * Join () * Sleep () * Wait () * Stop () 6. HOW MANY WAYS A THREAD CAN BE CREATED IN JAVA MULTITHREADING? * Bookmark * Report * Discuss * 1 * 2 * 5 * 10 7. JAVA IS A PROGRAMMING LANGUAGE THAT IS CLASS-BASED, OBJECT-ORIENTED AND ___________________. * Bookmark * Report * Discuss * Flexible * Procedural * Concurrent * Imported 8. WHAT IS THE NAME OF THE COMPANY THAT DEVELOPED JAVA? * Bookmark * Report * Discuss * Sun Microsystems * IBM * The Green Team * Microsoft 9. ON WHAT YEAR WAS OAK RENAMED AS JAVA * Bookmark * Report * Discuss * 1998 * 1999 * 1996 * 1995 10. IT IS DESIGNED TO ADAPT TO AN EVOLVING ENVIRONMENT. * Bookmark * Report * Discuss * Secure * Integrated * High-Performance * Dynamic 11. JAVA IS DESIGNED FOR THE DISTRIBUTED ENVIRONMENT OF THE INTERNET. * Bookmark * Report * Discuss * Dynamic * Distributed * Simple * Portable 12. WHICH FEATURE ENABLES JAVA TO DEVELOP VIRUS-FREE, TAMPER-FREE SYSTEMS? * Bookmark * Report * Discuss * Secure * Interpreted * Encrypted * Dynamic 13. WITH THE USE OF JUST-IN-TIME COMPILERS, JAVA ENABLES HIGH PERFORMANCE. WHICH CHARACTERISTIC WAS DESCRIBED? * Bookmark * Report * Discuss * Architecture-Neutral * Dynamic * High Performance * Portable 14. JAVA BYTE CODE IS TRANSLATED ON THE FLY TO NATIVE MACHINE INSTRUCTIONS AND IS NOT STORED ANYWHERE MAKING THE DEVELOPMENT MORE RAPID AND ANALYTICAL. * Bookmark * Report * Discuss * Distributed * Interpreted * High Performance * Object-Oriented 15. WHICH FEATURE MAKES IT POSSIBLE TO WRITE PROGRAMS THAT CAN PERFORM MANY TASKS SIMULTANEOUSLY. * Bookmark * Report * Discuss * Interpreted * Multithreaded * Efficient * Multi-purpose 16. JAVA MAKES AN EFFORT TO ELIMINATE ERROR-PRONE SITUATIONS BY EMPHASIZING MAINLY ON COMPILE TIME ERROR CHECKING AND RUNTIME CHECKING. * Bookmark * Report * Discuss * Efficient * Dynamic * Robust * Secure 17. WHICH FEATURE IS CHARACTERIZED BY JAVA HAVING NO IMPLEMENTATION-DEPENDENT ASPECTS ON ANY PLATFORM? * Bookmark * Report * Discuss * Robust * Distributed * Multithreaded * Portable 18. JAVA COMPILER GENERATES AN OBJECT FILE FORMAT THAT IS EXECUTABLE ON MANY PROCESSORS, WITH THE PRESENCE OF JAVA RUNTIME SYSTEM. * Bookmark * Report * Discuss * Dynamic * Distributed * Platform-independent * Architecture-Neutral 19. JAVA IS DESIGNED TO BE EASY TO LEARN AND MAKES USE OF KEYWORDS CLOSE TO HUMAN LANGUAGE * Bookmark * Report * Discuss * User-Friendly * Efficient * Simple * Robust 20. WHEN JAVA IS COMPILED, IT IS NOT COMPILED ON A PLATFORM SPECIFIC MACHINES, RATHER ON A PLATFORM INDEPENDENT BYTE CODE. * Bookmark * Report * Discuss * Architecture Neutral * Platform Independent * Portable * Interpreted 21. IN JAVA, EVERYTHING IS AN OBJECT. JAVA CAN BE EASILY EXTENDED SINCE IT IS BASED ON THE OBJECT MODEL. WHICH CHARACTERISTIC OF JAVA WAS DESCRIBED? * Bookmark * Report * Discuss * Object-oriented * Simple * Secure * Robust 22. WHAT IS THE CORRECT RELATION BETWEEN LENGTH AND LAST-INDEX OF ARRAY? * Bookmark * Report * Discuss * last-index is always 1 more than the length * last-index is 1 less than the length (but not always) * last-index is always 1 less than the length * last-index is always equal to the length 23. SELECT CORRECT CODE TO CREATE AN ARRAY OF "DOUBLE" DATATYPE OF LENGTH 5. * Bookmark * Report * Discuss * double arr = double[5]; * double{} arr = new double{5}; * double[5] arr = new double[]; * double[] arr = new double[5]; 24. STRING[] FRIENDS = {"JOHN", "MIKE", "SAMANTHA", "MONICA"};WHICH CODE IS CORRECT TO PRINT "SAMANTHA" USING ARRAY FUNCTIONALITY? * Bookmark * Report * Discuss * System.out.println(friends[2]); * System.out.println(friends[3]); * System.out.println(friends["Samantha"]); * System.out.println(friends{2}); 25. INT[] MYARRAY = {11, 22, 33, 44, 55};WHICH CODE IS CORRECT TO PRINT LENGTH OF ABOVE INT-ARRAY? * Bookmark * Report * Discuss * System.out.println(int[].myArray.length()); * System.out.println(myArray.length); * System.out.println(myArray.length()); * System.out.println(int[].myArray.size()); 26. WHAT IS THE MOST APPROPRIATE WAY TO CHECK IF TWO STRINGS ARE IDENTICAL? * Bookmark * Report * Discuss * string1 == string2 * string1.equals(string2) * string1.same(string2) * string1.equalsIgnorecase(string2) 27. WHAT IS THE RETURN TYPE OF EQUALSIGNORECASE() METHOD? * Bookmark * Report * Discuss * int * String * char * boolean 28. WHAT WILL BE THE OUTPUT OF BELOW CODE? STRING STATEMENT = "OUTFIT OF THE DAY"; SYSTEM.OUT.PRINTLN(STATEMENT.SUBSTRING(3,6)); * Bookmark * Report * Discuss * it of * tfit * fit * FIT 29. GUESS THE OUTPUT IN JAVA * Bookmark * Report * Discuss String x = "10"; String y = "20"; String z = x + y; System.out.println(z); * 1020 * 10 20 * 30 * "10 20" 30. CHOOSE CORRECT PURPOSE OF INDEXOF() IN STRING CLASS. * Bookmark * Report * Discuss * returns the index (the position) of the last occurrence of a specified text in a string * returns the character of the first occurrence of a specified character in a string * returns the index (the position) of the first occurrence of a specified text in a string (excluding whitespace) * returns the index (the position) of the first occurrence of a specified text in a string (including whitespace) 31. WHICH IS CORRECT METHOD TO CONVERT STRING INTO UPPERCASE * Bookmark * Report * Discuss * changeUpperCase() * convertUpperCase() * toUpper() * toUpperCase() 32. STRING TXT = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";WHAT IS THE CORRECT WAY TO FIND THE LENGTH OF "TXT" STRING? * Bookmark * Report * Discuss * int len = length(txt); * float len = txt.length(); * int len = txt.length(); * double len = length(txt); 33. WHICH DATA TYPE GETS RETURNED FROM LENGTH() METHOD IN STRING CLASS? * Bookmark * Report * Discuss * double * String * int * number 34. WHICH METHOD TO USE TO FIND LENGTH OF A STRING? * Bookmark * Report * Discuss * length() * size() * long() * count() 35. WHAT IS THE DEFAULT VALUE OF A BOOLEAN VARIABLE? * Bookmark * Report * Discuss * True * true * False * false 36. INT X=15;LONG Y=X;WHICH TYPE OF CASTING IS SHOWN ABOVE? * Bookmark * Report * Discuss * Explicit typecasting * Implicit typecasting 37. DOUBLE X=15.2;INT Y=(INT)X;WHICH TYPE OF CASTING IS SHOWN ABOVE? * Bookmark * Report * Discuss * Explicit typecasting * Implicit typecasting 38. __________ ARE THE NAMES OF VARIABLES, METHODS, CLASSES, PACKAGES AND INTERFACES. * Bookmark * Report * Discuss * Identifiers 39. AN EXPRESSION WHICH INCLUDES DIFFERENT TYPES OF VARIABLES OR VALUES TO YIELD A RESULT, IS KNOWN AS A ____________. * Bookmark * Report * Discuss * Mixed Expression 40. ATTRIBUTES OF AN OBJECT ARE ALSO KNOWN AS * Bookmark * Report * Discuss * methods * properties * classes * functions 41. AN OBJECT IS AN INSTANCE OF A: * Bookmark * Report * Discuss * parameter * method * class * application 42. WHICH ONE IS NOT THE BASIC ELEMENT OF OOP? * Bookmark * Report * Discuss * Class * Abstraction * BlueJ * Polymorphism 43. WHAT IS THE DIFFERENCE BETWEEN A CLASS AND AN OBJECT? * Bookmark * Report * Discuss * A class is a blueprint to make an object * An object is a blueprint to make a class * A blueprint is an object to make a class * Blueprint class is an object make a 44. HOW MANY OBJECTS CAN BE MADE FROM A CLASS? * Bookmark * Report * Discuss * None, you make classes from objects * one * As many as you want * All of the above 45. WHICH OF THE FOLLOWING CONCEPTS OF OOPS MEANS EXPOSING ONLY NECESSARY INFORMATION TO CLIENT? * Bookmark * Report * Discuss * Encapsulation * Abstraction * Data hiding * Data binding 46. HIDING COMPLEXITY CAN ALSO BE TERMED AS * Bookmark * Report * Discuss * Inheritance * Overloading * Data hiding * Abstraction 47. THE PROCESS BY WHICH OBJECTS OF ONE CLASS ACQUIRE THE PROPERTIES OF OBJECTS OF ANOTHER CLASS IS KNOWN AS * Bookmark * Report * Discuss * Polymorphism * Inheritance * Data Hiding * Association 48. WHICH FROM THE FOLLOWING IS A FEATURE THAT ALLOWS US TO PERFORM A SINGLE ACTION IN DIFFERENT WAYS. * Bookmark * Report * Discuss * Abstraction * Polymorphism * Encapsulation * Inheritance 49. POLYMORPHISM RELATED TO : * Bookmark * Report * Discuss * PPO * Class * OPP * OOP 50. CONDITIONAL OPERATORS DOES NOT RETURN A VALUE * Bookmark * Report * Discuss * true * false ENJOYED THE QUIZ. SHARE THIS WITH FRIENDS Facebook Twitter Instagram Linkedin Youtube COMMENTS ADD YOUR REVIEW Your email address will not be published. Name:* Email:* Subject:* Review:* Ask a Question Ask a Question and Earn 5 points BOOK NOW & GET 50% DISCOUNT Date of Expires 05/08/2019 How to use? Just show us this coupon on a screen Coupon Code DL76T ADVERTISEMENT QUICK CONTACT TO HELP? For any Query regarding a website or any issue please contact with us we are here for solving your problem 24/7 * * * * * Contact Us Now RELATED MCQ'S LARAVEL MCQ 80 QUESTIONS REACT JS MCQ 37 QUESTIONS ANGULARJS MCQ 93 QUESTIONS NODE JS MCQ 57 QUESTIONS ANGULAR 2 MCQ 0 QUESTIONS SUBSCRIBE TO NEWSLETTER! Subscribe to get latest updates and information. Subscribe COMPUTER SCIENCE * Programming * Digital Marketing * Database * Testing SCIENCE * Physics * Chemistry * Botany * Zoology * Biology COMMERCE * Accounting * Economics * Business Studies * Legal Studies MATHEMATICS APTITUDE GENERAL KNOWLEDGE Copyright 2021. All Rights Reserved. Shares Share Tweet Email Share Share Share Pin Share Share Share