Accenture MCQ's

Accenture MCQ's

University

20 Qs

quiz-placeholder

Similar activities

Day 9 - ONLINE TEST - PL03 PYTHON PROGRAMMING

Day 9 - ONLINE TEST - PL03 PYTHON PROGRAMMING

University

20 Qs

Java Exception Handling

Java Exception Handling

University

15 Qs

Asesmen Formatif  Microsoft PowerPoint

Asesmen Formatif Microsoft PowerPoint

University

20 Qs

Quizilla

Quizilla

University

20 Qs

Evaluasi Ms.Word

Evaluasi Ms.Word

University

20 Qs

Templates,Exceptions,Inheritance in C++ Quiz

Templates,Exceptions,Inheritance in C++ Quiz

University

20 Qs

Java Quiz

Java Quiz

University

25 Qs

Eplus Exam 2

Eplus Exam 2

University

20 Qs

Accenture MCQ's

Accenture MCQ's

Assessment

Quiz

Computers

University

Hard

Created by

gayathri s

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the program?
TreeSet map = new TreeSet();
map.add(“one”);
map.add(“two”);
map.add(“three”);
map.add(“four”);
map.add(“one”);
Iterator it = map.iterator();
while (it.hasNext())
{ System.out.print(it.next() + “”); }

one two three four

four three two one

four one three two

one two three four one

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following program?
Class MyFirst { public static void main (String[] args) throws InterruptedException {
Thread f = new Thread(); f.start();
System.out.print("A");
f.wait(1000);
System.out.print("B");
}}

It prints A and B with a 1000 seconds delay between them

) It only prints A and exits

It only prints B and exists

A will be printed, and then an exception is thrown

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following program?
class Bike{ int speedlimit = 150; }
class Honda3 extends Bike{int speedlimit = 90;
public static void main(String args[]){
Bike obj = new Honda3();
System.out.println(obj.speedlimit); } }

150

90

Compilation error

0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following program?
public class TestExceptionPropagation {
void m()
{
int a=5/0;
}
void n()
{
m(); }
void p()
{
try {
n(); }
catch(Exception e)
{System.out.println("exception handled"); }
}
public static void main(String args[]) {
TestExceptionPropagation obj = new TestExceptionPropagation();
obj.p();
System.out.println("normal flow"); } }

Exception handled

normal flow

Exception handled normal flow

Compilation fails

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following integer will be returned from the function for input x = 10 & y = 7 in the givenpseudo code?
Function (input x, input y)
If x < y
Then return function(y, x)
Else If y ! = 0
Then return (x + function(x, y – 1))
Else return 0
End If End Function

28

70

55

50

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will you use to include a .xls file in an MS-PowerPoint presentation?

Share Option

Embed Object

Insert Table

PowerPoint does not support this application

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The smallest unit in a digital system is

Bit

Byte

Character

KiloByte

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?