Android Club Event-1

Android Club Event-1

University

20 Qs

quiz-placeholder

Similar activities

CodeMavarick

CodeMavarick

University

20 Qs

Konsep dasar Struktur Data

Konsep dasar Struktur Data

University

20 Qs

Golang Basics 2

Golang Basics 2

University

15 Qs

Round 3

Round 3

University

20 Qs

Java

Java

University

15 Qs

Round 1 - OTH

Round 1 - OTH

University

20 Qs

Season 2 #Spaic Python Weekly Quiz

Season 2 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

 Quiz-4: Function & Array

Quiz-4: Function & Array

University

15 Qs

Android Club Event-1

Android Club Event-1

Assessment

Quiz

Other

University

Hard

Created by

HABEEB RAHMAN

Used 1+ times

FREE Resource

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]

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?