0

programming languages Online Quiz - 15

Description: programming languages Online Quiz - 15
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

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

  1. 1

  2. 2

  3. 3

  4. 4


Correct Option: B

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

  1. 0

  2. 1

  3. 2

  4. 3


Correct Option: A

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


Correct Option: D

On Which Concept JAVA is Working?

  1. OOPS

  2. Structured

  3. Hiber

  4. None of Above


Correct Option: A

Java is used in Which Applications.

  1. Desktop & web Application

  2. Desktop

  3. Web Application

  4. Other


Correct Option: A

Java Is Robust Language?

  1. True

  2. False


Correct Option: A

Is Java Is Platform independent?

  1. True

  2. False


Correct Option: A

Can JAVA use the Polymorphism & Inheritance?

  1. True

  2. False


Correct Option: A

In JAVA, Delete Is Keyword?

  1. True

  2. False


Correct Option: B

What is Void In Public Static Void main()

  1. Access modifier

  2. Nothing

  3. Return Type

  4. None Of Above


Correct Option: C

can we use Hybrid Inheritance In Java.

  1. True

  2. False


Correct Option: A

What Is SuperClass In JAVA

  1. Parent Class

  2. Class

  3. Child Class

  4. None Of Above


Correct Option: A

What is Object??

  1. Instance of Class

  2. Static Variable

  3. Keyword

  4. None Of above


Correct Option: A

JAVA Runs on ........

  1. Windows

  2. MAC

  3. unix\Linux

  4. All of the Above


Correct Option: A

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.


Correct Option: B

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

  1. 4

  2. 5

  3. 6

  4. 7


Correct Option: A

Booleans are _______.

  1. True or False

  2. Single characters

  3. Text

  4. All numbers


Correct Option: A

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


Correct Option: C
- Hide questions