
Accenture MCQ's

Quiz
•
Computers
•
University
•
Hard
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
Similar Resources on Wayground
20 questions
Latihan soal Informatika Ecxel, Word , Power Point dan Pdf

Quiz
•
8th Grade - University
20 questions
Visualisasi data

Quiz
•
8th Grade - University
20 questions
Arquitectura de computadoras I

Quiz
•
University
16 questions
Linked List and Arrays in JAVA

Quiz
•
University
20 questions
Asesmen Awal Pemrograman

Quiz
•
10th Grade - University
20 questions
TALENT-NEXT-JAVA-QUIZ1

Quiz
•
University
15 questions
Quality Management Quiz

Quiz
•
University
18 questions
HTML,CSS,SCRIPT QUIZZ

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University