Ask Computer Engineering Expert

Ques 1: - Java language is also known as

(a) oki

(b) oak

(c) oop language

(d) class language

Ques 2: - who was the developer of java

(a) Dennis Richards

(b) Berningham

(c) James gosling

(d) Martin Richard

Ques 3: - which is the first web browser to run java applets

(a) Netscape Navigator

(b) Internet Explorer

(c) Mozilla 

(d) Hot Java

Ques 4: Full form of JVM is

(a) Java Virtual machine

(b) Java very machine

(c) James virtual machine

(d) Java vending machine

Ques 5: Which one of these lists contains only Java programming language keywords?

(a) class, if, void, long, Int, continue

(b) goto, instanceof, native, finally, default, throws

(c) try, virtual, throw, final, volatile, transient

(d) strictfp, constant, super, implements, do

Ques 6: Which one of the following will declare an array and initialize it with five numbers?

(a) Array a = new Array(5);

(b) int [] a = {23,22,21,20,19};

(c) int a [] = new int[5];

(d) int [5] array;

Ques 7: How characters are initialized in java

(a) character a=new character();

(b)character a="dio";

(c) char c='d';

(d) char c="ert";

Ques 8: How to declare true, false value in java

(a) boolean a=true;

(b) String a="true";

(c) Char a="true";

(d) Boolean a=true

Ques 9: Which is a valid declarations of a String?

(a) String s1 = "hi";

(b) String s2 = 'null';

(c) String s3 = (String) 'abc';

(d) String s4 = (String) '\ufeed';

Ques 10.what is the range of char

(a) -128 to 127

(b) -32786 to 32767

(c) 2^3 to 2^5

(d) 0 to 32767

Que11.You can run the Java language on a particular operating system if:

(a) it's a Microsoft Operating System

(b) a Java Virtual Machine exists for that operating system

(c) a compiler exists for that operating system

(d)all of the above

Que12.What is the main difference between the JRE and the JDK?

(a) JDK does not include virtual machine and JRE does not include the run time tools

(b) JDK does not include virtual machine but JRE does include the run time tools

(c) JRE does not include the run time tools whereas

(d) JDK provides the run time environment for java programs and JRE provides the virtual macine

Que13.which command is used to compile the java programs

a) javap

b) java

c) javac

d) javacomp

Que 14. The Java interpreter is used for the execution of the source code.

a) True

b) False

c) cannot say

d) NA

Que 15. What is the return type of program's main( ) method?

a) int

b) char

c) void

d) String

Que 16. What are different comments?

a) // -- single line comment

b) /* -- */ multiple line comment

c) /** -- */ documentation

d)all of the above

Que 17. Variables in java are

a)which cannot change value during execution of program

b)which can change value during execution of the program

c)memory is only once allocated

d)none of the above

Que 19. In order for a source code file, containing the public class Test, to successfully compile, which of the following must be true?

a) It must have a package statement

b) It must be named Test.java

c) It must import java.lang

d) It must declare a public class named Test

Que20.which code is generated after compilation of the java program

a) machine code

b) assembly code

c) byte code

d) high level code

Que21. Comparison/Logical operators are used for testing and magnitude.

a) True

b) False

c) cannot say

Que22. Is &&= a valid operator?

a) No

b) yes

c) cannot say

Que 23. Character literals are stored as unicode characters

a) True

b) False

c) cannot say

Que24. What are the values of x and y ?

x = 5; y = ++x;

a) x=5,y=6

b) x=6,y=5

c) x=5,y=5

d) x = 6; y = 6

Que25. The switch statement does not require a break.

a) True

b) False

c) cannot say

Que26. How can class be imported to a program?

a) using keyword import

b) using keyword class

c) directly

d) all of the above

Que27 .Which of the following statements can be used to describe a public method?

a) It is accessible to all other classes in the hierarchy.

b) It is accessible only to subclasses of its parent class

c) It represents the public interface of its class

d) The only way to gain access to this method is by calling one of the public class methods

Que.28 By default, all program import the java.lang package.

a) True

b) False

c) Cannot say

Que29. Which of the following is not a wrapper class?

a) String

b) Integer

c) Boolean

d) Character

Que30.== this is equal operator

a) true

b) false

c) cannot say

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92412376
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As