Accenture Sample Placement Paper & Questions
Preparing for the Accenture exam, a standardized assessment conducted by Accenture requires a thorough understanding of the test format, typical questions, and strategic preparation.
Scroll down to practice the latest Accenture Placement Paper & Questions.
Accenture Placement Questions - Sample Question Paper
76.
76. What will be the output of the given function if the value 98765 is passed?
Function check(input num)
If (num % 10 == 0)
Write "divisible by 10"
Else
Write "not divisible by 10"
End if
End function
divisible by 10
not divisible by 10
divisible by 4
not divisible by 4
77.
77. Determine the output of the following pseudocode
Declare Function fun (integer pointer *p);
Start
lnteger p
Set p=5
write p
fun(&p)
write p
End
Function fun (integer pointer *n)
Start function
*n=*n + 10
End function
5, 5
5, 15
15, 5
15, 15
78.
78. What will be the output of the following pseudocode?
Declare Function divideByThree (integer *num);
Start
Integer num
Set num = 27
divideByThree(&num)
Write num
End
Function divideByThree (integer *n)
Start function
*n = *n / 3
End function
9
27
3
6
79.
79. Read n
Set factorial to 1
While n > 0
Set factorial to factorial * n
Set n to n - 1
Write factorial
What will be the output of the above pseudocode if the user enters the value of n as 5?
5
10
15
120
80.
80. Read num
Set sum to 0
While num > 0
Set digit to num mod 10
Set sum to sum + digit
Set num to num / 10
Write sum
What will be the output of the above pseudocode if the user enters the value of num as 457?
7
13
16
457
81.
81. Read n
Set fibonacci to 0
Set prev to 0
Set curr to 1
While n > 0
Set temp to curr
Set curr to prev + curr
Set prev to temp
Set n to n - 1
Write curr
What will be the output of the above pseudocode if the user enters the value of n as 7?
7
13
21
34
82.
82. What will be the output of the following pseudocode?
Declare Function addOne (integer *num);
Start
Integer num
Set num = 10
addOne(&num)
Write num
End
Function addOne (integer *n)
Start function
*n = *n + 1
End function
9
10
11
12
83.
83. What will be the output of the following pseudocode?
Declare Function square (integer *num);
Start
Integer num
Set num = 4
square(&num)
Write num
End
Function square (integer *n)
Start function
*n = *n * *n
End function
2
16
8
64
84.
84. What will be the output of the given function if the value 123 is passed?
Function check(input num)
If (num % 3 == 0)
Write "divisible by 3"
Else
Write "not divisible by 3"
End if
End function
divisible by 3
not divisible by 3
divisible by 5
not divisible by 5
85.
85. What will be the output of the following pseudocode?
Integer a, b, c
Set a = 7, b = 3, c = 5
if (a + b > c)
a = a - b
Else
b = b + c
End if
c = a * b - c
Print c
-9
-8
7
-6
86.
86. What will be the output of the following pseudocode?
Integer a, b, c
Set a = 12, b = 4, c = 6
if (a % b == 0)
a = a / b
Else
b = b / c
End if
c = a + b + c
Print c
16
18
22
13
87.
87. What will be the output of the following pseudocode for a = 10, b = 4?
Integer myFunction(Integer a, Integer b)
Integer c
Set c = 3
b = b % c
a = a % c
return a - b
End function myFunction()
0
1
2
3
88.
88. What will be the output of the following pseudocode?
Integer fun(Integer a, Integer b)
if ((a-b) > (b&a) && (a+b) > (b^a))
a = b + 3
b = a + 2
b = (b+2) + b
return fun(b, b) + fun(a, b)
End if
return b
Compilation error
Runtime error
Output depends on the input values of 'a' and 'b'
20
89.
89. What will be the output of the following pseudocode?
Integer p, q, r
Set p = 5, q = 8, r = 10
for (each r from 4 to 5)
if ((1&r) < p)
Jump out of the loop
End if
q = (r + p) + r
p = p ^ r
End for
Print p + q
Compilation error
Runtime error
35
26
90.
90. What will be the output of the following pseudocode for a = 2 and b = 7?
Integer fun(Integer a, Integer b)
if ((a - 2) < (b & 4) && b > 5)
b = 2 + b + b
a = 3 + a + a
b = b + 2
return fun(a + b, b) - b
End if
return b + 1
Compilation error
Runtime error
Output depends on the input values of 'a' and 'b'
13
Frequently Asked QuestionsFAQ
Are the provided sample questions from previous exams?
No, the provided sample questions are not from previous exams but closely resemble the Accenture exam pattern and are designed by expert teachers in the field.
How similar are the sample questions to the actual questions in the Accenture?
The sample questions are very similar to the actual questions in the Accenture as they are designed by experienced teachers in the industry.
How regularly are Accenture sample question papers updated to align with the current exam pattern?
The Accenture sample question papers are frequently updated to align with the current exam pattern.
What is the difficulty level of the Accenture exam?
The difficulty level of the Accenture can range from moderate to challenging.
Is switching allowed between questions in a particular section?
Yes, candidates can switch between questions within a particular section during the Accenture.
Is there a negative marking in the Accenture exam?
There is no negative marking in the Accenture exam.
What will be the mode of the Accenture exam?
The Accenture is typically conducted online, allowing candidates to take the test from designated centers or remotely under monitored conditions.
How many coding questions are there in the Accenture exam?
There are 2 coding questions in the coding section of the Accenture exam.