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.
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
41 Responses to C Aptitude Questions and Answers with pdf
« C++ Aptitude Questions and Answers with PDF GSAT Sample Questions Paper with Solution and PDF »
programming in c
programming in c
programming in c
programming in c
programming in c
programming in c
programming in c
programming in c
programming in c
programming in c
Msc computer science
Msc computer science
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.
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.
give me apti pdf of c language with answer
give me apti pdf of c language with answer
give me apti pdf of c language with answer
I want to prepare a aptitude for interview specialy for cse job
[…] 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. […]
plz send the c programming questions to my mail that are asked in interview
please send some c programming aptitute question in mu mail.
How to improve our english knowledge and programming skills?
I am looking for most popular c programs asked by top Mnc’s in technical written test.
Please give description/explanation for answers of C apti questions