Important C programming language (MCQ)
Solved Questions and Answers
Welcome to our exclusive collections of C programming language (MCQ) Questions and with answers. C is popular programming language and is best language to test knowledge of candidate and aspirants.You can find here MCQ sets of imprtant c programming language. These MCQs questions are very helpful for those candidates ans aspirants who are preparing for the various government and non government exam as well as in interview.
C programming language MCQs - Questions and Answers | SET-4
Question 31-40
Question : 31
The expression x=4+2 % -8 evaluates to
[A]. -6[B]. 6
[C]. 4
[D]. None of the above
Question : 32
What will be the output of the following program? main( ) { int i=5; printf(“%d”, i=++i==6); }
[A]. 0[B]. 7
[C]. 6
[D]. 1
Question : 33
If an integer occupies 4 bytes and a character occupies 1 byte of memory, each element of the following structure would occupy how many bytes?
struct name {
int age;
char name[30];
};
[B]. 32
[C]. 34
[D]. 36
Question : 34
Output of the program below is. int i; main( ) { printf(“%d”, i); }
[A]. 1[B]. 0
[C]. -1
[D]. Null
Question : 35
Which of the following is FALSE in C?
[A]. Keywords can be used as variable names[B]. Variable names can contain a digit
[C]. Variable names do not contain a blank space
[D]. Capital letters can be used in variables
Question : 36
What is the output of the following program segment? main( ) { int=1; do { printf(“%d . . “, i); } while (i–); }
[A]. 0 . . 1 . .[B]. 1 . . 0 . .
[C]. 0
[D]. -1
Question : 37
Assume that variable x resides at memory location 1234, y at 1111, and p at 2222.
Int x=1, y=2, *p;
p=&x;
y=*p;
What will be the value of y after the execution of the above code?
[B]. 1
[C]. 1234
[D]. 1111
Question : 38
What will be the output of the program? # include int main() {int a[5]={5,1,15,20,25}; int i, j, m; i=++a[1]; j=a[1]++; m=a[i++]; printf(“%d, %d, %d”, i,j,m); return0;}
[A]. 2, 1, 15[B]. 1, 2, 5
[C]. 3, 2, 15
[D]. 2, 3, 20
Question : 39
In C a variable cannot contain
[A]. Blank Spaces[B]. Decimal Point
[C]. Hyphen
[D]. All of the above
Question : 40
What is the output of the following program segment? main( ) { long i=65536; printf(“%dn”, i); }
[A]. A) 0[B]. 65536
[C]. -1
[D]. 65
To Read Next Set
Click on below links
- C programming language MCQs
For All Competitive Exams | SET-1 - C programming language MCQs
For All Competitive Exams | SET-2 - C programming language MCQs
For All Competitive Exams | SET-3 - C programming language MCQs
For All Competitive Exams | SET-4 - C programming language MCQs
For All Competitive Exams | SET-5 - C programming language MCQs
For All Competitive Exams | SET-6 - C programming language MCQs
For All Competitive Exams | SET-7 - C programming language MCQs
For All Competitive Exams | SET-8 - C programming language MCQs
For All Competitive Exams | SET-9 - C programming language MCQs
For All Competitive Exams | SET-10
Please Read These Useful Post Also
कृपया इन्हें भी पढ़ें
MCQs Practice Sets for Sure Success in all competitive exams
- C Language
- MS Access
- Computer Awareness in hindi
- Computer Awareness
- IT Computer
- C++ MCQ
- MS EXCEL
- MS Word
- HTML
- CSS
- PPT
- Java
- PHP
- Web Design
- IT-Abbreviations
- OS System
- Indian GK
- Indian History
- Geography
- Indian Politics
- Indian Economy
- Indian Constitution
- Indian Railaway
- EVS
- India Sports GK
- World GK
- CTET
- Current Affairs
- Psychology
- Biology
- Physics
- Chemistry
- Mathematics
- English Grammar
- Hindi Grammar
- Banking
- HP-All Exam
- HP-JAO
- HP-Allied Services
- HP-Naib Tehsildar
Collections of Microsoft Access Database (MCQs) Questions and with answers. All questions are of multiple choice type.These MCQs are helpful in preparing exam like TET, CTET, Bank Clerical, BANK PO, AIPMT, PMT, Police exams ,army exams , CLAT, CMAT, CSIR, CTET, GATE, GMAT, General GRE, IAS, ICSE CDSE , SBI Clerk , SBIPO, PO, RRB , IELTS, IES, IEcoS, IFS, IGS, ISS, JEE, JEE Advanced, KVPY, LSAT, NDA, NEET, NEET PG, NEST, NSTSE, NTSE, Olympaid, PLAB, SAT, SSC CGL, GRE, TOEFL, UCO, UGC, USMLE, XAT, IBPS PO , PSc, State PSC, Patwari, Samvida, Teacher recruitment test, UPSC, SSC, CGL, SI, CTET, TET, CDS, MAT , SSC 10+2 , CLAT , NIFT , SBI , IBPS Clerk, Vyapam etc
If you are planning to qualify teacher eligibility test, TET, CTET, all India state TET, JEE Main, NEET UG, AIPMT, AIIMS, AFMC, DPMT, BHU, IP MBBS, JIPMER, State PMT, MHT , you can practice these question papers online. We have taken all the necessary care to provide you with genuine question papers and the answers from reliable sources. Hope our labors server student’s community in better way.
Visit http://examsuccessmaster.blogspot.com/ for a complete list of exam quizzes e.g. Child development, Psychlogy, Inclusive Education, Social Studies, physics || general science MCQ, Himachal pradesh Gk, chemistry, physics, Mathematics, math, General science, computer basics, old question papers, environmental studies,Geography, Polity Social Issue, Social Science complete study material,aptitude tests, Practice sets,HPTET,Engineering Interview, Civil Engineering, Mechanical Engineering, Electrical Engineering, most frequently asked,tests,HPTET Questions and Answers, Engineering Multiple choice, MCQ Questions on various subjects and topics and much more.
No comments:
Post a Comment