8/31/25, 11:19 PM Capgemini Pseudocode Questions | Set 3 | Company Placement Process
PrepBytes Blog
ONE-STOP RESOURCE FOR EVERYTHING RELATED TO
CODING
https://prepbytes.com/blog/capgemini-pseudocode-questions-set-3/?utm_source=chatgpt.com 1/14
8/31/25, 11:19 PM Capgemini Pseudocode Questions | Set 3 | Company Placement Process
Language
C C++ Java Javascript Python
Data Structure
Array Graphs Heap Linked List
Segment Tree Stack Trees Queue
Algorithm
Backtracking Dynamic Programming
Greedy Algorithm RECURSION Searching
Sorting
CSE Subjects Operating System
Company Placement
Interview
Interview Tips General Interview Questions
Algorithms Data Structure Languages
Other Topics
Competitive
Data Structure
Array Graph Heap
Segment Tree Stack Queue
Tree Tries
Algorithm
Backtracking
Dynamic Programming
Greedy Algorithm Searching
Sorting
Other Topics
Computational Geometry
Game Theory Maths Pointers
Recursion String
Others
Computational Geometry Game Theory
Hashing Maths Pointers Recursion
String
COMPANY PLACEMENT PROCESS
Capgemini Pseudocode Search … Searc
Questions | Set 3
https://prepbytes.com/blog/capgemini-pseudocode-questions-set-3/?utm_source=chatgpt.com 2/14
8/31/25, 11:19 PM Capgemini Pseudocode Questions | Set 3 | Company Placement Process
Pages
PREPBYTES
ALGORITHMS
SEPTEMBER
15, 2022
ARRAY
BACKTRACKING
C PROGRAMMING
In this article, we will be discussing the
LANGUAGE
Capgemini Pseudocode Questions and
Answers. Capgemini doesn’t care if you’re a
C++ PROGRAMMING
non-CS/IT student, they will anyways ask you LANGUAGE
about Data Structures. According to them, if
you’re applying to an IT company, you must CAPGEMINI
know coding.
CIRCULAR LINKED LIST
No. of questions
Topics COMPANY PLACEMENT
(approx)
PROCEDURE
Pseudo Code on C 16 Questions
COMPETITIVE CODING
Pseudo Code on
4
C++ COMPUTATIONAL
GEOMETRY
Pseudo Code on
10 Questions
DSA CSE SUBJECTS
DATA STRUCTURE
Capgemini Pseudocode Questions
1. Find the output of the following code. DOUBLY LINKED LIST
DYNAMIC
main() { PROGRAMMING
int a = 10;
if ((fork ( ) == 0)) GAME THEORY
a++;
GRAPHS
https://prepbytes.com/blog/capgemini-pseudocode-questions-set-3/?utm_source=chatgpt.com 3/14
8/31/25, 11:19 PM Capgemini Pseudocode Questions | Set 3 | Company Placement Process
printf ("%dn", a ); GREEDY ALGORITHM
}
HASHING
1. 10 and 11 HEAP
2. 10
INTERVIEW
PREPARATION
3. 11
4. 11 and 11 INTERVIEW TIPS
Answer: 10
JAVA PROGRAMMING
LANGUAGE
2. Find the output of the following code.
JAVASCRIPT
#include <stdio.h> PROGRAMMING
main( ) { LANGUAGE
int i;
for ( i=0; i < 5; i++ ) { Languages
int i = 10;
printf ( " % d ", i ); LINKED LIST
i++;
} LINKED LIST USING C
return 0;
} MATHEMATICS
OPERATING SYSTEM
1. 10 11 12 13 14
POINTERS
2. 10 10 10 10 10
PYTHON
3. 0 1 2 3 4
PROGRAMMING
LANGUAGE
4. Compilation error
Answer: 10 10 10 10 10
QUEUE
3. Guess the output of the pseudo-code.
RECURSION
SEARCHING
struct
{
https://prepbytes.com/blog/capgemini-pseudocode-questions-set-3/?utm_source=chatgpt.com 4/14
8/31/25, 11:19 PM Capgemini Pseudocode Questions | Set 3 | Company Placement Process
int si; SEGMENT TREE
double d;
float cp; SORTING
} s;
void STACK
main ()
{ STRING
printf ("%d, %d, %d", sizeof (s.si), si
} TREES
1. 6,10,8
Recent Articles
2. 4,8,4
3. 2,8,8 AUGUST 29, 2025
4. 2,4,4 What is
Computer
Answer: 4,8,4
Software?
1 Types, System
4. Find the output of the following code. Software &
Application
Software
int main ()
{
AUGUST 29, 2025
int a, b;
Spiral Model in
a = b = 4; Software
b = a++; Engineering:
printf ("%d %d %d %d", a++, --b, ++a, b 2 Phases,
} Advantages &
Examples
AUGUST 29, 2025
1. 5 3 7 3
Java Design
Patterns:
2. 5 4 5 3
Types,
3. 6 2 6 4 3 Examples &
Best Practices
4. Syntax Error
Answer: 6 2 6 4 AUGUST 29, 2025
https://prepbytes.com/blog/capgemini-pseudocode-questions-set-3/?utm_source=chatgpt.com 5/14
8/31/25, 11:19 PM Capgemini Pseudocode Questions | Set 3 | Company Placement Process
5. Guess the output of the following code. What is DNS in
Computer
4 Networks:
Types and
int main ()
Applications
{
Explained
int a[4] = { 25, 16 };
printf ("%d %d", a[0] & a[1], a[1] | a[2 AUGUST 29, 2025
} Primary Key vs
Foreign Key:
Database
5 Fundamentals
1. Syntax error because of invalid operator Explained
symbol
AUGUST 28, 2025
2. 25 16
Combinational
3. 16 16 vs Sequential
Circuits: Key
4. Syntax error because of invalid array 6 Differences &
Applications
initialization
Answer: 16 16
6. Find the output of the following
pseudocode.
int main ()
{
static int num = 8;
printf ("%d", num = num - 2);
if (num != 0)
main ();
}
1. 8 6 4 2
2. Infinite output
3. Invalid because the main function can’t
call itself.
https://prepbytes.com/blog/capgemini-pseudocode-questions-set-3/?utm_source=chatgpt.com 6/14
8/31/25, 11:19 PM Capgemini Pseudocode Questions | Set 3 | Company Placement Process
4. 6 4 2 0
Answer: 6 4 2 0
7. Find the output of the following code.
int main ()
{
int check = 2;
switch (check)
{
case 1:
printf ("D.W.Steyn");
case 2:
printf (" M.G.Johnson");
case 3:
printf (" Mohammad Asif");
default:
printf (" M.Muralidaran");
}
return 0;
}
1. D.W.Steyn
2. D.W.Steyn M.G.Johnson
3. M.G.Johnson
4. M.G.Johnson Mohammad Asif
M.Muralidaran
Answer: M.G.Johnson Mohammad Asif
M.Muralidaran
8. Guess the output of the following code.
int main() {
int m = -10, n = 20;
https://prepbytes.com/blog/capgemini-pseudocode-questions-set-3/?utm_source=chatgpt.com 7/14
8/31/25, 11:19 PM Capgemini Pseudocode Questions | Set 3 | Company Placement Process
n = (m < 0) ? 0 : 1;
printf("%d %d", m, n);
}
1. -10 0
2. 10 20
3. 20 -10
4. 0 1
Answer: -10 0
9. Predict the output of the given pseudo
code.
int main() {
char c = 'f';
switch (c) {
default: printf("unknown colour ");
case 'r': case 'R': printf("Red ");
case 'g': case 'G': printf("Green ");
case 'b': case 'B': printf("Blue");
}
}
1. Red Green Blue
2. Error
3. Green unknown colour Red
4. unknown colour Red Green
Answer: unknown colour Red Green
10. Guess the output of the given code
below.
https://prepbytes.com/blog/capgemini-pseudocode-questions-set-3/?utm_source=chatgpt.com 8/14
8/31/25, 11:19 PM Capgemini Pseudocode Questions | Set 3 | Company Placement Process
int main() {
int a = 100, b = 74;
if (a++ > 100 && b++ > 200)
printf("High values with a = %d b = %d
if (a++ < 100 || b++ < 200)
printf("Low values with a = %d b = %dn
}
1. Low values with a = 100 b = 74
2. Low values with a = 101 b = 73
3. Low values with a = 102 b = 75
4. Low values with a = 104 b = 75
Answer: Low values with a = 102 b = 75
11. Find the output of the following code.
int main() {
char p[] = "%dn";
p[1] = 'c';
printf(p, 65);
int k=40, *a;
a = &k;
(*a)++; k++;
printf("n k=%d",k);
}
1. c k=40
2. b k=44
3. A k=42
4. a k=40
Answer: A k=42
https://prepbytes.com/blog/capgemini-pseudocode-questions-set-3/?utm_source=chatgpt.com 9/14
8/31/25, 11:19 PM Capgemini Pseudocode Questions | Set 3 | Company Placement Process
12. Guess the output of the given code.
main() {
int i = 2, *j;
j = &i;
printf("%d", i**j*i+*j);
}
1. Syntax error due to Invalid expression in
printf
2. Print junk value
3. 16
4. 10
Answer: 10
13. Guess the output of the following
pseudo-code.
int main() {
int x,y,z;
x = '1'-'0'; /* line-1 */
y = 'a'-'b'; /* line-2 */
z = x + y;
printf("%d",z);
}
1. 0
2. Error because of incorrect line-1 only.
3. Error because of incorrect line-1 and
line-2.
https://prepbytes.com/blog/capgemini-pseudocode-questions-set-3/?utm_source=chatgpt.com 10/14
8/31/25, 11:19 PM Capgemini Pseudocode Questions | Set 3 | Company Placement Process
4. Error because of incorrect line-2 only.
Answer: 0
14. Find the output of the given code.
void main ( )
{
char *P = "ayqm" ;
char c;
c = ++*p ;
printf ("%c", c);
}
1. a
2. 0x56FA
3. m
4. y
Answer: a
15. Guess the output of the given pseudo
code.
void main()
{
int a = 1, b=2, c=3;
char d = 0;
if(a,b,c,d)
{
printf("EXAM");
}
}
1. No Output and No Error
https://prepbytes.com/blog/capgemini-pseudocode-questions-set-3/?utm_source=chatgpt.com 11/14
8/31/25, 11:19 PM Capgemini Pseudocode Questions | Set 3 | Company Placement Process
2. EXAM
3. Run time error
4. Compile time error
Answer: No Output and No Error
Capgemini Pseudocode Questions
FAQs
1. Is pseudocode easy to learn?
Pseudocode is a simple way to represent an
algorithm or program. It is written easily in a
word processing application and easily
modified. Pseudocode is easy to understand
and can be written by anyone. Pseudocode
can be used with various structured
programming languages.
2. Pseudocode is mainly written in which
programming language?
Pesudo-Codes are the language-free
representation of the algorithm that explains
the more coded format of the algorithm but
not the complete representation of the code
in any specific language.
3. How many Questions are there in
Capgemini Pseudocode MCQs?
There are 30 questions that need to be
solved within 30 mins.
4. What is the syllabus for Capgemini
pseudocode round questions and
Capgemini pseudocode questions and
answers?
There is no such Syllabus for Capgemini
pseudocode questions and answers but from
https://prepbytes.com/blog/capgemini-pseudocode-questions-set-3/?utm_source=chatgpt.com 12/14
8/31/25, 11:19 PM Capgemini Pseudocode Questions | Set 3 | Company Placement Process
what we have observed it has basic C input-
output questions and a basic C Syllabus that
was there first and we have given chapter-
wise questions above please check them
Capgemini Pseudocode Round Questions.
We tried to discuss Capgemini Pseudocode
Questions in this article. We hope this article
gives you a better understanding of basics in
Data Structures and Algorithms. Prepbytes
also provides a good collection of Foundation
Courses that can help you enhance your
coding skills. Want to make sure you ace the
interview in one go? Join our Placement
Program that will help you get prepared and
land your dream job at MNCs. Mentors of
Prepbytes are highly experienced and can
provide you with basic, in-depth subject
knowledge for better understanding.
Previous
Capgemini Pseudocode Questions | Set 2
Next
Capgemini Exam Pattern | Game-Based Aptitude Test
Pattern
Leave a Reply
You must be logged in to post a comment.
https://prepbytes.com/blog/capgemini-pseudocode-questions-set-3/?utm_source=chatgpt.com 13/14
8/31/25, 11:19 PM Capgemini Pseudocode Questions | Set 3 | Company Placement Process
Related Cognizant Cognizant
GenC GenC
Post
Interview Interview
SEPTEMBER 26, SEPTEMBER 22,
2022 2022
DBMS Cognizant
Interview GenC
Questions Interview
SEPTEMBER 21, SEPTEMBER 21,
2022 2022
Top 10 Most Capgemini
Frequent Exam Pattern |
DBMS Coding
SEPTEMBER 20, SEPTEMBER 15,
2022 2022
FOLLOW US CONTACT US
+91-7969002111
[email protected]
QUICK LINKS
Interview Notes Mock Tests Placement Programme Coding Courses Mock
Interview About Us Blog
https://prepbytes.com/blog/capgemini-pseudocode-questions-set-3/?utm_source=chatgpt.com 14/14