Search Header Logo

diff set 2 2023

Authored by Smiley Sunshine

Business

University

diff set 2 2023
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 By default, all the files in C++ are opened in _________ mode.

Binary

VTC

Text

ISCII

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following program?

interface Foo{ int x = 10;}

public class Test { 

    public static void main(String[] args) { 

        Foo.x = 20; 

        System.out.println(Foo.x); 

    }

}

 Prints 10

Prints 20

Compile Time Error

Runtime error because Foo.x is final.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements are true for inheritance in Java?

The “extend” keyword is used to extend a class in java.

You can extend multiple classes in java.

Private members of the superclass are accessible to the subclass

We can’t extend Final classes in java.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The major goal of inheritance in C++ is

 To facilitate the re usability of code

To extend the capabilities of a class

To facilitate the conversion of data types

To help modular programming

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Multi-level inheritance represents ____ relationship.

Parent-Child-Grandchild

 Parent-Child-Parent

 Parent-Child

Parent-Parent

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

 predict the logo

Burton

Tissot

Candillac

 Dr Pepper

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Predict the logo

Peter England

Tissot

Dr Pepper

fastrack

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?