Back to Dumps Dashboard

Accenture Primer

Complete Subject Question Bank (Dumps)

Software Configuration Management#1

Which of the following options are valid for the relationship between the configuration objects?

A
A curved arrow indicates an interrelationship
B
A double-headed straight arrow indicates compositional relation
C
A curved arrow indicates a compositional relation
D
A double-headed straight arrow indicates an interrelationship
E
A curved arrow indicates a compositional relation.
F
A double-headed straight arrow indicates an interrelationship.

The source marks the correct answer as: A curved arrow indicates a compositional relation; A double-headed straight arrow indicates an interrelationship.

Software Configuration Management#2

Match the following facts about Version Management

A
Lock a file
B
Serialized changes to file.
C
When a member of the team wants his code to work in isolation
D
Create branches
E
If a file is changed and we want to roll back to the previous version
F
Automatic backup
G
If a file is changed and we want to roll back to the previous version - Automatic backup.
H
Lock a file - Serialized changes to file.
I
When a member of the team wants his code to work in isolation - Create branches.

The source marks the correct answer as: Lock a file → Serialized changes to file; When a member of the team wants his code to work in isolation → Create branches; If a file is changed and we want to roll back to the previous version → Automatic backup.

Software Configuration Management#3

Version Control allows users to lock files so they can only be edited by one person at a time and track changes to files

A
True
B
False
C
Version control is a mechanism used to manage multiple versions of files

The source marks the correct answer as: True.

Software Configuration Management#4

Choose the missing steps involved in the Change Control Process in the correct order:

A
1. Identify and submit change request
B
2. ____________
C
3. Plan the change
D
4. Implement and test the change
E
5. Verify implementation of change
F
6. Close change request
G
Evaluate impacts of change request
H
Review stakeholder feedback
I
Analyze the cost of the proposed change
J
Collect impacts of change request

The source marks the correct answer as: Evaluate impacts of change request.

Software Configuration Management#5

Match the correct option The standard document where the requester fills the change in the change management process Change Request Form

A
Process that ensures that changes made are recorded and controlled Change Control Board
B
Who authenticates that the change proposed is valid Change Management
C
Process that ensures different versions of the project is managed Configuration Management
D
The document in which requester fills the change in the change management process - Change Request Form
E
Who authenticates that the change proposed is valid - Change Control Board
F
Process that ensures that changes made are recorded and controlled - Change Management
G
Process that ensures different versions of the project is managed - Configuration Management

The source marks the correct answer as: The standard document where the requester fills the change in the change management process → Change Request Form; Process that ensures that changes made are recorded and controlled → Change Management; Who authenticates that the change proposed is valid → Change Control Board; Process that ensures different versions of the project is managed → Configuration Management.

Software Configuration Management#6

Which of the following describes the change history of an object?

A
Baseline
B
Check-out
C
Evolution graph
D
Review Graph
E
Evolution Graph describes the change history of an object

The source marks the correct answer as: Evolution graph.

Software Configuration Management#7

From the options identify the features that are part of the software configuration management

A
Version management
B
Synchronisation control
C
Support management
D
Concurrency control

The source marks the correct answer as: Version management; Concurrency control; Synchronisation control.

Software Configuration Management#8

_________ is a committee that makes decisions regarding whether or not proposed changes to a software project can be incorporated.

A
Modify Control Board
B
Updation Control Board
C
Decision Committee
D
Change Control Board

The source marks the correct answer as: Change Control Board.

Software Configuration Management#9

Version Management allows parallel concurrent development. State True or False.

A
False
B
True

The source marks the correct answer as: True.

Software Configuration Management#10

State true or false. Automated tools are available in the market, for managing change and versioning the software

A
TRUE
B
FALSE

The source marks the correct answer as: True.

Software Configuration Management#11

Software maintenance for the change of the platform is an example for --------- maintenance

A
Perfective
B
Preventive
C
Corrective
D
Adaptive

The source marks the correct answer as: Adaptive.

Software Configuration Management#12

In Software maintenance, changes are implemented by modifying existing components and adding new components to the system. State if True or False.

A
True
B
False
C
In maintenance, changes are implemented by modifying existing components and adding new components to the system

The source marks the correct answer as: True.

Software Configuration Management#13

In an online shopping application, during customer registration the customer was made to enter his city in a text box. As the site became popular for online shopping, the client came back to include autocomplete feature in the city field to improve user friendliness. What maintenance needs to be carried out in this scenario?

A
Preventive
B
Corrective
C
Adaptive
D
Perfective

The source marks the correct answer as: Perfective.

Software Configuration Management#14

Client has developed an application that allows each of their customers to store 2TB of data. As the number of Customers are increasing client feels the storage space has to be increased for smooth operations to its customers. What type of maintanence is this?

A
Perfective Maintanence
B
Corrective Maintanence
C
Adaptive Maintanence
D
Preventive Maintanence

The source marks the correct answer as: Preventive Maintanence.

Software Configuration Management#15

Client wanted to add a new feature to his existing application "Discount Offers" for all the existing customers. Whenever a new product comes to the supermarket, their customer's should be intimated with the week day offer. What kind of maintenance is this?

A
Corrective Maintanence
B
Adaptive Maintanence
C
Preventive Maintanence
D
Perfective Maintanence
E
Perfective maintenance involves making functional enhancements to the system

The source marks the correct answer as: Perfective Maintanence.

Software Configuration Management#16

Any changes done to the software during the operational phase of the software before project wind up is called as maintenance. State if True or False.

A
TRUE
B
FALSE
C
Any change that is made to the software after it is deployed is known as maintenance

The source marks the correct answer as: False.

Software Configuration Management#17

Y2K problem is an example for ------------- maintenance

A
Corrective
B
Adaptive
C
Perfective
D
Preventive
E
Preventive maintenance is the changes made to the system to prevent occurrence of errors in future

The source marks the correct answer as: Preventive.

Looping statements#18

Match the appropriate opening and closing blocks in looping statements.

A
WHILE END WHILE
B
IF END IF
C
BEGIN END
D
FOR END FOR

The source marks the correct answer as: WHILE → END WHILE; IF → END IF; BEGIN → END; FOR → END FOR.

Looping statements#19

Which looping logic is exit controlled?

A
While loop
B
For loop
C
do-while loop

The source marks the correct answer as: do-while loop.

Looping statements#20
Logic Block
1
BEGIN
A
DECLARE variables i, factorial
B
SET factorial <-- 1
C
FOR i<--1 to 5 do
D
factorial <--factorial * i
E
i <-- i+1
F
END FOR
G
PRINT factorial
H
END
I
Which of the following statement should be inserted to complete the above pseudo code for finding factorial of 5 numbers.
J
The logic for finding a factorial is factorial * index

The question asks which statement should be inserted to complete the factorial pseudocode. Option 9 hints 'The logic for finding a factorial is factorial * index', pointing to option 3: 'factorial <-- factorial * i', which is the core computation statement inside the FOR loop that multiplies the running factorial by the current index i.

Looping statements#21

Consider the output: “0, 2, 4, 6, 8 ,10 ,12, 16” Which of the below given pseudo code snippet gives the above output?

A
BEGIN
B
DECLARE number, count, even
C
SET count <-- 8, number <-- 0, even <-- 0
D
WHILE number<count
E
PRINT even
F
SET even <-- even + 2
G
END WHILE
H
number <-- number + 1
I
PRINT even
J
END
K
BEGIN
L
DECLARE number, count, even
M
SET count <-- 8, number <-- 0, even <-- 0
N
WHILE number<count
O
PRINT even
P
SET even <-- even + 2
Q
Number <-- number+ 2
R
END WHILE
S
END
T
BEGIN
U
DECLARE number, count, even
V
SET count <-- 8, number <-- 0, even <-- 0
W
WHILE number<count
X
PRINT even
Y
SET even <-- even + 1
Z
Number <-- number+ 1
[
END WHILE
\
PRINT even
]
END
^
BEGIN
_
DECLARE number, count, even
`
SET count <-- 16, number <-- 0, even <-- 0
a
WHILE number<count
b
PRINT even
c
SET even <-- even + 2
d
Number <-- number+ 1
e
END WHILE
f
PRINT even
g
END

The source marks the correct answer as: BEGIN DECLARE number, count, even SET count <-- 8, number <-- 0, even <-- 0 WHILE number<count PRINT even SET even <-- even + 2 number <-- number + 1 END WHILE.

Looping statements#22

Predict the output of the given flowchart.

A
2
B
1
C
1
D
2
E
2
F
2
G
1
H
1
I
Print statement is executed first, and prints count as 1. Count is incremented to 1 and the condition will be checked. When it becomes false, the final
J
count value 2 gets printed

The 8 options before the explanation form 4 paired answer choices: (0,1)='2,1'; (2,3)='1,2'; (4,5)='2,2'; (6,7)='1,1'. The embedded explanation states the print executes first printing count as 1, then count is incremented, and when the condition becomes false the final value 2 is printed. Output is '1' then '2', matching options at indices 2 and 3.

Looping statements#23

Iteration/looping is a repetition of___________

A
single statement
B
variables
C
operation
D
Block of statements

The source marks the correct answer as: single statement; Block of statements.

Looping statements#24

Do-while looping statement is almost same as______

A
if-else
B
While loop
C
Nested if
D
for loop

The source marks the correct answer as: While loop.

Looping statements#25
Logic Block
1
What is true about FOR LOOP?
A
For loop executes the statement without checking the condition
B
For loop cannot be nested
C
In for loop, the exact number of iterations is known
D
For loop executes the statements at least once even if the condition is false

The source marks the correct answer as: In for loop, the exact number of iterations is known.

Looping statements#26

Jack wants to book flight tickets in Feather-Airways’ online portal for his family of five. Passenger details like name, age, gender etc. should be entered for each member. The same process of getting details continues for all the five members. The above scenario is a good example for which looping statements?

A
Do-while loop
B
For loop
C
While loop

The source marks the correct answer as: For loop.

Looping statements#27
Logic Block
1
What will be the output for WHILE loop? BEGIN DECLARE number SET number <-- 30 WHILE number>0 number <-- number-4 END WHILE PRINT number END
A
-2
B
0
C
4
D
2

The source marks the correct answer as: -2.

Looping statements#28
Logic Block
1
What is the output for FOR-loop snippet? FOR i <--1 to 15 PRINT i i <-- i+3 END FOR
A
4 7 10 13 16
B
1 4 7 10 13
C
1 4 7 10 13 15 16
D
4 7 10 13

The source marks the correct answer as: 1 4 7 10 13.

Looping statements#29

Which of the following symbols is inappropriate in building the flowchart pertaining to sequential flow of program?

A
rectangle
B
oval
C
parallelogram
D
diamond

The source marks the correct answer as: diamond.

Looping statements#30

The statement / statements within the loop must get executed at least once except for do-while statement. State True/False.

A
True
B
False
C
execute. Whereas do-while executes the statement at least once before checking the condition

The source marks the correct answer as: False.

Looping statements#31

Which of the following statements are true with respect to looping statements?

A
initial condition must be applied before the loop begins to execute
B
conditional statements are not allowed within a loop
C
A loop should run infinite number of times
D
the condition under which the iterative process should get terminated must be given
E
looping statement can be nested and can have decision making statements

The source marks the correct answer as: initial condition must be applied before the loop begins to execute; the condition under which the iterative process should get terminated must be given.

Looping statements#32

Which of the following statements are true?

A
The operand in an expression must always be a constant.
B
The operand in an expression must always be a variable.
C
An operand is a mandatory element in an expression.
D
The operand in an expression can be a variable or a constant.

An operand in an expression can be a variable, a constant, or a function call — it is not restricted to one type. Option 0 ('always a constant') and option 1 ('always a variable') are false. Option 3 ('can be a variable or a constant') is the correct and complete statement.

Looping statements#33

Consider you have a Rubik cube with different colors in each face. To solve this cube, you will continue to rotate the sides until you reach same colors in all faces. This is a real time example for which looping statements?

A
While
B
Do-while
C
For
D
Nested-if
E
colours in all faces

The source marks the correct answer as: While.

Looping statements#34

Identify the logic which suits the flowchart?

A
Do-while loop
B
for loop
C
nested loop
D
While loop
E
the condition becomes false.

The source marks the correct answer as: While loop.

Looping statements#35

It's Halloween. You go from house to house, tricking or treating. You get 2 candies from each house that you go to. You must return home once you collect 100 candies. Can you arrange the sequence for this loop activity.

A
1 BEGIN
B
2 SET candy count <- 0
C
3 END WHILE
D
4 DECLARE candy_count
E
5 WHILE candy_count<=100
F
6 candy count <- candy_count+2
G
7 END
H
1423657
I
1 4 5 2 3 6 7
J
1 4 2 5 6 3 7
K
1243657

The correct sequence is: 1-BEGIN, 4-DECLARE candy_count, 2-SET candy_count<-0, 5-WHILE candy_count<=100, 6-candy_count+2, 3-END WHILE, 7-END, i.e. '1425637'. The source explanation confirms '1425637'. Option index 9 ('1 4 2 5 6 3 7') matches this order: declare before initialise, initialise before loop, update inside loop, end while, then END.

Looping statements#36

Looping statements are also called ____________

A
Iteration logic
B
Selection logic
C
Program logic
D
Sequence logic

The source marks the correct answer as: Iteration logic.

Looping statements#37

Choose the pseudocode for the below problem statement.

A
Problem Statement :
B
Vehicle Registration
C
Mr.William buys a new Audi car. During the vehicle registration, he desires a fancy number in such a way that both the number and its
D
reverse are the same.
E
Generate an algorithm to find that fancy number.
F
Sample Input :
G
1221
H
Sample Output :
I
Number is Fancy
J
BEGIN
K
DECLARE variables number, reverse, rem, temp
L
READ number
M
SET reverse = 0, temp = number
N
WHILE number !=0 DO
O
rem = number%10
P
reverse = reverse*10 + rem
Q
number = number/10
R
END WHILE
S
IF temp == reverse THEN
T
PRINT "Number is Not Fancy"
U
ELSE
V
PRINT "Number is Fancy"
W
END IF
X
END
Y
BEGIN
Z
DECLARE variables number, reverse, rem, temp
[
READ number
\
SET reverse = 0, temp = number
]
WHILE number !=0 DO
^
number = number/10
_
rem = number%10
`
reverse = reverse*10 + rem
a
END WHILE
b
IF temp == reverse THEN
c
PRINT "Number is Fancy"
d
ELSE
e
PRINT "Number is Not Fancy"
f
END IF
g
END
h
BEGIN
i
DECLARE variables number, reverse, rem, temp
j
READ number
k
WHILE number !=0 DO
l
SET reverse = 0, temp = number
m
rem = number%10
n
reverse = reverse*10 + rem
o
number = number/10
p
END WHILE
q
IF temp == reverse THEN
r
ELSE
s
PRINT "Number is Fancy"
t
PRINT "Number is Not Fancy"
u
END IF
v
END
w
BEGIN
x
DECLARE variables number, reverse, rem, temp
y
READ number
z
SET reverse = 0, temp = number
{
WHILE number !=0 DO
|
rem = number%10
}
reverse = reverse*10 + rem
~
number = number/10

END WHILE
€
IF temp == reverse THEN

PRINT "Number is Fancy"
‚
ELSE
ƒ
PRINT "Number is Not Fancy"
„
END IF
…
END

Block D (indices 54-68) is the correct palindrome-check pseudocode. It correctly initialises reverse=0 and temp=number BEFORE the loop, then extracts digits with rem=number%10, builds reverse, and divides number by 10. After the loop it correctly prints 'Number is Fancy' when temp==reverse and 'Number is Not Fancy' otherwise. Block A inverts the print messages; Block B divides before extracting rem (wrong algorithm); Block C initialises inside the loop (resets each iteration) and has a missing PRINT in the THEN branch.

Arrays#38

A mathematical quiz context happened in a school and the scores are stored in an array named quizmark. The coordinating person wants to copy the quiz score into another array named copyquizmark. Which of these options will do that?

A
FOR index <- 0 to n
B
copyquizmark[index] <- quizmark[index]
C
index <- index+1
D
END FOR
E
copyquizmark[n] <- quizmark[n]
F
We cannot copy the values from one array to another.
G
copyquizmark <- quizmark
H
Using for loop helps to copy the elements from one array to another array

The source marks the correct answer as: FOR index <- 0 to n copyquizmark[index] <- quizmark[index] index <- index+1 END FOR.

Arrays#39
Logic Block
1
Assume, number[100] <- 99. How many elements can be stored inside the array variable number?
A
100
B
99
C
Infinite number of elements
D
The statement gives no clue about the number of elements that can be stored
E
From the given statement, it is predictable that number 99 is assigned to 101 th position of the array. But, there is no clue about the total
F
size of the array and the number of elements that can be stored

The source marks the correct answer as: The statement gives no clue about the number of elements that can be stored.

Arrays#40

Map the scenario to its appropriate array type

A
Matrix multiplication 2D ARRAY
B
To create a list of all prime numbers below 100 1D ARRAY

The source marks the correct answer as: Map the scenario to its appropriate array type Matrix multiplication [2D ARRAY ].

Arrays#41

Which of the following are False with respect to the manipulation of arrays?

A
An array can store heterogeneous data
B
It is possible to increase the size of the array
C
An array can store homogeneous data.
D
Elements of array are stored in contiguous memory
E
An array can store homogeneous data. Elements of array are stored in contiguous locations and it is not possible to increase the array
F
size

The source marks the correct answer as: It is possible to increase the size of the array; An array can store heterogeneous data.

Arrays#42

Negative elements can be placed inside an array. State true / false

A
True
B
False

The source marks the correct answer as: True.

Arrays#43

The names of all associates undergoing training are stored in an array named associate_name[50]. The 5th associates’ name is retrieved as

A
associate_name[4]
B
associate_name[6]
C
associate_name[5]
D
associate_name[3+1]
E
since array index starts from 0, the fifth element is accessed is accessed by array[4]. It is possible to perform arithmetic operation in an
F
array position

The source marks the correct answer as: associate_name[4]; associate_name[3+1].

Arrays#44

Information about ___________ need not be specified when declaring an array

A
the elements to be stored in the array
B
the index of the array
C
the data type of the array
D
the name of the array
E
It is not mandatory to specify the elements to be stored in the array when declaring an array

The source marks the correct answer as: the elements to be stored in the array.

Arrays#45

It is not possible to do a search operation in an array that is not sorted. State True/False.

A
True
B
False
C
It is not mandatory to sort an array when searching an element randomly. It can be either sorted or unsorted

The source marks the correct answer as: False.

Arrays#46

Random access is not possible in an array. State True/False

A
True
B
False
C
Elements in an array is stored sequentially and contiguously, and can be accessed in a random manner.

The source marks the correct answer as: False.

Arrays#47

Assume you have an array named numbers of size 10. Which of the assignment is valid?

A
numbers[10] <- 11
B
numbers[9] <- 5
C
numbers[0] <- 10
D
numbers[11] <- 6
E
array index starts from 0 to 9, for 10 elements. Assigning values to numbers[10],numbers[11] is not valid, since the index exceeds the
F
size of array resulting in unpredictable results

The source marks the correct answer as: numbers[0] <- 10; numbers[9] <- 5.

Arrays#48

Which of the following statements is correct with respect to arrays?

A
Elements in an array are arranged contiguously.
B
Elements in an array are arranged in descending order by default
C
Elements in an array are arranged in ascending order by default
D
Elements in an array are arranged in a contiguous manner and are of fixed size

The source marks the correct answer as: Elements in an array are arranged contiguously.

Arrays#49

Consider you buy a laptop. You want to store the details of that laptop such as price, model_name,model_number, warranty_period into a single array named details[10]. Is ths possible?

A
No
B
Yes
C
No, It is not possible. An array can store data of same type. since model_name consists of letters, model_no consists of number etc, it is
D
not possible to the details into a single array

The source marks the correct answer as: No.

Arrays#50

Consider you want to compare the prices of redmi , sony, samsung phones in three online sites like amazon,flipkart,ebay. Which array type is best suitable to do this comparision?

A
one-dimensional array
B
three-dimensional arrays
C
two-dimensional arrays
D
To compare 3 mobile phones in 3 different online sites, 2-d arrays can be used.

The source marks the correct answer as: two-dimensional arrays.

Arrays#51

It is possible to traverse through an array from the first position to the last and not vice versa. State true or false.

A
True
B
False
C
an Array can be traversed from first to last and vice versa

The source marks the correct answer as: False.

Arrays#52

An Array consists of rows and columns is also called as________

A
one-dimensional array
B
Three dimensional array
C
Two-dimensional array
D
A matrix consists of rows and columns, also known as Two-dimensional arrays

The source marks the correct answer as: Two-dimensional array.

Arrays#53

Choose the correct Pseudo code to store names in an array and display a name.

A
BEGIN
B
INPUT name
C
DECLARE name [20]
D
END
E
PRINT name
F
BEGIN
G
INPUT name
H
DECLARE name [20]
I
PRINT name
J
END
K
BEGIN
L
INPUT name
M
PRINT name
N
DECLARE name [20]
O
END
P
BEGIN
Q
DECLARE name [20]
R
INPUT name
S
PRINT name
T
END

Correct pseudocode must DECLARE the array before use, then INPUT data into it, then PRINT. Block D (indices 15-19) follows this order: BEGIN, DECLARE name[20], INPUT name, PRINT name, END. Block A (0-4) has END before PRINT; Block B (5-9) declares after INPUT; Block C (10-14) prints before declaring.

Arrays#54

A farmer has 17 sheep and all but nine die. How many are left?

A
8
B
17
C
9

The source marks the correct answer as: 9.

Arrays#55

In a year, there are 12 months. Seven months have 31 days. How many months have 28 days?

A
12
B
6
C
5

The source marks the correct answer as: 12.

Arrays#56

What is the next letter in the following sequence? J,F, M, A, M, J, J, A, __.

A
N
B
O
C
S
D
The sequence is first letter of the months of the year. September is the next in the sequence.

The source marks the correct answer as: S.

Arrays#57

Select the appropriate code snippet for the given problem statement provided as pseudocode.

A
Problem Statement :
B
Dinner Plan
C
Five friends plan to go out for dinner. They plan to order equal number of dishes. Each row specifies individual cost. Find the total
D
amount each person needs to pay.
E
Assume the values for this matrix for 3 dishes are
F
12 23 18
G
45 32 60
H
42 39 23
I
54 42 60
J
25 84 30
K
The output will be
L
Amount to be paid by person 1 is 53
M
Amount to be paid by person 2 is 137
N
Amount to be paid by person 3 is 104
O
Amount to be paid by person 4 is 156
P
Amount to be paid by person 3 is 139
Q
Explanation : Output is the sum of each row
R
Code:
S
BEGIN
T
DECLARE variable arr[5][20], n, sum=0
U
___________________
V
FOR j IN 0 to n-1 DO
W
READ arr[i][j]
X
END FOR
Y
END FOR
Z
FOR i IN 0 TO 4 DO
[
SET sum = 0
\
FOR j IN 0 TO n-1 DO
]
sum = sum + arr[i][j]
^
END FOR
_
PRINT "Amount to be paid by person "+(i+1)+" is "+sum
`
END FOR
a
END
b
FOR i IN 0 to n DO
c
FOR i IN 0 to 5 DO
d
FOR i IN 0 to 4 DO
e
FOR i IN 0 to 3 DO

The source marks the correct answer as: FOR i IN 0 to 4 DO.

Arrays#58

Choose the correct pseudocode for the below problem statement.

A
Problem Statement :
B
Find Maximum value
C
Choose a pseudo code to find the maximum values in each row of a matrix. Assume it is a 3x3 matrix.
D
Explanation : Matrix will be with index
E
(0,0) (0,1) (0,2)
F
(1,0) (1,1) (1,2)
G
(2,0) (2,1) (2,2)
H
Assume the values for this matrix are
I
12 23 18
J
45 32 60
K
42 39 23
L
The output will be
M
Max value in row 1 is 23
N
Max value in row 2 is 60
O
Max value in row 3 is 42
P
BEGIN
Q
DECLARE variable arr[3][3]
R
FOR i IN 0 to 2 DO
S
FOR j IN 0 to 2 DO
T
READ arr[i][j]
U
END FOR
V
END FOR
W
SET max = arr[i][0]
X
FOR i IN 0 TO 2 DO
Y
FOR j IN 0 TO 2 DO
Z
IF arr[i][j]>max THEN
[
max = arr[i][j]
\
END IF
]
END FOR
^
PRINT "Max value in row "+(i+1)+" is "+max
_
END FOR
`
END
a
BEGIN
b
DECLARE variable arr[3][3]
c
FOR i IN 0 to 2 DO
d
FOR j IN 0 to 2 DO
e
READ arr[i][j]
f
END FOR
g
END FOR
h
FOR i IN 0 TO 2 DO
i
SET max = arr[i][0]
j
FOR j IN 0 TO 2 DO
k
IF arr[i][j]>max THEN
l
max = arr[i][j]
m
END IF
n
END FOR
o
END FOR
p
PRINT "Max value in row "+(i+1)+" is "+max
q
END
r
BEGIN
s
DECLARE variable arr[3][3]
t
FOR i IN 0 to 2 DO
u
FOR j IN 0 to 2 DO
v
READ arr[i][j]
w
END FOR
x
END FOR
y
FOR i IN 0 TO 2 DO
z
SET max = arr[i][0]
{
FOR j IN 0 TO 2 DO
|
IF arr[i][j]>max THEN
}
max = arr[i][j]
~
END IF

END FOR
€
PRINT "Max value in row "+(i+1)+" is "+max

END FOR
‚
END
ƒ
BEGIN
„
DECLARE variable arr[3][3]
…
FOR i IN 0 to 2 DO
†
FOR j IN 0 to 2 DO
‡
END FOR
ˆ
END FOR
‰
FOR i IN 0 TO 2 DO
Š
READ arr[i][j]
‹
SET max = arr[i][0]
Œ
FOR j IN 0 TO 2 DO

IF arr[i][j]>max THEN
Ž
max = arr[i][j]

END IF

END FOR
‘
PRINT "Max value in row "+(i+1)+" is "+max
’
END FOR
“
END

Block C (indices 49-65) is correct. It reads all values first (nested FOR), then for each row (outer FOR i) sets max=arr[i][0], traverses columns (inner FOR j) to find the maximum, then PRINTS the row maximum INSIDE the outer loop (after inner FOR ends, before END FOR i). Block B prints after both loops (only one output); Block A sets max outside the row loop; Block D has READ misplaced outside the inner loop.

Accenture-Primer-Dump#59

If you are asked to do a modular software design, which combination of coupling and cohesions should you use for designing the software?

A
High cohesion and high coupling
B
High cohesion and low coupling
C
Low cohesion and high coupling
D
Low cohesion and low coupling

Modular software design requires high cohesion (each module does one well-defined thing) and low coupling (modules are independent with minimal dependencies). High coupling makes modules tightly dependent, hindering modularity.

Accenture-Primer-Dump#60

Statement: For a logically cohesive module, there are some activities to be implemented. These activities are preferred from inside the module itself. Is the above given statement true? If not, choose the correct option to make it true.

A
The activities are selected from outside the module.
B
The activities are selected in a random manner.
C
The activities are selected in a sorted manner.
D
The given statement is true.

In a logically cohesive module, activities are grouped by logical similarity (e.g., all input operations). The activities to perform are selected from OUTSIDE the module by the calling code, not from inside the module itself. The given statement is therefore false, and option 0 corrects it.

Accenture-Primer-Dump#61

What kind of controlled structure is used when we don’t know the exact number of times a code needs to be executed?

A
switch
B
while
C
for
D
if-else

A 'while' loop is used when the exact number of iterations is unknown ahead of time — it continues as long as a condition is true. A 'for' loop is used when the iteration count is known; 'switch' and 'if-else' are selection structures, not iteration structures.

Accenture-Primer-Dump#62

Which of the given statements is true about XP?

A
XP narrows down towards a single project developed and numbered by a single team.
B
XP will not work in environment where the manager insists on complete documentation before the team begins to code
C
XP will work in the environment where programmers are separated geographically.
D
XP is best suited to work with systems that have scalability issues. 5.______________________testing is done by client in the real world environment.
E
Alpha
F
beta
G
system
H
gamma

Options 4-7 are noise from a merged question. For XP: option 1 is true — XP conflicts with environments that demand complete documentation before coding begins, as XP values working software over comprehensive documentation and relies on iterative, adaptive development. Options 2 and 3 are false (XP requires co-located teams and is not suited for large-scale or geographically distributed systems).

Accenture-Primer-Dump#63

Which two phases of feature driven development are repeated until no more feature exist?

A
Develop an overall model
B
Plan by feature
C
Design by feature
D
Build a feature list
E
Build by feature
F
b and c
G
c and e
H
b and e
I
d and b

In Feature Driven Development (FDD), the first three phases (Develop overall model, Build feature list, Plan by feature) are done once. Only 'Design by feature' and 'Build by feature' are repeated for each feature. Option 6 ('c and e') maps to Design by feature (c, index 2) and Build by feature (e, index 4), which are the two iterated phases.

Accenture-Primer-Dump#64
Logic Block
1
Predict the output What will be the output for the given code snippet startprogram public class Main { public static void main(String[] args) { try { System.out.println(4/0); try{ Int[] a={1,2,3}; System.out.println(a[3]); } catch(ArrayIndexOutOfBoundsException e) { System.out.println(“Out of bounds”); } }catch(ArthmeticException e){ System.out.println(“ArithmaticException : divide by 0”); } } } endprogram
A
out of bounds ArithmaticException : divide by 0
B
runtime error
C
out of bounds
D
ArithmaticException: divide by 0

The statement '4/0' in the outer try block immediately throws an ArithmeticException. Control jumps directly to the outer catch(ArithmeticException), so the inner try block (with the array access) is never reached. The output is only 'ArithmaticException: divide by 0'.

Accenture-Primer-Dump#65

Which of the following declarations will cause a compile time error? a.int[] scores = null;

A
int[] scores =new int[5];
B
String[] nameArray = new String[10];
C
String[] nameArray = (5,3,2);

Option 2, 'String[] nameArray = (5,3,2);', causes a compile-time error because array initializers must use curly braces '{5,3,2}' not parentheses. Options 0 and 1 are valid array declarations. The question includes 'a. int[] scores = null;' in the stem as another valid option.

Accenture-Primer-Dump#66

Arrow symbols in the flowchart is used to show the sequence of steps and the relationship among them. State true and false

A
True
B
False

True. Arrow symbols (flow lines) in a flowchart represent the direction of flow and show the sequence of steps and the relationships (decisions, loops) among them. This is a fundamental definition of flowchart notation.

Accenture-Primer-Dump#67

Information hiding is achieved through which OOP principle?

A
Inheritance
B
Encapsulation
C
Typing
D
Hierarchy

Encapsulation achieves information hiding by bundling data (fields) and methods together in a class and restricting direct access to an object's internal state through access modifiers (private, protected). Inheritance relates to reuse; Typing and Hierarchy are not the primary OOP principle for information hiding.

Accenture-Primer-Dump#68

In multibranch, the pipeline names should not contain___________.

A
spaces
B
special characters
C
numerics
D
variables

In Jenkins Multibranch Pipelines, pipeline (branch) names must not contain spaces, as spaces in names cause issues with URL encoding and pipeline job naming conventions. Special characters are also problematic, but 'spaces' is the primary restriction stated in the Accenture Primer curriculum.

Accenture-Primer-Dump#69

Which are the phases of CI/CD pipeline?

A
Source
B
Operate
C
Monitor
D
Deploy 13.__________is a conceptual framework where software is developed is iterations
E
Agile
F
prototyping
G
extreme programming
H
DSDM

Options 4-7 are noise from a merged question about iterative development frameworks (answer: Agile). For CI/CD pipeline phases, the standard phases are Source, Build, Test, and Deploy. From the given options, Source (index 0) and Deploy (index 3) are the definitive CI/CD pipeline phases. Operate and Monitor are DevOps operational phases that extend beyond the core CI/CD pipeline.

Accenture-Primer-Dump#70

Predict the output of the following statement. Select substr(“Yellow is A colour”,1,5) from dual;

A
Yellow
B
Yel
C
Yello
D
elow

In Oracle SQL, SUBSTR(string, start_position, length) uses 1-based indexing. SUBSTR('Yellow is A colour', 1, 5) starts at position 1 ('Y') and takes 5 characters, returning 'Yello'. 'Yellow' would require length 6; 'Yel' requires length 3; 'elow' would start at position 2.

Accenture-Primer-Dump#71

column header is referred as

A
domain
B
attribute
C
table
D
tuples

In relational database terminology, a column header (column name) is called an attribute. Tuples refer to rows, a domain is the set of allowed values for a column, and a table is the entire relation.

Accenture-Primer-Dump#72

At which level of testing the non-functional requirements are tested?

A
Unit testing
B
system testing
C
Integration testing
D
Acceptance testing

System testing verifies both functional and non-functional requirements (performance, security, reliability, scalability) of the complete integrated system. Unit and integration testing focus on functional correctness at module/component level; acceptance testing validates business requirements with end-users.

Accenture-Primer-Dump#73

Agile methodology does not accepts change of requirements at any stage

A
True
B
False

False. Agile explicitly welcomes and accommodates changing requirements even late in development. The Agile Manifesto principle states: 'Welcome changing requirements, even late in development. Agile processes harness change for the customer's competitive advantage.' The statement in the question is the opposite of Agile's core principle.

Accenture-Primer-Dump#74

In a relational database a referential integrity constraint can be done using

A
primary key
B
foreign key
C
secondary key
D
compose key

Referential integrity is enforced in a relational database through a foreign key constraint, which ensures that a value in one table's column must exist as a primary key in the referenced table. Primary keys enforce entity integrity (uniqueness/not-null), not referential integrity across tables.

Accenture-Primer-Dump#75

Which of the given options are true with respect to arrays?

A
Array size is fixed
B
The element of an array can be accessed using index.
C
Array element can be sorted by decreasing order
D
Negative values cannot be placed in an array.

Both options 0 and 1 are true: arrays have a fixed size once declared (you cannot resize a static array), and elements are accessed using a zero-based index. Option 3 is false — arrays can store negative values. Option 2 is misleading — while arrays can be sorted in decreasing order, this is not an intrinsic property of arrays.

Accenture-Primer-Dump#76

Name the type of join used to include rows that do not have matching values

A
Cartesian product
B
inner join
C
non equi-join
D
outer join

An outer join (LEFT, RIGHT, or FULL OUTER JOIN) includes rows from one or both tables that do not have matching values in the other table, filling unmatched columns with NULL. Inner join returns only matching rows; Cartesian product returns all combinations; non equi-join uses a non-equality condition but still requires some relationship.

Accenture-Primer-Dump#77

Expand DSDM

A
Dynamic System Development Method
B
Dynamic State Development Method
C
Dynamic System Design Method
D
Data System Development Method

DSDM stands for Dynamic Systems Development Method (sometimes called Dynamic Software Development Method). It is an agile project delivery framework that was developed in the UK and focuses on delivering on time and on budget. Options 1, 2, and 3 substitute incorrect words.

Accenture-Primer-Dump#78

A primary key can have null values. State True and False.

A
True
B
False

False. A primary key cannot have NULL values — it must be NOT NULL and unique. NULL represents an unknown value, and allowing it in a primary key would violate entity integrity. This is a fundamental SQL/relational database constraint.

Accenture-Primer-Dump#79

Meta data is declared as ________in SQL?

A
Data Dictionary
B
Meta Dictionary
C
Meta Information
D
Data Information

In SQL and DBMS, metadata (data about data — table names, column names, data types, constraints, indexes, etc.) is stored in and declared as the Data Dictionary (also called the system catalog or information schema). Options 1, 2, and 3 are not standard DBMS terminology.

Accenture-Primer-Dump#80

Which of the following is true about Continuous Integration?

A
It is performed immediately after the developers check-in.
B
Development team sends continuous code merging requests even when the testing process is running
C
It emphasis on the change in all stages of your production pipeline
D
It is an approach of testing each code to codebase automatically.

Continuous Integration is triggered immediately after developers check-in (commit/push) code to the shared repository. The CI server automatically builds and tests the new code. Option 3 is partially related but describes CI loosely; option 0 is the most precise and standard definition of when CI is performed.

Accenture-Primer-Dump#81

The practice of automatically provisioning a new environment at the time of deployment is referred to as _____________

A
Continuous Integration
B
Continuous Development
C
Infrastructure-as-Code
D
Configuration Management

Infrastructure-as-Code (IaC) is the practice of automatically provisioning and managing infrastructure (servers, networks, databases) through machine-readable configuration files rather than manual processes. This enables automatic environment provisioning at deployment time. CI handles code integration; Configuration Management manages existing system state; 'Continuous Development' is not a standard term.

Accenture-Primer-Dump#82

Scrum divides the development into short cycles called___________.

A
Spirals
B
Tracks
C
Lanes
D
Sprints

Scrum divides the development process into short, fixed-length cycles called Sprints (typically 1–4 weeks).

Accenture-Primer-Dump#83

Which of the following is a correct declaration in java?

A
char[] Tic = new char();
B
char[] Tic = new char[19];
C
char[] Tic = new char(14);

In Java, char arrays are declared with square brackets and size: 'char[] Tic = new char[19];'. Using parentheses like new char() or new char(14) is invalid syntax.

Accenture-Primer-Dump#84

Raghav has developed an application to automate the billing process of the Aarvee Departmental Store. When the product is in operation, the client found that the place of the phone number, it prints the Customer ID. So he approaches Raghav to fix the issue. What type of Maintenance does the above scenario depict?

A
Corrective
B
Adaptive
C
Predictive
D
Preventive

Corrective maintenance involves fixing bugs discovered after deployment. The system printed Customer ID instead of phone number, which is a defect being corrected.

Accenture-Primer-Dump#85

Consider the scenario: You have written a code to display a menu on the screen and some operation are preformed based on the given user input. Which control structure would you use, so that the menu is guaranteed to show/display at least once on the screen, before performing the operation.

A
for loop
B
While loop
C
Do-While loop
D
Case

A Do-While loop is an exit-controlled loop that executes the body at least once before checking the condition, ensuring the menu is displayed before user input is processed.

Accenture-Primer-Dump#86
Logic Block
1
Predict the output for the given pseudo code snippet. SET count = 1 While count less than or equal to 5 Print “Hello, world” Count = count + 1 END WHILE
A
Prints” Hello, world” 5 times
B
Prints “Hello, world” 6 times
C
loop goes on infinitely
D
Prints “Hello, world” 4 times

count starts at 1 and increments to 6 before the condition (count <= 5) fails. The loop body executes for count = 1, 2, 3, 4, 5 — exactly 5 times.

Accenture-Primer-Dump#87

Pinky and Raju are working on an insurance project. They are not aware of SVN. So they created a common project on the server. Both retrieved the project from the server. They made relevant changes to the life. First Raju saved the changes to the server. Next Pinky saved her project identify which of the given statements are true.

A
Both their changes get updated on the server.
B
Pinky’s changes alone are stored and when Raju tries the upload, the server notifies the differences.
C
Both Pinky and Raju’s changes get rolled back.
D
Pinky’s project over writes the changes done by Raju.

Without version control (SCM), saving a shared file simply overwrites the previous version. Since Pinky saves after Raju, Pinky's version overwrites all of Raju's changes.

Accenture-Primer-Dump#88

does the special group or group 0 is included while coupling groups using the groupCount in java.

A
True
B
False

Java's Matcher.groupCount() returns the number of capturing groups in the pattern, explicitly excluding group 0 (which represents the entire match). So group 0 is NOT included.

Accenture-Primer-Dump#89

Many_________________ are delivered in an agile process.

A
Builds
B
Software
C
Programs
D
Tests

In Agile, many Builds (incremental versions of working software) are delivered throughout the development process, with working software produced at the end of every sprint.

Accenture-Primer-Dump#90
Logic Block
1
Predict the output startprogram class Product { String productName; } class Mobile extends Product { String mobileName; void display() { super.productName = mobileName + “Brand New !”; System.out.println(mobileName +” “ + productName); } } class Main { public Static void main(String args[]) { Mobile obj = new Mobile(); obj.productName=”1”; obj.mobileName=”2”; obj.display(); } } endprogram
A
2 2Brand New !
B
1 2Brand New !
C
1 1Brand New !
D
Brand New !

In display(): super.productName = mobileName + 'Brand New !' = '2Brand New !'. Then System.out.println(mobileName + ' ' + productName) prints '2 2Brand New !' because productName now holds '2Brand New !'.

Accenture-Primer-Dump#91
Logic Block
1
Predict the output import java.util.Scanner; class WeightLimitExceeded extends Exception { WeightLimitExceeded(int x) { System.out.print(Math.abs(15-x) + "kg: "); } } public class Main{ void validWeight(int weight) throws WeightLimitExceeded { if(weight > 15) throw new WeightLimitExceeded(weight); else System.out.println("You are ready to fly!"); } public static void main(String[] args) { Main ob = new Main(); Scanner in=new Scanner(System.in); for(int i=0;i<2;i++) { try { ob.validWeight(in.nextInt()); } catch(WeightLimitExceeded e) { System.out.println(e); } } } } What will be the output for the given code snippet
A
5kg : WeightLimitExceeded You are ready to fly!
B
NumberFormatException
C
5kg : You are ready to fly!
D
Cannot find symbol Math.abs

For input weight=20: WeightLimitExceeded constructor prints Math.abs(15-20)=5, so '5kg: '. Then catch prints the exception object (class name) = 'WeightLimitExceeded'. For input weight=10: 'You are ready to fly!' is printed.

Accenture-Primer-Dump#92
Logic Block
1
Predict the output What will be the output for the given code snippet Startprogram Public class Main{ public static void main(String args[]) try { System.out.println(4 / 0); try { int[] a = {1,2,3}; System.out.println(a[3]); } catch(ArrayIndexOutOfBoundsException e){ System.out.println(“Out of bounds”); } } catch (AritjmeticException e) { System.out.println(“AritjmeticException : divide by 0”); } } } endprogram
A
Out of bounds AritjmeticException : divide by 0
B
Runtime error
C
Out of bounds
D
AritjmeticException : divide by 0

System.out.println(4/0) throws ArithmeticException immediately, jumping to the outer catch block. The inner try-catch is never reached. Output: 'AritjmeticException : divide by 0'.

Accenture-Primer-Dump#93
Logic Block
1
Predict the output What will be the output for the given code snippet startprogram Public class Main{ public static void main(String args[]) int a =10; for(int i=3;1>=0;1++) try{ System.out.println(a / i); System.out.println(“End of try”); } catch(ArithmaticException e) { System.out.println(e); } } } endprogram
A
3 5 10 Java.lang.ArithmeticException: / by zero
B
3 End of try 5 End of try 10 End of try Java.lang.ArithmeticException: / by zero
C
Compiletimeerror
D
runtimeerror

Loop runs from i=3 down to i=0 (i>=0, i--). For i=3: 10/3=3, 'End of try'; i=2: 10/2=5, 'End of try'; i=1: 10/1=10, 'End of try'; i=0: ArithmeticException caught and printed.

Accenture-Primer-Dump#94
Logic Block
1
Predict the output What will be the output for the given code snippet Startprogram Import java.util.regex; Public class Main{ public static void main(String args[]) { String s=”ABC”; Pattern p=Pattern.compile(s); String r=”ABCABCABCABC”; Matcher m=p.matcher(r); System.out.println(m.lookingAt()); } } endprogram
A
true
B
false
C
ABC
D
0

Matcher.lookingAt() attempts to match the pattern at the beginning of the input. The pattern 'ABC' matches the start of 'ABCABCABCABC', so it returns true.

Accenture-Primer-Dump#95
Logic Block
1
Predict the output What will be the output for the given code snippet startprogram Import java.util.regex; Public class Main{ public static void main(String args[]) { Pattern p=Pattern.compile(“\\d”); String test=”India123”; Matcher m=p.matcher(test); If(m!null) { System.out.println(m.find()); System.out.println(m.matches()); } } } endprogram
A
true true
B
false true
C
true false
D
false false

Pattern \d on string 'India123': m.find() searches for a digit anywhere in the string — 'India123' contains digits, so returns true. m.matches() requires the entire string to match \d — 'India123' does not fully match a single digit, so returns false. Output: true\nfalse.

Accenture-Primer-Dump#96
Logic Block
1
Predict the output What will be the output for the given code snippet startprogram Public class Main{ public static void main(String args[]) { int arr[] = new int[] {0,1,2,3,4,5,6,7,8,9}; int n=6; n = arr[arr[n] / 2]; System.out.println(arr[n] / 2); } } endprogram
A
2
B
1
C
6
D
0

arr={0..9}, n=6. Step 1: n = arr[arr[6]/2] = arr[6/2] = arr[3] = 3. Step 2: System.out.println(arr[3]/2) = 3/2 = 1 (integer division).

Accenture-Primer-Dump#97
Logic Block
1
Predict the output public class Main{ public static void main(String args[])
A
int[]m = new int[13];
B
System.out.println("m[0] is " +m[0]);
C
(a.) Program has a compiler error
D
(b.) Program has a compiler error
E
(c.) The program runs fine and displays m[0] is 0.
F
(d.) None

int[] m = new int[13] initializes all elements to 0 (Java default for int arrays). The program compiles and runs fine, displaying 'm[0] is 0'. Option (c) is correct.

Accenture-Primer-Dump#98
Logic Block
1
Predict the output import java.util.regex.*; public class Hello {
A
public static void main(String args[])
B
String s="REGULAREXPRESSION";
C
String r="";
D
s=s.replaceAll(r,",");
E
System.out.println(s);
F
(a.) ,R,E,G,U,L,A,R,E,X,P,R,E,S,S,I,O,N,
G
(b.) REGULAREXPRESSION
H
(c.) None
I
(d.) All

replaceAll("", ",") uses an empty-string regex which matches every position between characters (and at start/end). Result: ',R,E,G,U,L,A,R,E,X,P,R,E,S,S,I,O,N,'.

Accenture-Primer-Dump#99
Logic Block
1
Predict the output import java.util.Scanner; public class Main { static void func(int a,int b) throws ArithmeticException, ArrayIndexOutOfBoundsException { System.out.println(10/a); int[] arr={1,2,3}; System.out.println(arr[b]); } public static void main(String[] args) { Scanner in=new Scanner(System.in); for(int i=0;i<3;i++) { try{ func(in.nextInt(),in.nextInt()); } catch(ArithmeticException e){ System.out.println("can't divide by zero"); } catch(ArrayIndexOutOfBoundsException e) { System.out.println("Out of bounds"); } } } }
A
5 2 can't divide by zero 5 out of bounds
B
5 1 can't divide by zero 5 out of bounds
C
Compile TimeError
D
Results in recursion

For inputs (2,1), (0,any), (2,5): func(2,1) prints 10/2=5 and arr[1]=2; func(0,_) throws ArithmeticException; func(2,5) prints 5 then ArrayIndexOutOfBoundsException. Output matches option 0.

Accenture-Primer-Dump#100

Which plugin are the appropriate functionality plugins used in multibranch pipelines for validating the pull or change requests. (Select any two) *) GitHub Branch Source

A
*) GitHub Main Source
B
*) Bitbucket Branch Source
C
*) Bitbucket Main Source

The question states 'GitHub Branch Source' is already selected. The second correct plugin for validating pull/change requests in Jenkins multibranch pipelines is 'Bitbucket Branch Source' (index 1). These two cover GitHub and Bitbucket SCM sources.

Accenture-Primer-Dump#101

In code phase, requirements and feedback are gathered from customers and stakeholders.

A
True
B
False

False. In the DevOps lifecycle, requirements and feedback from customers are gathered in the Plan phase, not the Code phase. The Code phase is where actual development occurs.

Accenture-Primer-Dump#102

Agile is useful when the client requirements are not clear or requirement frequently changes.

A
True
B
False

True. Agile is specifically designed for projects where requirements are unclear, incomplete, or likely to change frequently, allowing iterative delivery and continuous adaptation.

Accenture-Primer-Dump#103

Assume we have created a table employees with the columns: employee_id, employee_name, salary, designation and manager_id. Here employee_id is set as primary key and manager_id is a foreign key which refers to employee_id in the employees. Manju wants to display the employee details along with the manager id and manager name. Select which query suits the above requirement.

A
select employee_id, employee_name, salary, employee_id "Mgr-id", employee_name "Mgr- name" FROM employees;
B
select e.employee_id, e.employee_name, e.salary, m.employee_id "Mgr-id", m.employee_name "Mgr-name" FROM employees e, employees m Where e.manager_id = m.manager_id;
C
select e.employee_id, e.employee_name, e.salary, m.employee_id "Mgr-id", m.employee_name "Mgr-name" FROM employees e, employees m Where e.manager_id = m.employee_id;
D
select e.employee_id, e.employee_name, e.salary, m.manager_id "Mgr-id", m.employee_name "Mgr-name" FROM employees e, employees m Where e.manager_id = m.employee_id;

The correct self-join condition is e.manager_id = m.employee_id (employee's manager_id links to the manager's employee_id). Option 2 correctly selects e.employee_id, e.employee_name, e.salary, and manager's employee_id and employee_name using this condition.

Accenture-Primer-Dump#104
Logic Block
1
Predict the output What will be the output for the given code snippet startprogram import java.util.Scanner; public class Main{ public static void throwit(){ System.out.println("throwit"); throw new RunTimeException(); } public static void main(String[] args){ try{ System.out.println("Hello"); throwit(); }catch(Exception re){ System.out.println("Caught"); }finally{ System.out.println("Finally"); } System.out.println("After"); } }
A
Hello Output will be HELLO THROWIT CAUGHT FINALLY throwit Caught Finally After
B
Finally After
C
CompileTimeError
D
throwit Caught After Finally 1/31/24, 4:20 PM AWS Cloud Arch Design - PostQuiz: Attempt review

Execution: 'Hello' printed, throwit() called printing 'throwit' then throwing RuntimeException, caught by catch(Exception) printing 'Caught', finally block prints 'Finally', then 'After' is printed. Option 0 shows the full correct sequence.

Post-Quiz#105

This loop statement is also called as exit-controlled loop 1 4 2 a l ✓ o f o ✓ p ✓ i ✓ n ✓ g g ✓ r o 3 i ✓ t ✓ e ✓ r ✓ a ✓ t ✓ i ✓ o ✓ n i t 5 d ✓ o ✓ w ✓ h ✓ i ✓ l ✓ e m Question 18 Correct Mark 1.00 out of 1.00 Identify the logic which suits the flowchart? Select one:

A
Do-while loop
B
for loop
C
nested loop
D
While loop Your answer is correct. While loop checks for the condition first. Only if it is true, it enters the block. The statements gets repeated until the condition becomes false. The correct answer is: While loop Question 19 Correct Mark 1.00 out of 1.00 It's Halloween. You go from house to house, tricking or treating. You get 2 candies from each house that you go to. You must return home once you collect 100 candies. Can you arrange the sequence for this loop activity. 1 BEGIN 2 SET candy count <- 0 3 END WHILE 4 DECLARE candy_count 5 WHILE candy_count<=100 6 candy count <- candy_count+2 7 END
E
1423657
F
1 4 5 2 3 6 7
G
1 4 2 5 6 3 7
H
1243657 Your answer is correct. The correct answer is: 1425637 Question 20 Correct Mark 1.00 out of 1.00 Looping statements are also called ____________
I
Iteration logic
J
Selection logic

The Do-while loop is the exit-controlled loop (condition checked after body executes). The word puzzle in the question spells out 'do while loop iteration'.

Primer-Dump#106

What is the output of the query:

A
Select substr(“Stay home!Stay safe!!”,1) from dual;
B
End program
C
Stay home! Stay safe!

The source marks the correct answer as: Stay home! Stay safe!.

Primer-Dump#107

Choose legal identifiers from the below options: a)4thvariable b)_98_

A
&count
B
$says
C
new

In Java, identifiers can start with a letter, underscore (_), or dollar sign ($). '4thvariable' starts with a digit (illegal), '_98_' is valid (in stem), '&count' uses & (illegal), '$says' uses $ (legal in Java), 'new' is a reserved keyword (illegal). '$says' (index 1) is the legal identifier among the options.

Primer-Dump#108

William is planning to develop software- Customer Feedback System, which helps the department store to predict the sales target. His requirements are clear but his requirements are not stable. Suggest a software development

A
suitable for this scenario.
B
Prototype model

The source marks the correct answer as: Prototype model.

Primer-Dump#109
Logic Block
1
import java.util.ArrayList; import java.util.List; class TestMain{
A
public static void main(String[] args){
B
//INSERT LIST DECLARATION HERE
C
for(int i=0;i<=5;i++){
D
List<Integer> row=new ArrayList<Integer>();
E
for(int j=0;j<=5;j++)
F
row.add(i*j);
G
db.add(row);
H
for(List<Integer>row:db)
I
System.out.println(row); }
J
List<List<Integer>>db= new ArrayList<List<List<Integer>>();

The source marks the correct answer as: List<List<Integer>>db= new ArrayList<List<List<Integer>>();.

Primer-Dump#110
Logic Block
1
public class Main { public void printVal(Integer i)
A
System.out.println("Integer "+i);
B
} public void printVal(int i)
C
System.out.println("Int "+i);
D
public static void main(String[] args) { new Main().printVal(127); }
E
int 127

The source marks the correct answer as: int 127.

Primer-Dump#111
Logic Block
1
public class TestMain extends Tree { public static void main(String s[])
A
new TestMain().go();
B
void go(){
C
grow2(new Tree().new TestMain());
D
grow2(Main)new tree().nw TestMain());
E
void grow (Tree t1,main r1){
F
Testmain r2=(Testmain)t1;
G
Tree t2=(Tree)r1;
H
class Tree{}
I
ans = compile time error

The code attempts to use TestMain as an inner class of Tree (new Tree().new TestMain()), but TestMain is a top-level class extending Tree, not an inner class. This results in a compile-time error.

Primer-Dump#112
Logic Block
1
public class Main{ public static void main (String[] args){ String a[]=new String[-9/-4];
A
int b=a.length;
B
System.out.print(new
C
String[]{"Harley","Aprilla","Kawasaki","Triumph","Guzz"}[0]);
D
Kawasaki

The source marks the correct answer as: Kawasaki.

Primer-Dump#113
Logic Block
1
predict output class TestMain{ int x=50;
A
public static void main (String[] args) {
B
final TestMain f1= new TestMain();
C
TestMain f2 = new TestMain();
D
TestMain f3 = isvalid(f1,f2);
E
System.out.println(f1==f3)+""+(f1.x==f3.x));
F
static TestMain isvalid(TestMain x,TestMain y){
G
final TestMain z=x;
H
x=60;
I
return z;
J
ans= true true

f3 = isvalid(f1, f2): z = x (z points to f1), then the method returns z (which is f1). So f3 == f1 is true, and f1.x == f3.x is true (both point to same object, x=50). Output: true true.

Primer-Dump#114
Logic Block
1
class mammel{ String name= "Dog"; String makenoise(){
A
return "Bow Wow";
B
class Cat extends mammel{
C
String name="Cat";
D
String makeNoise()
E
return "Meow";
F
public class Main{
G
public static void main (String[] args) {
H
new Main.go();
I
void go()
J
mammel m=new Cat();

mammel m = new Cat() — polymorphism applies to methods, not fields. m.makeNoise() calls Cat's overridden method ('Meow'). m.name accesses mammel's field ('Dog'). Output: 'Dog Meow'. Option 9 (mammel m=new Cat()) represents the polymorphic assignment that drives this behavior.

Primer-Dump#115

Bonus calculated module was unit tested by the developer. Depending on the salary the bonus needs to be calculated. Assume if one of the salary-range is between to

A
then the
B
bonus should be 10%. From the given options identify the test cases for
C
Equivalence Partitioning.

This question is too garbled for reliable option selection. Equivalence Partitioning divides inputs into classes where values within a class are treated equivalently. For a range like 5000–10000 with 10% bonus, valid partitions are: one value in range, one below, one above.

Primer-Dump#116

What is the command to concatenate fname and lname with a space in between and display the output under the heading of “Full Name”?

A
Employee(eid,fname,lname,salary)
B
select fname||’ ’||lname as ‘Full Name’ from employee;

The source marks the correct answer as: select fname||’ ’||lname as ‘Full Name’ from employee;.

Primer-Dump#117

Consider the following table structure and write a query to display all the employees who have and don’t have department id assigned

A
Emp(fname,lname,dno)
B
Dept(dep9d,dname)
C
1) SELECT FNAME,DEPTID,DNAME FROM EMP E LEFT OUTER JOIN DEPT D

The source marks the correct answer as: 1) SELECT FNAME,DEPTID,DNAME FROM EMP E LEFT OUTER JOIN DEPT D.

Primer-Dump#118

Select statements true about persistence Answer = i) persistence is way through which life time of object exists even after the terminates

A
ii) Java uses serialsation for object persistence
B
iii) Persistence is a way through which the life time of object is
C
terminated as the program terminates
D
iv) Persistence of object is done by java runtime automatically.

Statement i (persistence keeps objects alive beyond program termination) is true. Statement ii (Java uses serialization for object persistence) is also true and correct. Statement iii is false (that describes non-persistence). Statement iv is false (developer must implement persistence). Option 0 (ii) is a true statement about persistence.

Primer-Dump#119
Logic Block
1
public class TestMain { {
A
index=1;
B
int index;
C
public static void main(String[] args)
D
new TestMain().find();
E
void find(){
F
int[][]d = {{7,8,9},{4,5,6},{0,1,2,3}};
G
System.out.println(d[index++][index++]);
H
6

The source marks the correct answer as: 6.

Primer-Dump#120
Logic Block
1
class Rays { static String s=""; protected Rays(){
A
s+="Rays";
B
class Alpha extends Rays {
C
private Alpha(){
D
s+=" Alpha";
E
public class Main extends Rays
F
private Main() {
G
s += "SubAlpha";
H
public static void main(String s[])
I
{ new Main();
J
System.out.println(s);

new Main() calls Main constructor which first calls super() (Rays constructor), appending 'Rays' to s, then appends 'SubAlpha'. Final output: 'RaysSubAlpha'. Option 9 (System.out.println(s)) is the statement that produces this output.

Primer-Dump#121

Cost effectiveness - A)Ability to handle most of the changes without having to rewrite the entire program 2)Eficiency - B)Deals with the amount of time and memory

A
space required for a program
B
3)Portability -C)Ability to run on different platforms with or
C
without minimal changes

The matching is: 1)Cost effectiveness=A (handle changes without rewriting), 2)Efficiency=B (time and memory), 3)Portability=C (run on different platforms). All three pairings are correct. The answer is embedded across the stem and options.

Primer-Dump#122
Logic Block
1
public class Main { {
A
System.out.print("Hello");
B
public display()
C
System.out.print("display");
D
public static void main(String s[])
E
System.out.print("hai");
F
display dobj1=new display();
G
haiHellodisplayHellodisplay

The source marks the correct answer as: haiHellodisplayHellodisplay.

Primer-Dump#123

in which of the given data structures, is pointers concept applied?

A
Linked list
B
Binary tree

Both Linked lists and Binary trees use the pointer concept. Linked list nodes contain a pointer to the next node, and binary tree nodes contain pointers to left and right children.

Primer-Dump#124

appending content to existing file in vi editor can be done in mode. Command mode Insert mode

A
Append mode
B
Escape mode

In vi editor, pressing 'a' (append) enters insert mode positioned after the cursor, allowing content to be appended. This mode is referred to as 'Append mode' in the context of this question.

Primer-Dump#125

choose the data control Language commands?

A
Commit
B
Grant

DCL (Data Control Language) commands are GRANT and REVOKE. COMMIT is a TCL (Transaction Control Language) command. Grant (index 1) is the DCL command among the options.

Primer-Dump#126

choose the methods(s) of the stringbuilder class Intern() Delete()

A
Append()
B
Reverse()
C
Replace()

StringBuilder methods include append() (index 0), reverse() (index 1), and replace() (index 2). All three are valid StringBuilder methods. intern() is a String method (not StringBuilder), and delete() is also a StringBuilder method but listed in the question stem.

Primer-Dump#127

Consider the following structure Customer (custid,custnmae,address,city,country) Choose the option display all customer who all are not from Hyderabad and delhi.

A
Select * from customer where city in(“Hyderabad”,”Delhi”);
B
Select * from customer where city not in(“Hyderabad”,”Delhi”);
C
Select * from customer where city <>“Hyderabad” and city <>”Delhi”;

Both options are logically correct for excluding Hyderabad and Delhi. 'NOT IN ("Hyderabad","Delhi")' (index 1) and 'city <> "Hyderabad" AND city <> "Delhi"' (index 2) are equivalent and both return customers not from either city.

Primer-Dump#128

which of the given options are true with respect to linked lists, when compared to arrays 1.Linked lists are dynamic in size

A
2.Random access is possible in linked list
B
3.Insertion and deletions are expensive in linked list
C
4.All the options
D
Linked lists are dynamic in size

Only 'Linked lists are dynamic in size' (statement 1, in the question stem) is true about linked lists compared to arrays. Random access is NOT possible in linked lists (must traverse sequentially), and insertions/deletions are efficient (O(1)), not expensive. None of the options (0–2) are true statements.

Primer-Dump#129

consider a scenario: you have written a code to display a menu on the screen and some operations are performed based on the given user input. Which control structure would you use ,so that the menu is guaranteed to

A
show?display at least once on the screen, before performing the operation
B
do-while loop

The source marks the correct answer as: do-while loop.

Primer-Dump#130

US Insurance project development team members are divided into two groups, one team works in the development office in India and the other group works onsite, ie,

A
at the client location
B
So Programmers located in different locations is not suitable for methodologies
C
DSDM

The source marks the correct answer as: DSDM.

Primer-Dump#131

Which of the following is not a part of SRS document Ans – Functional Requirement

A
Non-Functional Requirements
B
Implementation Details
C
Hardware Software specifications

SRS (Software Requirements Specification) documents requirements — functional requirements, non-functional requirements, and hardware/software specifications. Implementation Details (how the software will be built) are NOT part of SRS; they belong in design documents.

Primer-Dump#132

Sam and rose are working on the loan monitoring project the head version was checked out By both sam and rose .both of them made their changes in the local

A
machines both of them
B
Made the required changes and updated the same to the server from the given
C
options Identify
D
correct option
E
Second projects gets over written by the first one

The source marks the correct answer as: Second projects gets over written by the first one.

Primer-Dump#133

ERD Example consider the given scenario. A product may or may not have a sale. A sale can have one or more products.Iden9fy the op9onality between the

A
product and sales
B
correct option: 1…0

The optionality between product and sales: a product may or may not have a sale (0 or more sales), and a sale must have one or more products. The embedded answer 'correct option: 1…0' in option 1 indicates the correct optionality notation.

Primer-Dump#134

In a binary search algorithm, if the element to be searched is lesses than the pivot value (middle value), then is split in half. Right interval

A
Left interval
B
Half interval
C
Complier dependent

In binary search, when the target element is less than the pivot (middle value), the search continues in the Left interval (lower half) of the array.

Primer-Dump#135
Logic Block
1
startprogram public interface studentmark{ /*insert code here*/ int mark=100;
A
which modifiers when inserted in the above code will provide compilation
B
errors?(choose two)
C
final
D
static
E
abstract
F
private
G
public

In Java interfaces, fields are implicitly public static final. Adding 'abstract' to a field causes a compile error (abstract is for methods/classes, not fields). Adding 'private' causes a compile error (interface members must be public). Both abstract (index 4) and private (index 5) cause compilation errors.

Primer-Dump#136

)Amaze Agencies, Customers can apply for loan. To apply loan the customers should get registered first then apply for the loan. The admin will approve the

A
loan
B
and then the loan will be issued to the customer.
C
Identify the classes in above scenario.
D
Ans: Customer, Loan, Register.

The answer is embedded in option 3: 'Ans: Customer, Loan, Register.' From the scenario, Customer (applies for loan), Loan (the loan entity), and Register (registration process) are the key classes.

Primer-Dump#137
Logic Block
1
class High{ public High(String s){ System.out.print("From High");
A
public class Main extends High{
B
public Main(String s){
C
System.out.print("From Low");
D
public static void main(String[] args){
E
new Main("High Low");
F
System.out.prinln("");
G
compile time error

The source marks the correct answer as: compile time error.

Primer-Dump#138

The following XML fragment is legal. Startprogram<2020SalesReport> <income>1000000</income>

A
<profit>500000</profit>
B
</2020SalesReport>
C
Ans: True

The source marks this as True (option 2). Note: by strict XML specification, element names cannot begin with digits, making <2020SalesReport> invalid. However, the embedded answer in the source PDF is 'Ans: True'.

Primer-Dump#139

1)INNER JOIN 2)LEFT OUTERJOIN 4)RIGHT OUTER JOIN 5)FULL OUTER JOIN WITH A)Returns records that have matching values in both tables B)Returns the matched records

A
from the
B
right table, and all records from the left table C)Returns the matched records from the left
C
table, and
D
all records from the right table D)Returns all records when there is a match in either left or
E
right
F
table
G
a>1-d,2-c,3-b,4-a
H
b>1-d,2-b,3-c,4-1
I
c>1-d,2-b,3-a,4-c
J
d>1-a,2-b,3-c,4-d

Standard SQL JOIN mappings: 1-INNER JOIN=A (matching values in both), 2-LEFT OUTER=B (all left, matched right), 3-RIGHT OUTER=C (all right, matched left), 4-FULL OUTER=D (all when match in either). Option 9 'd>1-a,2-b,3-c,4-d' represents this correct mapping.

Primer-Dump#140

Suresh Associate Professor 150000 5yrs Which is the command to display the outbusas tolos?

A
Suresh Associate Professor
B
Sam Associate Professor
C
John Professor
D
Anu Professor
E
cut -d: -f 2,3 staff dat|sort -r

The source marks the correct answer as: cut -d: -f 2,3 staff dat|sort -r.

Primer-Dump#141
Logic Block
1
public class demo { static int num1=85; Note=
A
Agar question mai num1 or num2 ki
B
int num2=58; values alag aegi to fatafat is copy kar k compiler m
C
{ check kar k output bata dena..jaha jaha demo hai
D
display(); waha Main likh dena agar online compiler usekarre
E
ho to
F
num1=58;
G
num2=85;
H
void display()
I
System.out.println("num1="+num1);
J
System.out.println("num2="+num2);

After swapping: num1 becomes 58, num2 becomes 85. The output statements at options 8 and 9 (System.out.println for num1 and num2) produce 'num1=58' and 'num2=85'.

Primer-Dump#142

predict the output display the loan type and the number of customers under each loan type,considering only those loan types which are taken by more than one customer.

A
Select loan_type,count(customer-id) from loans_taken l1 inner join loans l2 on l1
B
loan_id=l2 loan_id group by loan_type having count(customer_id)>1 order by
C
loan_type

All three options together form the complete SQL query: SELECT loan_type, COUNT(customer_id) FROM loans_taken JOIN loans ON loan_id GROUP BY loan_type HAVING COUNT(customer_id)>1 ORDER BY loan_type.

Primer-Dump#143
Logic Block
1
Consider the following css code snippet Startprogram H1{
A
Text-shadow : 2px 3px 5px;
B
Choose the appropriate appearance for the text……….
C
horizontal shadow 2px,vertical shadow 3px,blur 5px

The source marks the correct answer as: horizontal shadow 2px,vertical shadow 3px,blur 5px.

Primer-Dump#144

which of the below are functional interfaces?

A
Clonable
B
Serialization
C
Autocloseable
D
Comparable
E
Comparator
F
100.
G
Statement 1 : an include relationship between usecase means the included usecase
H
will be called every time the base usecase is executed
I
Statement 2 : an extends relationship between usecase means the extended usecase
J
is executed only when a given condition is true

A functional interface has exactly one abstract method. Comparable (compareTo()) and Comparator (compare()) are functional interfaces. Cloneable and Serializable are marker interfaces (no abstract methods). The explanation about use-case statements being both true also refers to the embedded statements in options 6–9.

Primer-Dump#145

Spot the error. Observe the given algorithm to calculate the simple interest. Identify the incorrect step (if any)

A
Step 1: Start
B
Step2: Get priniciple_amount,no_of years,rate_of_interst
C
Step3: Multiply priniciple_amount,no_of years,rate_of_interst and store it in
D
result
E
Step4: Simple_Interest=result%100
F
Step5: Display Simple Interest
G
Step6: Stop
H
Step 4

The source marks the correct answer as: Step 4.

Primer-Dump#146
Logic Block
1
class Television { public void getPictureResolution(){
A
System.out.println("Video Quality is low");
B
public class smartTv extends Television{
C
public void getPictureResolution(){
D
System.out.println("Video Quality is high");
E
public static void main(String[] args) {
F
try{
G
((smartTv)new Television()).gePictureResoution();
H
catch(ClassCastException e)
I
{System.out.print("Class cast exception was caught");
J
finally{

new Television() creates a Television object. Casting it to smartTv with ((smartTv)new Television()) throws a ClassCastException at runtime because Television is not a subtype of smartTv. The catch block prints 'Class cast exception was caught' (option 8).

Primer-Dump#147

in CSS, which of the following code/ codes can be used for colouringa table background in red?

A
Code 1: table {background-color: red; }
B
Code 2: table {bgcolor: red;}
C
Code 3: table {background: red;}
D
Choose one
E
code 1 only

The source marks the correct answer as: code 1 only.

Primer-Dump#148
Logic Block
1
class TestMain{ public static void main (String[] args) { Map<Tasks, String> m= new HashMap<Tasks, String>();
A
Tasks t1 = new Tasks("Jan");
B
Tasks t2 = new Tasks("Jan");
C
Tasks t3 = new Tasks("Apr");
D
put(t1,"Design");
E
put(t2,"Code");
F
put(t3,"Develop");
G
System.out.println(m.size());
H
class Tasks{
I
String day;
J
Tasks(String d){

Tasks class does not override hashCode() or equals(), so identity-based comparison is used. t1, t2, and t3 are three distinct objects, so all three put() calls add separate entries. m.size() = 3. Option 6 (System.out.println(m.size())) is the statement that outputs 3.

Primer-Dump#149

Agile methodology accepts change of requirement at any stage. State true or

A
false
B
1

The source marks the correct answer as: 1.

Primer-Dump#150

when an exception occours in a method.The method creates an object for that exception. To handel the exception, it is given to the run time system.the run time system searches for all the methods in the call stack,it is cannot find the

A
approproate handler then it hands over the object to?
B
nosuchmethodexception

The source marks the correct answer as: nosuchmethodexception.

Primer-Dump#151
Logic Block
1
class BlackBoard{ Short story=200; BlackBoard write(BlackBoard bb)
A
bb=null;
B
return bb;
C
public static void main(String[] args)
D
BlackBoard b1=new BlackBoard();
E
BlackBoard b2=new BlackBoard();
F
BlackBoard b3=b1.write(b2);
G
b1=null;
H
1

The source marks the correct answer as: 1.

Primer-Dump#152
Logic Block
1
import java.util.*; public class Main {
A
public static void main(String[] args)
B
String[] str={"Banana","Apple","Watermelon","Mango"};
C
sortFruit o=new sortFruit();
D
Arrays.sort(str,o);
E
for(String s: str)
F
System.out.print(s+" ");
G
System.out.println(Arrays.binarySearch(str,"map"));
H
static class sortFruit implements Comparator<String>
I
public int compare(String str1,String str2)
J
return str2.compareTo(str1);

sortFruit reverses the natural order (return str2.compareTo(str1)). Sorted descending: Watermelon, Mango, Banana, Apple. Arrays.binarySearch on a reverse-sorted array with key 'map' returns a negative index (implementation-defined, shown as -5). Output: 'Watermelon Mango Banana Apple -5'. Option 9 (return str2.compareTo(str1)) is the key comparator logic.

Primer-Dump#153

What is the relationship between these two Building has rooms Ans Composition

A
Aggregation
B
Generalization
C
Hierarchy
D
Composition

The answer 'Composition' is stated in the question stem itself ('Ans Composition'). None of the options (Aggregation, Generalization, Hierarchy) is correct. Building–Room is a composition relationship because rooms cannot exist independently of the building.

Primer-Dump#154

A Software needs to be developed for a Sterlin Hospital to monitor the radiations given for cancer patients. Even a very minute deviation would result in the risk of the life of the patient. Which would be the appropriate life cycle model used to implement the given scenario Select one:

A
Agile
B
Prototyping
C
Water fall
D
Spiral

The Spiral model is best suited for high-risk, safety-critical systems like medical radiation monitoring. It incorporates risk analysis at each iteration, making it ideal where even a minute deviation could be life-threatening.

Primer-Dump#155

Consider the scenario. For an insurance, a customer makes a claim. The claim can be a normal or a critical claim. The insurance company confirms the claim. What diagram

A
can be used tounderstand the state changes of the component triggered by events
B
and the dynamic
C
nature
D
Correct answer : state chart diagram

A State Chart Diagram (State Machine Diagram) shows state changes of a component triggered by events, depicting the dynamic nature and transitions of a system. Option 3 contains the embedded correct answer: 'Correct answer: state chart diagram'.

Primer-Dump#156

which of the following is not a principle of dsdm?

A
easy to understand modes
B
fully transparant

The source marks the correct answer as: easy to understand modes; fully transparant.

Primer-Dump#157

in javascript what will be returned by the following code snippet?

A
Document.write(new date().getmonth());
B
month as number from 0 to 11

The source marks the correct answer as: month as number from 0 to 11.

Primer-Dump#158
Logic Block
1
class ClassA protected void show(){ System.out.print("Super Class Method"),
A
class ClassB extends ClassA{
B
private void show(){ System.out.print("Sub Class Method");
C
public static void main(String[] args){ ClassB subObj = new ClassB();
D
subObj.show();
E
compite time error

The source marks the correct answer as: compite time error.

Primer-Dump#159
Logic Block
1
class One { } class Two extends One {
A
public class Main {
B
static String s="Print";
C
public static void main(String[] args)
D
One[] a=new One[2];
E
Two[] b = new Two[2];
F
print(a);
G
print(b);
H
print(7);
I
System.out.println(s);
J
static void print (One[]...a2){

The varargs method print(One[]...a2) is called three times. Static field s='Print', s is concatenated with results ('4', '3', '4'). Output: 'Print 434'. Option 8 (System.out.println(s)) is the print statement that outputs this result.

Primer-Dump#160

SPOT THE ERROR:

A
Observe the below algorithm to fifind the average of three numbers.
B
Step1: Start
C
Step2: Get num1, num2, num3
D
Step3: Add num1, num2, num3 and store it in Sum
E
Step4: Average=sum%3
F
Step5: Display Sum and Average
G
Step6: Stop
H
Identify the incorrect step(if any)
I
step4
J
b and c

The source marks the correct answer as: step4; b and c; indexoutofbound; CTE.

Primer-Dump#161

Which of the given options define a set of activities that transform the client needs to an effective software solution

A
Software planning
B
#review
C
compilation error
D
ENTITY

The source marks the correct answer as: Software planning; /; #review; compilation error; ENTITY.

Primer-Dump#162
Logic Block
1
Which jquery syntax hides all the paragraph elements Ans- $(“p”).hide(); Integer i=new Integer(-5); Double d=new Double(new Integer(-6)); System.out.println(i%d); short no=4; System.out.println((no-i)*d); Ans= -5.0 -54.0 Predict the output for the given pseudo code snippet SET count = 1 WHILE count less than or equal to 5 print "Hello, world" count = count+1 END WHILE Prints “Hello, world” 5 times At which level of testing the non functional requirements are tested? System Testing Consider a scenario: You have written a code to display a menu on the screen and some operations are performed based on the given user input. Which control structure would you use, so that the menu is guaranteed to show display at least once on the screen, before performing the operation. Do-While Which two phases of Feature Driven Development are repeated until no more features exixst?
A
Develop an overall Model
B
Plan By Feature
C
Design By Feature
D
Build a Features List
E
Build By Feature What does public Boolean lookingAt() method do? Attempts to match the pattern partially or fully in the matcher A primary key can have NULL values. State True or False. False Name the type of join used to include rows that do not have matching values. Outer Join Meta data is described as ______ in SQL? Data Information ____ is a conceptual teamwork where software is developed in iterations Agile Many ____ are delivered in an agile process Builds Expand DSDM Dynamic System Development Method Which of the following are features of BitBucket? Code Review, Pipelines, Build Integrations, Jira Software Integrations, Trello Boards, Different Views, Projects, IDE Integration Trello Boards, Different Views In Code Phase, requirements and feedback are gathered from customers and stakeholders False Which plugins are the appropriate functionally plugins used in multibranch pipelines for validating the pull or charge requests
F
Github Branch Source
G
Github Main Source
H
BitBucket Branch Source
I
BitBucket Main Source Predict the output What will be the output for the given code snippet startprogram public class Main{ public static void main(String] args){ int a = 10; for (int i=3; i>=0;i--) try{ System.out.println(a/i); System.out.printing ("End of try") ; } catch (ArithmeticException e) { System.out.println(e); } } } endprogram 3 End of try 5 End of try 10 End of try java.lang.Arithmetic Exception: / by zero Predict the output What will be the output for the given code snippet startprogram public class Main{ public static void main(String[] args){ int[] m = new int[13]; System.out.println("m[0] is “ +m[0]); } } endprogram Ans: 0 Predict the output What will be the output for the given code snippet startprogram public class Main{ public static void main(String args[]) { int arr[][] = new int[3][]; arr[0] = new int[1]; arr[1]= new int[2]; arr[2]= new int[3]; int sum = 0; for(int i=0; i<3; ++i) for(int j=0; j<i+1; ++j) arr[i][j] = j+1; for(int i=0; i<3; ++i) for(int j=0; j<i+1; ++j) sum += arr[i][j]; System.out.print(sum); Ans: 10 Statement for a logically cohesive module, there are some activities to be implemented. These activities are performed from inside the module itself. Is the above given statement true? If not, choose the correct option to make it true. The activities are selected form outside the module _____ testing is done by the client in the real world environment. Beta Testing If you are asked to do a modular software design, which combination of coupling and cohesion should you use for designing the software? High cohesion and low coupling Which of the given statements is true about XP? XP narrows down towards a single project, developed and maintained by a single team. XP will not work in an environment where the manager insists on complete documentation before the team begins to code. XP will work in an environment where programmers are separated geographically. Raghav has developed an application to automate the billing process of the Aarvee Departmental store. When the product is in operation, the client found that in the place of phone number, it prints the Customer ID. What type of maintenance does the above scenario depict? Corrective Which one of the following is a correct declaration in Java? Char[] Tic = new char[19]; Scrum divides the development into short cycles called ______ Sprints Information hiding is achieved through which OOP principle ? Encapsulation Arrow symbols in the flowchart is used to show the sequence of steps and the relationship among them. State True/Faise. True Does the special group and group 0 is included while capturing groups using the groupCount in Java False Predict the output for the following statement. Select substr(‘Yellow is A Colour’,1,5) from … Yello Agile is useful when the client requirements are not clear or requirement frequently changes. True Which of the following declarations will cause a compile time error? String[] nameArray = {5,3,2}; Which of these are not agile methodology? BPM Agile Technology does not accepts change of requirements at any stage. False In a relational database a referential integrity constraint can be done using Foreign key Which one is YAML’s basic building block? Key Value Which of the given options are true with respect to arrays? The elements of an array can be accessed using index. Pinky and Raju are working on an Insurance project. They are not aware of SVN. So they created a common project on the server. Both retrieved the project from the server. They made relevant changes to the file. First Raju saved the changes to the server. Next Pinky saved her project. Identify which of the given statements are true. Pinky’s project over writes the changes done by Raju. Which kind of control structure is used when we don’t know the exact number of time when a code need to be executed While The practice of automatically provisioning a new environment at the time of deployment is referred to as ________ Infrastructure-as-Code(IaC) College management is in need of the report of students exam result. For this Tom has to join the tables students, courses, registration, exam, final_project. How many join conditions are needed to write the query. Ans: 4 Predict the output of the below query. Select max(salary), min(salary), sum(salary), avg(salary) from employee. Will display the max, min, sum and average salary earned by the employee In multibranch, the pipeline names should not contain _______ Spaces Which of the following takes more time? Design Testing Maintenance Feasibility Predict the output What will be the output for the given code snippet startprogram import java.util. regex.*; public class Main { public static void main(String[]args){ Pattern p=Pattern.compile("\\d"); String test="India123"; Matcher m=p.matcher(test); if(m!=null){ System.out.println(m.find()); System.out.println(m.matches()); } } } Endprogram True False Predict the output What will be the output for the given code snippet startprogram public class Main { public static void main(String args[]) { int arr[] =new int[] {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; int n = 6; n = arr[arr[n] / 2]; System.out.println(arr[n] / 2); } } endprogram Ans: 1 Predict the output What will be the output for the given code snippet startprogram public class Main { public static void main(String[] args) { try{ System.out.println(4/0); try{ int[] a = {1,2,3}; System.out.println(a[3]); }catch (ArrayIndexOutOfBoundsException e){ System.out.println("Out of bounds"); } }catch (ArithmeticException e){ System.out.println("ArithmeticException : divide by 0"); } } } Endprogram ArithmeticException : divide by 0 Predict the output What will be the output for the given code snippet startprogram public class Main { public static void main(String[] args) { int[] m = new int[13]; System.out.println("m[0] is "+m[0]); } } Endprogram Ans: The program runs fine and displays m[0] is 0. Predict the output What will be the output for the given code snippet startprogram import java.util.regex.*; public class Main { public static void main(String[]args) { String s = "ABC"; Pattern p = Pattern.compile(s); String r = "ABCABCABCABC"; Matcher m = p.matcher(r); System.out.println(m.lookingAt()); } } Endprogram Ans: True Predict the output What will be the output for the given code snippet startprogram import java.util.regex.*; public class Main { public static void main(String[]args) { String s="REGULAREXPRESSION"; String = s=s.replaceAll(r."."); System.out.println(s); } } Endprogram Ans: ,R,E,G,U,L,A,R,E,X, P, R,E,S, S, I, O, N, Predict the output What will be the output for the given code snippet startprogram import java.util.regex.*; public class Main { public static void main(String[]args){ String s="India"; String r= "\\"; s=s.replaceAll(r,"a"); System.out.println(s); } } Endprogram Ans: PatternSyntaxException

In Feature Driven Development (FDD), the first three activities (Develop Overall Model, Build Features List, Plan By Feature) are done once. The last two — Design By Feature (index 2) and Build By Feature (index 4) — are repeated iteratively for each feature until all features are complete.

Key Topics to Study

Based on our question bank analysis, master these concepts to score high in Accenture Primer.

Preparation Tip

"Focus on understanding the logic behind pseudocode loops and selection statements, as they form the bulk of technical assessments."