C Aptitude Questions and Answers with pdf

Sep 1 • Resources • 43059 Views • 41 Comments on C Aptitude Questions and Answers with pdf

C language is the most common and general purpose programming language available and has the presence of its compilers in maximum operating systems and computer architectures. C language was initially developed at AT&T Bell Labs by Dennis Ritchie. It is the most preferred language in the various companies’ demand list for job vacancies in the organisation. One must have the knowledge of C language at least who want to get a new Job these times. C language gives a basic view of programming that can be used in the learning the high level programming tools. Let’s have a look over the latest aptitude questions and answers on C language.

C Aptitude question and answer

Learn C

Following are the some of the important C aptitude questions and answers which are asked in placement drives of several recruiting companies-

Ques.1> Mark the correct output of following C program-

#include <stdio.h>
void main()
{
int k = 8;
int x = 0 == 1 && k++;
printf(“%d%d\n”, x, k);
}

a) 0 9
b) 0 8
c) 1 9
d) 1 8

Ques.2> Mark the correct output of following C program-

#include <stdio.h>
void main()
{
1 < 2 ? return 1: return 2;
}

a) returns 1
b) Varies
c) returns 2
d) Compilation time error

Ques.3> Mark the correct output of following C program-

#include <stdio.h>
int main()
{
int x = 2, y = 1;
x *= x + y;
printf(“%d\n”, x);
return 0;
}

a) 6
b) 5
c) Undefined behaviour shown
d) Compilation time error

Ques.4> Mark the correct output of following C program-

#include <stdio.h>
int main()
{
int x = 2, y = 2;
x /= x / y;
printf(“%d\n”, x);
return 0;
}

a) 2
b) 0.5
c) 1
d) Undefined behaviour shown

Ques.5> Give the output of following C language code-

main()
{
char *p;
int *q;
long *r;
p=q=r=0;
p++;
q++;
r++;
printf(“%p…%p…%p”, p, q, r);
}

Ques.6> Give the output of following C language code-

main()
{
extern int i;
i=20;
printf(“%d”,i);
}

Ques.7> Give the output of following C language code-

void main()
{
int  const * p=5;
printf(“%d”,++(*p));
}

Ques.8> Give the output of following C language code-

main()
{
int c=- -2;
printf(“c=%d”,c);
}

Ques.9> Give the output of following C language code-

main()
{
int c=- -2;
printf(“c=%d”,c);
}

Ques.10> Give the output of following C language code-

main()
{
int i=10;
i=!i>14;
Printf (“i=%d”, i);
}

Ques.11> Give the output of following C language code-

#include <stdio.h>
#define a 10
main()
{
#define a 50
printf(“%d”,a);
}

Ques.12> Give the output of following C language code-

main()
{
clrscr();
}
clrscr();

Ques.13> Give the output of following C language code-

main()
{
int *j;
{
int i=10;
j=&i;
}
printf(“%d”,*j);
}

Ques.14> Give the output of following C language code-

#include<stdio.h>
main()
{
register i=5;
char j[]= “hello”;
printf(“%s %d”,j,i);
}

Ques.15> Give the output of following C language code-

main()
{
int i=_l_abc(10);
printf(“%d\n”,–i);
}
int _l_abc(int i)
{
return(i++);
}

Ques.16> Mark the correct output of following C program-

a) Only Global variables can be defined
b) Only local variables can be defined
c) Both Local and Global Variables can be defined
d) None of these

Ques.17> Mark the correct output of following C program-

a) Address of the value
b) Value present at the address
c) Depends on the actual scenario
d) None of these

Above mentioned questions are the important C Aptitude questions and answers that has been asked in the various interview process of some top recruiting companies and can be very helpful for the preparation of any exam as well as recruitment drive.

You can also download the set of C aptitude questions here in the pdf C APTITUDE QUESTIONS Pdf

Download the answers of the above questions as well as given set of C aptitude questions in Pdf from here C Aptitude Questions ANSWER SHEET Pdf

Hope this will help you in achieving what you want to get. Write your views and suggestions for us in our comment section below this article.

Related Links-
C Programming Language
Unsolved C Aptitude Questions
Questions on Functions in C Language

Tell us Your Queries, Suggestions and Feedback

Your email address will not be published.

41 Responses to C Aptitude Questions and Answers with pdf

  1. patel says:

    programming in c

  2. patel says:

    programming in c

  3. patel says:

    programming in c

  4. patel says:

    programming in c

  5. patel says:

    programming in c

  6. patel says:

    programming in c

  7. patel says:

    programming in c

  8. patel says:

    programming in c

  9. patel says:

    programming in c

  10. patel says:

    programming in c

  11. anbalagan says:

    Msc computer science

  12. anbalagan says:

    Msc computer science

  13. Abhishek Joshi says:

    Which are list of Exams for Mechanical Engineering Freshers?
    Mechanical Core company list and how to apply for them?
    All the information required for the Fresher of Mechanical Engineering.

  14. Abhishek Joshi says:

    Which are list of Exams for Mechanical Engineering Freshers?
    Mechanical Core company list and how to apply for them?
    All the information required for the Fresher of Mechanical Engineering.

  15. Anonymous says:
  16. Mirtyunjay kumar says:
  17. Mirtyunjay kumar says:
  18. Mirtyunjay kumar says:
  19. Mirtyunjay kumar says:
  20. Mirtyunjay kumar says:
  21. Mirtyunjay kumar says:
  22. Mirtyunjay kumar says:
  23. Mirtyunjay kumar says:
  24. Mirtyunjay kumar says:
  25. Mirtyunjay kumar says:
  26. Mirtyunjay kumar says:
  27. Mirtyunjay kumar says:
  28. Ravikiran Byati says:
  29. Ravikiran Byati says:
  30. Akshay says:

    give me apti pdf of c language with answer

  31. Akshay says:

    give me apti pdf of c language with answer

  32. Akshay says:

    give me apti pdf of c language with answer

  33. Mounika.s says:
  34. Anonymous says:
  35. Rampunitha says:

    I want to prepare a aptitude for interview specialy for cse job

  36. Bank Clerical Questions And Answers Pdf | bv says:

    […] C Aptitude Questions and Answers pdf multiple and … – C Aptitude Questions and Answers in pdf with multiple choice and programming questions with their answers, download solved question paper for freshers pdf. […]

  37. sravani says:

    plz send the c programming questions to my mail that are asked in interview

  38. anish says:

    please send some c programming aptitute question in mu mail.

  39. santhiya.v says:

    How to improve our english knowledge and programming skills?

  40. Ankit Kumar says:

    I am looking for most popular c programs asked by top Mnc’s in technical written test.

  41. Ram says:

    Please give description/explanation for answers of C apti questions

« »