• الصفحة الرئيسية
  • إتصل بنا
  • سياسة الخصوصية
Logo
  • الرئيسية
  • أفكار
  • صحة
  • معلومات
  • عجائب وغرائب
  • تكنولوجيا
الصفحة الرئيسية Java Multiple Choice Question (MCQ) Solved MCQ on Fundamental of Java Language set-14

Solved MCQ on Fundamental of Java Language set-14

الكاتب ahmed في 2:33 AM Java Multiple Choice Question (MCQ)

1) Which of the following statement is/are true?
i) The name of a java program file must match the name of the class with the extension .java
ii) Two methods cannot have the same name in java

A. i- only

B. ii- only

C. Both i and ii

D. None of the above


2) Which of the following represent(s) of a hexadecimal number?

A. 570

B. (hex)5

C. 0X9F

D. 0X5


3) ........ can appear only where in the body of a java method.

A. definition

B. declaration

C. determine

D. package


4) State whether the following statement are True or False?
i) The modulus operator(%) can be used only with integer operands
ii) Declarations can appear anywhere in the body of a java method

A. i-True, ii-False

B. i-False, ii-True

C. i-True, ii-True

D. i-False, ii-False


5) Which of the following will produce a value of 22 if x=22.9?

A. ceil(x)

B. round(x)

C. rint(x)

D. abs(x)


6) ........ is passed to a method by use of call by reference.

A. Variables

B. Objects

C. Methods

D. Operators


7) Using the keyboard interface you can fully abstract a ...

A. Method

B. Keyword

C. Class

D. Variables


8) State True or False for the following statements in java.
i) All the bitwise operators have same level of precedence in java
ii) The default can is always required in the switch selection structure.

A. i-True, ii-False

B. i-False, ii-True

C. i-True, ii-True

D. i-False, ii-False


9) Java is designed for .......... environment of the Internet.

A. Development

B. Deduction

C. Distributed

D. Web Design


10) Which of the following will produce a value of 10 if x=9.7?

A. floor(x)

B. abs(x)

C. rint(x)

D. round(x)

11) Variable declared as ......... do not occupy on a per instance basis.

A. Static

B. Final

C. Abstract

D. Code


12) Which of the following is not keyword?

A. NULL

B. implements

C. protected

D. switch


13) The ...... statement is used to terminate a statement sequence.

A. Break

B. Switch

C. Continue

D. Wait


14) Multidimensional arrays are actually ......

A. Arrays of element

B. Arrays of variable

C. Arrays of arrays

D. Arrays of variable


15) Which of the following keywords are used to control access to a class member?
i) default ii) abstract iii) protected iv) interface v) public

A. i, ii and iii only

B. ii, iii and iv only

C. iii, iv and v only

D. ii, iii and v only


16) ....... is used for initialize the value to the string object.

A. Character literals

B. String literals

C. String group literals

D. Group literals


17) Which of the following methods can be used to remove a component from the display?

A. delete()

B. remove()

C. disappear()

D. hide()


18) Which of the following statements are valid array declaration?
i) int number(); ii) float average[ ];
iii) double[]marks; iv) counter int[];

A. i and ii

B. ii and iii

C. iii and iv

D. All i, ii, iii and iv


19) Which of the following methods belong to the String class?

A. length()

B. CompareTo()

C. equals()

D. substring()

E. All of the above


20) Which of the following in NOT represent legal flow control statements?

A. break;

B. break();

C. continue outer;

D. return;


Answers:

1) A. i- only
2) A. 570
3) B. declaration
4) B. i-False, ii-True
5) C. rint(x)
6) B. Objects
7) C. Class
8) D. i-False, ii-False
9) C. Distributed
10) D. round(x)
11) B. Final
12) A. NULL
13) A. Break
14) C. Arrays of arrays
15) D. ii, iii and v only
16) B. String literals
17) D. hide()
18) B. ii and iii
19) E. All of the above
20) B. break();

Related Posts:

  • Solved MCQ of Java Set-1

  • MCQ of Java with answer set-2

  • Solved MCQ of Java for Java Proficiency test set-3

  • Solved MCQ of Java set-4

  • Java MCQ Questions and Answers set-5

  • Java Multiple Choice Questions With Answers set-6

  • MCQ of Java With Answer set-7

  • Java Multiple Choice Questions With Answers set-8

  • Java Objective Questions with Answers set-9

  • Java MCQ Interview Questions With Answers set-10

شارك المقال :
Tweet
✚

مقالات ذات صلة

التالي
المشاركةالتالية
السابق
المشاركة السابقة

تحويل كودإخفاء محول الأكواد الإبتساماتإخفاء

شكرا لمشاركتنا رأيك
Subscribe to: Post Comments (Atom)
  • Facebook
  • twitter
  • googleplus
  • youtube
  • linkedin

الأكثر زيارة

  • What is Information ?
    Information  can be defined as data that has been processed into a form that is meaningful to the recipient and is of real or perceived valu...
  • What is Information Technology?
    Definitions of  Information technology  ( IT ) It is a branch of engineering dealing with the use of computers and telecommunications equipm...
  • بالصور الفائزة بمسابقة ملكة جمال مصر 2017
    بالصور الفائزة بمسابقة ملكة جمال مصر 2017
    بالصور الفائزة بمسابقة ملكة جمال مصر 2017 لن تصدق من هي فرح صدقي ↓↓  لمشاهدة الصور والخبر كامل اضغط هنا  ↓↓ رابط المو...
  • Interview Questions on Stack and Queue in Data Structure set-2
    1) The queue in which the insertion takes place in the first position after of last element is a ...... A. priority B. dequeue C. circular D...
  • List of Top 65 Search Engine Submission Add URLs.
    List of Top 65 Search Engine Submission Add URLs.
    To get your site on the top ranking on the search engine results, Your site or URL must be indexed by Search Engines. For that you have to s...
  • List of Best Keyword Research Tools for Better SEO
    List of Best Keyword Research Tools for Better SEO
    Everyone needs to do keyword research work for the site before starting search engine optimization work as the first and most essential tas...
  • What are the different types of scheduling methods?
    Process scheduling is one way for a processor to handle n processes , by scheduling the execution process. Each process is executed one by ...
  • Solved MCQ on Database Backup and Recovery in DBMS set-1
    1) Which of the following is not a recovery technique? A. Deferred update B. Immediate update C. Two-phase commit D. Recovery management 2)C...
  • Solved MCQ on Distributed Database Transaction Management set-4
    1) Commit and rollback are related to .......... A. data integrity B. data consistency C. data sharing D. data security 2) The transaction w...
  • Solved MCQ on Fundamental of DBMS set-10
    1) Which of the following is not a characteristic of a relational database model? A. Table B. Tree like structure C. Complex logical relatio...

الأقسام

  • Artificial Intelligence(AI)
  • Backlinking
  • Basic IT
  • Best List
  • Blogging Tips
  • C
  • C#
  • C++
  • Computer Architecture
  • Computer Fundamental
  • Computer Security
  • Computer/IT Officer Exam
  • CSS
  • Data Mining and Warehousing
  • Data Recovery Tools
  • Data Structure
  • Database Management System
  • E-commerce
  • E-government
  • Internet & Web Designing
  • IT Law
  • IT Tips and Tricks
  • IT Tutorials
  • Java
  • JavaScript
  • Keyword Research Tools
  • MIS
  • Multiple Choice Question (MCQ)
  • Networking
  • Online Earning
  • Online IT Jobs
  • Operating System
  • Oracle Forms and Reports
  • Programming Guide
  • Programming Language
  • SEO
  • Social Networking Sites
  • Software Download
  • Software Engineering
  • System Analysis and Design
  • Top List
  • VB.Net
  • صحة
  • عجائب وغرائب

الأرشيف

  • ►  2017 (4)
    • ►  November (3)
    • ►  October (1)
  • ►  2016 (5)
    • ►  April (5)
  • ▼  2015 (87)
    • ►  August (1)
    • ►  July (8)
    • ►  June (13)
    • ►  May (2)
    • ►  April (2)
    • ►  March (4)
    • ►  February (20)
    • ▼  January (37)
      • Solved MCQ on Core Operating System Principle set-13
      • Objective Questions on Core Operating System set-12
      • Interview Questions on Operating System Basis set-11
      • MCQ on Operating System Fundamental set-10
      • Solved MCQ on Operating System Basis set-9
      • MCQ Questions on Fundamental of Java set-16
      • Interview Questions on Core Java Language set-3
      • Objective Questions on Core Java Language set-2
      • Interview Questions on Overview of Java set-15
      • Solved MCQ on Fundamental of Java Language set-14
      • Interview Questions on Fundamental of C Language s...
      • Solved MCQ on Fundamental of C Language set-7
      • Objective Questions on Ms Power Point in Ms Office...
      • Solved MCQ on Ms PowerPoint in Ms Office set-1
      • Interview Questions on Microsoft Excel with Answer...
      • Objective Questions on Microsoft Excel with Answer...
      • MCQ on Microsoft Excel in Ms Office with Answer set-4
      • MCQ Questions on Microsoft Excel in Ms Office set-3
      • Objective Questions on Ms Excel in Ms Office set-2
      • Solved MCQ on Microsoft Excel in Ms Office set-1
      • Objective Questions on Microsoft Word set-10
      • Solved Interview Questions on Ms Word set-9
      • Interview Questions on Microsoft Word set-8
      • MCQ Questions and Answers on Ms Word set-7
      • Microsoft Word MCQ Questions with Answer set-5
      • MCQ Questions on Ms Word with Answer set-4
      • Solved MCQ Questions on Microsoft Word set-3
      • Solved Objective Questions on Microsoft Word set-2
      • MCQ on Computer Fundamental with Solution set-16
      • MCQ Questions on Computer Fundamental set-15
      • Computer Fundamental Interview Questions set-14
      • Interview Questions on Computer Basis set-13
      • MCQ Questions on Computer Fundamentals set-12
      • Computer Fundamental Quiz with Answer set-11
      • Computer Fundamental Questions and Answers set-10
      • Computer Basis MCQ Questions and Answers set-9
      • MCQ on Computer Fundamentals with Answers set-8
  • ►  2014 (77)
    • ►  December (31)
    • ►  November (4)
    • ►  September (4)
    • ►  August (11)
    • ►  July (8)
    • ►  June (2)
    • ►  May (2)
    • ►  April (2)
    • ►  March (2)
    • ►  February (7)
    • ►  January (4)
  • ►  2013 (132)
    • ►  December (11)
    • ►  November (6)
    • ►  October (4)
    • ►  September (6)
    • ►  August (16)
    • ►  July (9)
    • ►  June (9)
    • ►  May (12)
    • ►  April (13)
    • ►  March (23)
    • ►  February (6)
    • ►  January (17)
  • ►  2012 (59)
    • ►  December (15)
    • ►  November (20)
    • ►  October (21)
    • ►  September (3)

إنضم لنا

© 2017 أفكار جميع الحقوق محفوظة