Search Header Logo

Accenture MCQ's

Authored by gayathri s

Computers

University

Used 1+ times

Accenture MCQ's
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

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?