• Study Materials – Company wise
    • Infosys Archive
    • Accenture Archive
    • AMCAT Archive
    • Capgemini Archive
    • Cisco Archive
    • CoCubes Archive
    • Cognizant(CTS) Archive
    • Dell Archive
    • Deloitte Archive
    • DXC Archive
    • Goldman Sachs Archive
    • Hexaware Technologies Archive
    • LTI Archive
    • MindTree Archive
    • TCS Archive
    • Virtusa Archive
    • Wipro Archive
  • Interview Preparation – E Books
    • C Interview Questions
    • Data Structures Interview Questions
    • DBMS Interview Questions
    • HR Interview Questions
    • Java Interview Questions
    • Operating System Interview Questions
    • Python Interview Questions
    • SQL Query Interview Questions
  • Programming
    • C Programming MCQs
    • C Code Snippets – Output Questions
    • Python Code Snippets – Output Questions
  • Aptitude
    • Verbal Ability for Placements
    • Quant for Placements
  • Register
  • Login
CODE OF GEEKS

We at CODE OF GEEKS, aim at providing best and quality content for our users at no extra cost.

    • Study Materials – Company wise
      • Infosys Archive
      • Accenture Archive
      • AMCAT Archive
      • Capgemini Archive
      • Cisco Archive
      • CoCubes Archive
      • Cognizant(CTS) Archive
      • Dell Archive
      • Deloitte Archive
      • DXC Archive
      • Goldman Sachs Archive
      • Hexaware Technologies Archive
      • LTI Archive
      • MindTree Archive
      • TCS Archive
      • Virtusa Archive
      • Wipro Archive
    • Interview Preparation – E Books
      • C Interview Questions
      • Data Structures Interview Questions
      • DBMS Interview Questions
      • HR Interview Questions
      • Java Interview Questions
      • Operating System Interview Questions
      • Python Interview Questions
      • SQL Query Interview Questions
    • Programming
      • C Programming MCQs
      • C Code Snippets – Output Questions
      • Python Code Snippets – Output Questions
    • Aptitude
      • Verbal Ability for Placements
      • Quant for Placements
    • Register
    • Login
  • [email protected]
  • ..
Login / Register
Apply Now
CODE OF GEEKS
CODE OF GEEKS
  • Study Materials – Company wise
    • Infosys Archive
    • Accenture Archive
    • AMCAT Archive
    • Capgemini Archive
    • Cisco Archive
    • CoCubes Archive
    • Cognizant(CTS) Archive
    • Dell Archive
    • Deloitte Archive
    • DXC Archive
    • Goldman Sachs Archive
    • Hexaware Technologies Archive
    • LTI Archive
    • MindTree Archive
    • TCS Archive
    • Virtusa Archive
    • Wipro Archive
  • Interview Preparation – E Books
    • C Interview Questions
    • Data Structures Interview Questions
    • DBMS Interview Questions
    • HR Interview Questions
    • Java Interview Questions
    • Operating System Interview Questions
    • Python Interview Questions
    • SQL Query Interview Questions
  • Programming
    • C Programming MCQs
    • C Code Snippets – Output Questions
    • Python Code Snippets – Output Questions
  • Aptitude
    • Verbal Ability for Placements
    • Quant for Placements
  • Register
  • Login
0

Cart

CapGemini Pseudo Code Questions with Explanation [50+]

  • August 11, 2020
  • CODE OF GEEKS
  • 7


1. What will be the output of following code :

int A[5][5], k, j;
for(k = 0; k<5; ++k)
for(j=0; j<5; j++)
A[k][j] = A[j][k];

A. It transposes the given matrix A
B. It does not alter the given matrix.
C. It makes the given matrix A, symmetric
D. None of the above.

Ans. A

Explanation : Above logic is to deduce the transpose of a matrix.

2. What is the output of given code :

#include<stdio.h>
int main()
{
long double a;
long double b;
int arr[sizeof(!a+b)];
printf(“%d”,sizeof(arr));
}

A. Run time Error
B. 32
C. 64 with warning
D. No output

Ans. C

Explanation : Size of long double in GCC Linux basede compilers : 16

Size of Integer : 4

So, Size of !(a+b) : 16

Integer array of size 16 : 16 * 4 => 64

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
  • Previous LTI Aptitude Questions
  • Next Virtusa Verbal Ability Questions

7 comments on “CapGemini Pseudo Code Questions with Explanation [50+]”

  1. Akanksha says:
    August 11, 2020 at 3:04 pm

    sir in ques 1 answer should be ‘b’ i guess

    Reply
    1. Shreyansh Dwivedi Shreyansh Dwivedi says:
      August 11, 2020 at 3:29 pm

      No.

      Reply
      1. Rajat Nagarkar Rajat Nagarkar says:
        July 9, 2021 at 3:02 am

        The answer is neither ‘b’ and nor ‘a’ it is ‘c’ because elements of upper triangle of the matrix are getting copied to lower triangle of the matrix therefore it is making the matrix ‘Symmetric’.

        Reply
  2. Varsha says:
    August 12, 2020 at 9:58 am

    Sir can you please explain how c will be the option of question 2

    Reply
  3. Mani says:
    August 13, 2020 at 6:53 am

    Can u provide explanation…..

    Reply
  4. Rajnandini Sharma says:
    August 14, 2020 at 4:49 am

    Sir my suggestions is that you should add the whole solutions of questions because anybody having trouble how they resolve their issue.
    And is my solution and your option does not match how i get the concept???

    Reply
  5. Mohit Pamar says:
    August 20, 2020 at 5:23 am

    Answer of Question No. 7 is 21

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Capgemini Study Materials

  • Capgemini Quant Questions
  • Capgemini Logical Reasoning Questions
  • Capgemini Verbal Ability Questions [sample]
  • Capgemini Technical Questions
  • Capgemini Pseudo Code Questions

Study Materials : Company Wise

CODE OF GEEKS

Subscribe to Newsletter

CODE OF GEEKS

Learn | Code | Achieve

Reach us

[email protected]
We at CODE OF GEEKS, aim at providing quality content to our users at no cost.
CODE OF GEEKS

Important Pages

About us
Advertise
Privacy Policy
Terms and Conditions

Placements – Study Materials

TCS NQT     Wipro     CapGemini
Accenture     MindTree     CTS
DXC     Hexaware Technologies     AMCAT
CoCubes     Goldman Sachs     Dell
Cisco     Deloitte     Virtusa     LTI     Infosys   

Courses

  • Mail Us
  • Login/Register

Recent Posts

What is Cloud Computing | Cloud Computing Applications | Cloud Development Models| SaaS vs PaaS vs IaaS
  • October 23, 2021
What is Amazon Web Services | AWS Regions & AZs | Different AWS Services
  • October 19, 2021

Copyright 2021 CODE OF GEEKS. All Rights Reserved.

  • →