Debugging Round 1

Debugging Round 1

Assessment

Flashcard

Information Technology (IT)

University

Hard

Created by

Quizizz 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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?