Capgemini Pseudo Code MCQs

If you’re a 2021 pass-out, Capgemini has retained the Pseudocode round in its brand new recruitment pattern.

Capgemini Pseudo Code MCQs – Pattern

The pattern for Capgemini pseudo code MCQs up until last year is given below. Capgemini pseudo code Mcqs section consisted of 25 questions to be answered in 25 minutes. This means approximately 1 minute is the maximum amount you can take to answer each question.

In Capgemini, this is a very crucial round. Though Capgemini has never announced sectional cutoff, yet the overall test cutoff is high. Hence you need to answer the maximum number of questions to clear the test. Generally, a minimum of 70% questions needs to be answered rightly in each section.

SectionNumber of questionsTime duration
Pseudo code MCQ’s2020 mins

Capgemini Pseudo Code MCQs – Syllabus

The syllabus for Capgemini pseudo code MCQs section is as given below. 

Questions will be mostly on these topics only.

  • Programming Logic Based MCQs (Pseudocode)
  • C
  • C++
  • Data Structures
  • OOPS

Check out our course on Capgemini for shortcuts, tips, and tricks

Capgemini Pseudo Code MCQs

void main()

{

int const * p=5;

printf("%d",++(*p))

;

}
Runtime error
Compiler error: Cannot modify a constant value.
No Output
Logical error

Correct!

Wrong!

main()

{

char s[

]="man"; int i;

for(i=0;s[ i ];i++)

printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]);

}
mmm m aaaa nnnn
mmmm aaa a nn nn
mma aa nnnn a
mmm aa nnnn a

Correct!

Wrong!

main()

{

static int var = 5;

printf("%d ",var--);

if(var)

main();

}
5
1 2 3 4 5
5 4 3 2 1
No Output

Correct!

Wrong!

main()

{

int c[ ]={2.8,3.4,4,6.7,5};

int j,*p=c,*q=c;

for(j=0;j<5;j++) {

printf(" %d ",*c);

++q; }

for(j=0;j<5;j++){

printf(" %d ",*p);

++p; }

}
2 2 2 2 2 2 3 4 6 5
2 2 2 2 3 3 4 5 6 6
2 3 3 3 3 3 4 5 5 6
2 2 3 3 4 4 5 5 6 6

Correct!

Wrong!

main()

{

extern int i;

i=20;

printf("%d",i);

}
No Output
Compilation Error : Undefined symbol '_i'
Linker Error : Undefined symbol '_i'
0

Correct!

Wrong!

main()

{

int i=-1,j=-1,k=0,l=2,m;

m=i++&&j++&&k++||l++;

printf("%d %d %d %d %d",i,j,k,l,m);

}
0 0 1 3 1
-1 -1 0 2 1
0 0 -1 2 1
0 -1 0 2 0

Correct!

Wrong!

main()

{

char *p;

printf("%d %d ",sizeof(*p),sizeof(p));

}
2 1
1 1
1 2
2 2

Correct!

Wrong!

main()

{

int i=3;

switch(i)

{

default:printf("zero");

case 1: printf("one");

break;

case 2:printf("two");

break;

case 3: printf("three");

break;

}

}
zero
one
two
three

Correct!

Wrong!

main()

{

printf("%x",-1<<4);

}
fff0
0fff
ff0f
0

Correct!

Wrong!

main()

{

char string[]="Hello World";

display(string);

}

void display(char *string)

{

printf("%s",string);

}
Error : Type mismatch in redeclaration of function display
Compiler Error : Type mismatch in redeclaration of function display
No Error
No Output

Correct!

Wrong!

main()

{

int c=- -2;

printf("c=%d",c);

}
c=-2;
c=2;
c=0;
No Output

Correct!

Wrong!

#define int char

main()

{

int i=65;

printf("sizeof(i)=%d",sizeof(i));

}
sizeof(d)=1
sizeof(i)=65
sizeof(i)=1
sizeof(i)=4

Correct!

Wrong!

main()

{

int i=10;

i=!i>14;

printf("i=%d",i);

}
i=0
i=1
i=14
i=10

Correct!

Wrong!

#include<stdio.h>

main()

{

char s[]={'a','b','c','\n','c','\0'};

char *p,*str,*str1;

p=&s[3];

str=p;

str1=s;

printf("%d",++*p + ++*str1-32);

}
3
32
47
77

Correct!

Wrong!

#include<stdio.h>

main()

{

int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} };

int *p,*q;

p=&a[2][2][2];

*q=***a;

printf("%d--- %d",*p,*q);

}
SomeGarbageValue --0
SomeGarbageValue --1
No Output
Compilation Error

Correct!

Wrong!

#include<stdio.h>

main()

{

struct xx

{

int x=3;

char name[]="hello";

};

struct xx *s;

printf("%d",s->x);

printf("%s",s->name);

}
No Output
Compiler Error
'hello'
3

Correct!

Wrong!

#include<stdio.h>

main()

{

struct xx

{

int x;

struct yy

{

char s;

struct xx *p;

};

struct yy *q;

};

}
Compiler Error
Runtime error
Semantic error
Logical error

Correct!

Wrong!

main()

{

printf("\nab");

printf("\bsi");

printf("\rha");

}
nab
bsi
hai
rha

Correct!

Wrong!

main()

{

int i=5;

printf("%d%d%d%d%d%d",i++,i--,++i,--i,i);

}
45554
44545
45455
45545

Correct!

Wrong!

#define square(x) x*x

main()

{

int i;

i = 64/square(4);

printf("%d",i);

}
4
16
64
Runtime Error

Correct!

Wrong!

main()

{

char *p="hai friends",*p1;

p1=p;

while(*p!='\0') ++*p++;

printf("%s %s",p,p1);

}
ibj!gsjfoet
ibj!sgjfoet
ibj!gsjtoef
idj!gsjfoet

Correct!

Wrong!

#include <stdio.h>

#define a 10

main()

{

#define a 50

printf("%d",a);

}
0
1
10
50

Correct!

Wrong!

#define clrscr() 100

main()

{

clrscr();

printf("%d\n",clrscr());

}
10
100
Syntax error
Runtime error

Correct!

Wrong!

main()

{

printf("%p",main);

}
0
Nothing will be printed
Some address will be printed
RuntimeError

Correct!

Wrong!

main()

{

clrscr();

}

clrscr();
Syntax error
Semantic error
Compilation error
No output/error

Correct!

Wrong!

Share the quiz to show your results !

Subscribe to see your results

Pseudo Code 1

I got %%score%% of %%total%% right

%%description%%

%%description%%

Loading...

Stay connectedExclusive content
  • Get notified of the latest off-campus jobs.
  • Get the free course and reading materials of aptitude, verbal ability, Python, and logical reasoning delivered directly to your Email.
  • Get tips from experts and HR managers.
Scroll to Top
error: Content is protected!
Login
Forgot Password
Enter your email address or username and we’ll send you instructions to reset your password.