0

programming languages Online Quiz - 135

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

All methods in an abstract class must be declared abstract

  1. True

  2. False


Correct Option: B

A catch can have comma separated multiple arguments

  1. True

  2. False


Correct Option: A
Explanation:

To solve this question, the user needs to know the basic syntax and rules of defining a function in computer programming.

In Python, a catch (or a function) can have comma-separated multiple arguments. These arguments can be used to pass values or variables to the function to perform some operation.

Therefore, the correct answer is:

The Answer is: A) True

The overriding method cant have a more restrictive access modifier than the method being overridden.

  1. True

  2. False


Correct Option: A

The method which is marked as final can be overridden.

  1. True

  2. False


Correct Option: B

The method which is marked as static can not be overridden.

  1. True

  2. False


Correct Option: A

The access level for overriding method can be less restrictive than the overridden method.

  1. True

  2. False


Correct Option: A

Argument List of overriding method can be different

  1. True

  2. False


Correct Option: A

Constructor can be overloaded

  1. True

  2. False


Correct Option: A

If method is not inherited then it is not possible to override it

  1. True

  2. False


Correct Option: A

Contrustor can have any return type

  1. True

  2. False


Correct Option: A

Reference variables are immutable while String objects are not

  1. True

  2. False


Correct Option: A

equal() method is used to compare the primitive variables

  1. True

  2. False


Correct Option: A

Below expression is valid While(int x==2)

  1. True

  2. False


Correct Option: A

The only type that a switch can evaluate is the primitive int

  1. True

  2. False


Correct Option: A

For any reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true

  1. True

  2. False


Correct Option: A

Collection and Collections refer to same type of interface

  1. True

  2. False


Correct Option: A

The + operator in JAVA can't be overloaded.

  1. True

  2. False


Correct Option: B

Relational operators always result in a integer value.

  1. True

  2. False


Correct Option: B

Java has six relational operators in that two are also called as equality operators.

  1. True

  2. False


Correct Option: A
- Hide questions