- Tenses Multiple Choice Questions Pdf Free
- Tenses Multiple Choice Questions Pdf Online
- Present Perfect Tense Multiple Choice Questions Pdf
- Tenses Multiple Choice Questions With Answers Pdf
- Multiple Choice Questions On Tenses With Answers Pdf Class 10
View
10.695Download
4
Tenses Multiple Choice Questions Pdf Free
Verb Tenses, Word Choice, Subject-Verb Agreement. Past, present or future? Verb tenses multiple choice questions. English Grammar Multiple Choice Questions.pdf - Free download Ebook, Handbook, Textbook, User Guide PDF files on the internet quickly and easily. Tenses Multiple Choice Questions & Answers for competitive exams. These Multiple Choice Questions with answers are very important for competitive exams like exams UGC NET, GATE, IBPS Specialist. 8/26/2011 C C PROGRAMMING QUESTIONS AND ANSWER Ritesh kumar 1. What will be output if you will compile and execute the following c code?
Embed Size (px)
Text of c Multiple Choice Questions and Answers PDF
8/26/2011
C
C PROGRAMMING QUESTIONS AND ANSWER
http://cquestionbank.blogspot.com
| Ritesh kumar
1. What will be output if you will compile and execute the following c code? #include int main(){ int i=320; char *ptr=(char *)&i; printf('%d',*ptr); return 0; }
Tenses Multiple Choice Questions Pdf Online
(A) 320 (B) 1 (C) 64 (D) Compiler error (E) None of above
E x p l a n a t i o n : As we know size of int data type is two byte while char pointer can pointer one byte at time. Memory representation of int i=320
So char pointer ptr is pointing to only first byte as shown above figure. *ptr i.e. content of first byte is 01000000 and its decimal value is 64.Copyright@ritesh kumar: http://cquestionbank.blogspot.com/ Page 2
Answer: (C) 2. What will be output if you will compile and execute the following c code? #include #define x 5+2 int main(){ int i; i=x*x*x; printf('%d',i); return 0; }
Present Perfect Tense Multiple Choice Questions Pdf
(A) 343 (B) 27 (C) 133 (D) Compiler error (E) None of above
Tenses Multiple Choice Questions With Answers Pdf
E x p l a n a t i o n : As we know #define is token pasting preprocessor it only paste the value of micro constant in the program before the actual compilation start. If you will see intermediate file you will find: test.c 1: test.c 2: void main(){ test.c 3: int i; test.c 4: i=5+2*5+2*5+2; test.c 5: printf('%d',i); test.c 6: }Copyright@ritesh kumar: http://cquestionbank.blogspot.com/ Page 3
test.c 7: You can absorb #define only pastes the 5+2 in place of x in program. So, i=5+2*5+2*5+2 =5+10+10+2 =27 Answer: (B) 3. What will be output if you will compile and execute the following c code? #include int main(){ char c=125; c=c+10; printf('%d',c); return 0; }
(A) 135 (B) +INF (C) -121 (D) -8 (E) Compiler error E x p l a n a t i o n : As we know char data type shows cyclic properties i.e. if you will increase or decrease the char variables beyond its maximum or minimum value respectively it will repeat same value according to following cyclic order:Copyright@ritesh kumar: http://cquestionbank.blogspot.com/ Page 4
Multiple Choice Questions On Tenses With Answers Pdf Class 10
So, 125+1= 126 125+2= 127 125+3=-128 125+4=-127 125+5=-126 125+6=-125 125+7=-124 125+8=-123 125+9=-122 125+10=-121 Answer: (C) 4. What will be output if you will compile and execute the following c code? #includeCopyright@ritesh kumar: http://cquestionbank.blogspot.com/ Page 5
int main(){ float a=5.2; if(a5.2) printf('Equal'); else if(a