Object oriented programming in java

Object oriented programming in java

University

13 Qs

quiz-placeholder

Similar activities

S3 What do you remember from S2?

S3 What do you remember from S2?

KG - University

18 Qs

OOPJ-E6

OOPJ-E6

University

10 Qs

AP Computer Science A Post Unit 2 Check

AP Computer Science A Post Unit 2 Check

10th Grade - University

18 Qs

Computer 10: Date and Time, String Manipulation Functions

Computer 10: Date and Time, String Manipulation Functions

7th Grade - University

15 Qs

Functions and String Manipulation

Functions and String Manipulation

University

14 Qs

PRG1 - Day 4 starter

PRG1 - Day 4 starter

University

8 Qs

Python Basics: Dictionaries and Strings

Python Basics: Dictionaries and Strings

University - Professional Development

10 Qs

SF Developer Group BD

SF Developer Group BD

University

10 Qs

Object oriented programming in java

Object oriented programming in java

Assessment

Quiz

Computers

University

Medium

Created by

Sawsan Ali

Used 4+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the focus of Chapter 3?

Logical programming

Functional programming

Object-oriented programming

Procedural programming

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is class abstraction?

Implementing interfaces in classes

Creating new classes from existing classes

Separation of class implementation from the use of a class

Combining data and methods into objects

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the wrapper classes in Java?

To handle exceptions in Java programs

To hide the implementation details of a class

To wrap primitive values into objects

To define abstract data types

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main difference between StringBuilder and String?

StringBuilder is a primitive data type while String is an object

StringBuilder is faster for string manipulation than String

StringBuilder is immutable while String is mutable

String is more memory-efficient than StringBuilder

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of BigInteger and BigDecimal classes?

To handle very large integers and high precision floating-point values

To perform mathematical operations on strings

To convert primitive types to wrapper classes

To manipulate arrays of characters

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the matches method in Java String class do?

Checks if two strings are equal

Replaces all occurrences of a substring in a string

Checks if a string matches a specific pattern

Splits a string into an array of substrings based on a delimiter

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of regular expressions in string manipulation?

To convert strings to numbers

To split strings into characters

To encrypt and decrypt strings

To define patterns for matching, replacing, and splitting strings

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?