Debugging Round 1

Debugging Round 1

Assessment

Flashcard

Information Technology (IT)

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

25 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the purpose of self in Python classes?

Back

It refers to the current instance of the class

2.

FLASHCARD QUESTION

Front

How do you open a file named `data.txt` in read mode?

Back

open("data.txt", "r")

3.

FLASHCARD QUESTION

Front

What is the default value of a boolean variable in Java?

Back

false

4.

FLASHCARD QUESTION

Front

What is the correct syntax to declare an array in Java? Options: int[] arr = new int(5);, int arr = new int[5];, int[] arr = new int[5];, array arr = new array(5);

Back

int[] arr = new int[5];

5.

FLASHCARD QUESTION

Front

What will be the output of the following Java code?
String str = "Java";
System.out.println(str.charAt(2));

Back

v

6.

FLASHCARD QUESTION

Front

What does the final keyword do in Java?

Back

Prevents method overriding, prevents variable modification, prevents class inheritance.

7.

FLASHCARD QUESTION

Front

Which of the following is true about Python?
a) It is a compiled language
b) It is an interpreted language
c) It does not support OOP concepts
d) It cannot be used for web development

Back

It is an interpreted language

Create a free account and access millions of resources

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?