Npci Selection Process 2022 Sample Items Aptitude and Domain
Npci Selection Process 2022 Sample Items Aptitude and Domain
NPCI
Topics and Sample Items– Aptitude, Python, Core Java
and Basics of C
Proprietary and Confidential
Sample Items:
Aptitude
Q.1 Three metal cubes whose edges are 3 cm, 4 cm and 5 cm respectively are melted to form a single
cube. What is the edge of this cube?
A. 6 cm
B. 7 cm
C. 8 cm
D. 9 cm
Q.2 Three different prizes have to be distributed among 4 different students. Each student could get 0
to 3 prizes. If all the prizes were distributed, then find the probability that exactly 2 students did not
receive a prize.
A. 9/16
B. 8/18
C. 3/19
A. 0
B. 2
C. 5
D. 10
Q.4 Read the information given below and answer the questions that follow.
p & q = p2 - q
p%q=p/q
p ! q = (p + q) / 3
A. 12
B. 14
C. 16
D. 18
A. 69
B. 71
C. 67
D. 73
Q.5 If in a certain code language "RUSKIN" is coded as 92, how would "NOVEL" be coded in the same
code language?
A. 54
B. 64
C. 58
D. 68
A. YFU
B. DZZ
C. YFV
D. DYZ
Q.7 The question given below is followed by two statements numbered I and II. Determine if the
statements are, individually or together, sufficient to answer the question.
Statements:
I. a2 - b2 = (a + 5)(b - 5)
II. a = b
A. Only one of the statements, alone, is sufficient to answer the question but the other
statement is not
B. Both statements I and II together are sufficient to answer the question asked but neither
statement alone is sufficient
D. Statements I and II together are not sufficient to answer the question asked and additional
data to the problem is needed
Q.8 In the following question, choose the answer from the Response Figure which when put in place of
the question mark would complete the relation given in the first two images of the Problem Figure.
A. (1)
B. (2)
C. (3)
D. (4)
import re
count = 0
pattern = 'text'
if re.match(pattern, 'text.txt'):
count += 1
if re.match(pattern, 'back.text'):
count += 2
if re.search(pattern, 'textto.txt'):
count += 4
if re.search(pattern, 'back.tex'):
count += 8
print (count)
A. 5
B. 13
C. 14
D. 15
Sum(2, 3)
Sum(3, 3)
A. -5
B. Error
C. ZeroDivisionError
D. 0
input()
a=map(int,raw_input().split())
m=min(a)
print(-1,'1\n'+str(a.index(m)+1))[2*m<sum(a)]
For which of the following sets of inputs, the above code will print -1?
Set 1:
3
121
Set 2:
2
55
Set 3:
1
10
A. Only 1 and 2
B. Only 1 and 3
C. Only 2 and 3
D. All 1, 2, and 3
class Base {
System.out.println("Base::show() called");
System.out.println("Derived::show() called");
System.out.println("Derivedsec::show() called");
b.show();
A. Base::show() called
B. Derived::show() called
C. Derivedsec::show() called
Q 2. For which of the following reasons, multiple inheritance is not supported in java?
Q 3. Which of the following queries can be used to get the last name from 'Student' table after replacing
special character with white space?
Q 4. Which of the following queries can be used to find the second highest salary from an employee
table?
C. Select TOP 1 Salary FROM ( Select TOP 2 salary FROM employee ORDER BY salary DESC)
ORDER BY salary ASC;
D. Select TOP 1 Salary from ( Select TOP 2 Salary from employee ORDER BY salary ASC) ORDER
BY salary DESC;
A. Attach
B. Append
C. Apprehend
D. Add
A. xy246xy246
B. xxy
C. xxyy
D. Runtime Error