FORMATIVE ASSESSMENT 2 OOPS

FORMATIVE ASSESSMENT 2 OOPS

Professional Development

15 Qs

quiz-placeholder

Similar activities

Mega Quizz 🎁

Mega Quizz 🎁

Professional Development

18 Qs

Java Programming Quiz #1

Java Programming Quiz #1

Professional Development

10 Qs

Computación básica - Conceptos básicos

Computación básica - Conceptos básicos

Professional Development

15 Qs

Datatypes and Flowcontrol

Datatypes and Flowcontrol

Professional Development

15 Qs

JavaScript

JavaScript

Professional Development

11 Qs

UAS Android

UAS Android

Professional Development

20 Qs

APP Unit3

APP Unit3

Professional Development

20 Qs

WCF Day9-Multithreading

WCF Day9-Multithreading

Professional Development

10 Qs

FORMATIVE ASSESSMENT 2 OOPS

FORMATIVE ASSESSMENT 2 OOPS

Assessment

Quiz

Computers

Professional Development

Easy

Created by

Kvalli Priyadharshini

Used 7+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

Analyze the following program and find the output of theprogram? public class Test { public static void main(String[] args) { System.out.println(Math.min(Double.MIN_VALUE,0.0d)); } }
0
0.0
0.0D
0.0d

2.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

import java.io.*; class files { public static void main(String args[]) { File obj = new File("/java/system"); System.out.print(obj.getName()); } }
java
system
java/system
/java/system

3.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

What will be the output of the following Java program if input given is “abc’def/’egh”? class Input_Output { public static void main(String args[]) throws IOException{ char c; BufferedReader obj = new BufferedReader(new InputStreamReader(System.in); do { c = (char) obj.read(); System.out.print(c); } while(c!='\''); } }
abc’
abcdef/’
abc’def/’egh
abcqfghq

4.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

What is synchronization in reference to a thread?
It’s a process of handling situations when two or more threads need access to a shared resource
It’s a process by which many thread are able to access same shared resource simultaneously
It’s a process by which a method is able to access many different threads simultaneously
It’s a method that allow too many threads to access any information require

5.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

Which of these method is used to explicitly set the priority of a thread?
set()
make()
setPriority()
makePriority()

6.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

Which of these method waits for the thread to terminate?
sleep()
isAlive()
join()
stop()

7.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

What is the default value of priority variable MIN_PRIORITY AND MAX_PRIORITY?
0 & 256
0 & 1
1 & 10
1 & 256

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?