0
Alien head

programming languages Online Quiz - 15

Description: programming languages Online Quiz - 15
Number of Questions: 20
Created by:
Tags: programming languages

If you want your conditional to depend on two conditions BOTH being true, what is the proper notation to put between the two Boolean statements ?

  1. &

  2. &&

  3. ||

Answer: 2

What will be the value of “num” after the following statements? int num; num = (5+4); num = num / 9; num = 12;

  1. 0

  2. 1

  3. 12

  4. 9

Answer: 3

Booleans are _______.

  1. True or False

  2. Single characters

  3. Text

  4. All numbers

Answer: 1

The following statements make “length” be what number ? int length; length = 4; length ++;

  1. 4

  2. 5

  3. 6

  4. 7

Answer: 1

What's the difference between an Applet and an application ?

  1. An application is only available on Windows

  2. Applets can paint words, applications cannot.

  3. Applets are run over the web.

  4. None of the above.

Answer: 2

JAVA Runs on ........

  1. Windows

  2. MAC

  3. unix\Linux

  4. All of the Above

Answer: 1

What is Object??

  1. Instance of Class

  2. Static Variable

  3. Keyword

  4. None Of above

Answer: 1

What Is SuperClass In JAVA

  1. Parent Class

  2. Class

  3. Child Class

  4. None Of Above

Answer: 1

can we use Hybrid Inheritance In Java.

  1. True

  2. False

Answer: 1

What is Void In Public Static Void main()

  1. Access modifier

  2. Nothing

  3. Return Type

  4. None Of Above

Answer: 3

In JAVA, Delete Is Keyword?

  1. True

  2. False

Answer: 2

Can JAVA use the Polymorphism & Inheritance?

  1. True

  2. False

Answer: 1

Is Java Is Platform independent?

  1. True

  2. False

Answer: 1

Java Is Robust Language?

  1. True

  2. False

Answer: 1

Java is used in Which Applications.

  1. Desktop & web Application

  2. Desktop

  3. Web Application

  4. Other

Answer: 1

On Which Concept JAVA is Working?

  1. OOPS

  2. Structured

  3. Hiber

  4. None of Above

Answer: 1

Read this piece of code carefully if("String".toString() == "String") System.out.println("Equal"); else System.out.println("Not Equal");Answers

    1. the code will compile an print “Equal”.
    1. the code will compile an print “Not Equal”.
    1. the code will cause a compiler error.
  1. None of Above

Answer: 4

x=strcomp("abc","abc") x=????

  1. 0

  2. 1

  3. 2

  4. 3

Answer: 1

x=space(2) y=Len(x) y=????

  1. 1

  2. 2

  3. 3

  4. 4

Answer: 2

x=InStrRev("abc","cba") x=???

  1. 0

  2. 1

  3. true

  4. false

Answer: 1
+ View questions