Search Header Logo

Android Club Event-1

Authored by HABEEB RAHMAN

Other

University

Used 1+ times

Android Club Event-1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'super()' keyword do in Java?

Calls the parent class constructor

Calls the child class constructor.

Returns the parent calss object

Returns the child class object

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of an Android layout file?

MainActivity.java

AndroidManifest.xml

activity_main.xml

styles.xml

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Java, what is the difference between an abstract class and an interface?

An interface can have both abstract and non-abstract methods, while an abstract class can only have abstract methods

An abstract class can have both abstract and non-abstract methods, while an interface can only have abstract methods

An interface can have constructors, while an abstract class cannot

An abstract class cannot have access modifiers on its methods, while an interface can

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a 'List' and a 'Set' in Java?

A List can contain duplicate elements, while a Set cannot

A Set can contain duplicate elements, while a List cannot

A List is ordered, while a Set is unordered

A Set is ordered, while a List is unordered

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following Python code?

x = [1, 2, 3]

y = x

x = [0, 0, 0]

print(y[0])

0

1

2

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between match_parent and wrap_content in Android layouts?

match_parent fills the entire screen, while wrap_content only takes up as much space as needed

wrap_content fills the entire screen, while match_parent only takes up as much space as needed

match_parent and wrap_content are the same thing

match_parent and wrap_content only apply to TextViews

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following Python code?

x = [1, 2, 3, 4, 5]

print(x[1:4])

[1, 2, 3, 4]

[2, 3, 4]

[1, 2, 3]

[2, 3, 4, 5]

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?