
Accenture MCQ's
Authored by gayathri s
Computers
University
Used 1+ times

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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
18 questions
The Rise of Intelligent Machines
Quiz
•
8th Grade - University
20 questions
Skill Competition Quiz 2024
Quiz
•
10th Grade - University
18 questions
Строка CMD
Quiz
•
University
20 questions
Spreadsheet Fundamentals - Quiz2
Quiz
•
University
15 questions
Chapter 8 - Memory Management Strategies
Quiz
•
University
20 questions
Processing- The CPU Quiz
Quiz
•
10th Grade - University
15 questions
GK Quiz
Quiz
•
University
15 questions
Selenium Overview
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University