Virtusa — Online Test & Coder Challenge: Pattern, Syllabus & Mock Test
Virtusa — Online Test & Coder Challenge pattern: 54 questions in 100 minutes across 4 sections. Sample questions, a preparation guide and a free timed mock.
- Pattern: Virtusa
- Duration: 100 minutes
- Questions: 54
- Timing: Sectional — each section on its own clock
- Negative marking: None
A short aptitude block, thirty CS questions and pseudocode, then four medium problems in fifty minutes.
- Coding-heavy
- No negative marking
- Four problems, 50 minutes
Sections
| Section | Questions | Time | Kind | Marks each |
|---|---|---|---|---|
| Aptitude | 10 | 10 min | Multiple choice | 1 |
| CS Fundamentals | 30 | 30 min | Multiple choice | 1 |
| Pseudo Code | 10 | 10 min | Multiple choice | 1 |
| Coder Challenge | 4 | 50 min | Coding | 10 |
Virtusa — Online Test & Coder Challenge syllabus
Aptitude
- Number System
- Percentages
- Profit & Loss
- Ratio & Proportion
- Averages
- Problems on Ages
- Time & Work
- Time, Speed & Distance
- Simple & Compound Interest
- Permutations & Combinations
- Probability
- Mixtures & Alligation
- Mensuration
- Number & Letter Series
- Coding & Decoding
- Blood Relations
- Direction Sense
- Syllogisms
- Seating & Puzzles
- Analogies & Classification
- Mathematical Reasoning
- Synonyms & Antonyms
- Sentence Correction
- Fill in the Blanks & Para Jumbles
- Reading Comprehension
CS Fundamentals
Pseudo Code
Coding: Virtusa coding questions 13 problems
Instructions
Virtusa's fresher test leans on code more than most service papers.
- Aptitude is short: ten questions across quantitative, logical and verbal.
- CS Fundamentals and Pseudo Code follow, sectionally timed.
- The Coder Challenge is four medium problems in fifty minutes, graded on test cases passed.
- No negative marking.
A strong Coder Challenge score opens the separate Power Coder round (hard problems on trees, graphs and DP) and the higher offer; it is not part of this paper. Nor are the essay, the communication round or the adaptive delivery some sources describe.
Practice questions for the Virtusa — Online Test & Coder Challenge test
Ages differing by 16
The ages of two people differ by 16 years. Six years ago the elder was three times as old as the younger. What is the younger's present age?
- 12
- 14
- 16
- 20
Show the answer
B. 14 Worked solution
Square roots
16 : 4 :: 49 : ?
- 6
- 7
- 8
- 9
Show the answer
B. 7 Worked solution
Sparsest AVL tree
What is the minimum number of nodes in an AVL tree of height 4, counting the height of a single node as 0?
- 7
- 11
- 12
- 15
Show the answer
C. 12 Worked solution
TCP against UDP
Which of these statements about TCP is false?
- It is connection oriented
- It delivers bytes to the application in order
- It has a minimum header size of 8 bytes
- It provides flow control through a receiver-advertised window
Show the answer
C. It has a minimum header size of 8 bytes Worked solution
Comparing strings with == and equals
What does this Java program print?
public class Main {
public static void main(String[] args) {
String a = "code";
String b = "code";
String c = new String("code");
System.out.println((a == b) + " " + (a == c) + " " + a.equals(c));
}
}- true true true
- true false true
- false false true
- true false false
Show the answer
B. true false true Worked solution
Deleting the root of a BST
A BST has 50 at the root, 30 and 70 as its children, 20 and 40 below 30, and 60 and 80 below 70. The root is deleted and replaced by its inorder successor. Which key becomes the new root?
- 20
- 30
- 40
- 60
Show the answer
D. 60 Worked solution
Where a router works
A router forwards packets by examining destination IP addresses. At which OSI layer does it operate?
- Data link layer
- Network layer
- Physical layer
- Transport layer
Show the answer
B. Network layer Worked solution
Pre-increment against post-increment
What does this C program print?
#include <stdio.h>
int main(void) {
int i = 5;
int j = i++;
int k = ++i;
printf("%d %d %d", i, j, k);
return 0;
}- 5 5 7
- 6 5 6
- 7 5 7
- 7 6 7
Show the answer
C. 7 5 7 Worked solution
Counting recursive calls
The naive recursion fib(n) = fib(n − 1) + fib(n − 2), with fib(0) and fib(1) returned directly, is used to compute fib(5). How many calls to fib are made in total, including the first one?
- 8
- 9
- 15
- 25
Show the answer
C. 15 Worked solution
A post-tested loop
A Repeat ... Until loop tests its condition after running the body. What is printed?
Integer x, c
Set x = 3
Set c = 0
Repeat
Set x = x - 7
Set c = c + 1
Until x < 5
Print c- 0
- 1
- 2
- 3
Show the answer
B. 1 Worked solution
How many swaps does it perform
The array A is 0-indexed. What is printed?
Integer A[0..3], i, j, m, t, swaps
Set A = {4, 3, 2, 1}
Set swaps = 0
For i = 0 to 2
Set m = i
For j = i + 1 to 3
If A[j] < A[m] Then
Set m = j
End If
End For
If m != i Then
Set t = A[i]
Set A[i] = A[m]
Set A[m] = t
Set swaps = swaps + 1
End If
End For
Print swaps- 2
- 3
- 4
- 6
Show the answer
A. 2 Worked solution
About this pattern
Section sizes follow PrepInsta's 2026 table (10 aptitude, 30 CS, 10 pseudocode, 4 problems in 50 minutes), the only full breakdown; its claims that HirePro runs it and that it is adaptive are not corroborated. FACE Prep and Glassdoor reports from 2025 give 40–60 MCQs with 1–5 problems, so counts vary by drive.
Modelled on the published pattern; not affiliated with Virtusa. Every sitting draws a fresh paper from the aptitude bank and the problem catalogue.