C mcq test 3

50 %
50 %
Information about C mcq test 3

Published on March 14, 2014

Author: amankamboj10004

Source: slideshare.net


Mcq Question for c language

For more MCQ Question visit www.csemcq.com Q1. If an integer need 2 bytes of storage then the maximum value of an unsigned integer is: a) 216 -1 b) 215 -1 c) 216 d) 215 Ans a Q2 Printf(“%d”,printf(“cse”)); a)syntax error B)Cse3 c)garbage value d) print cse and terminates abruptly Q3.Find the output of following program segment: char c=’a’; while(c++<=’z’) putchar(xxx); if the required output is abcdefghijklmnopqrstuvwxyz then xxx should be: a) c b) c++ c) c-1 d) –c ans c Q4 The following program fragment: if (a=0) printf(“a is zero”); else printf(“a is not zero”); result in the printing of a) a is zero b) a is not zero c) nothing d) garbage ans b Q5 The statement printf(“%d”,++5); prints a)5 b) 6 c)an error message d) garbage ans c Q6 the for loop For(i=0;i<10;i++) Printf(“%d”,i); Prints: a) 0101010101 b) 0111111111 c) 0000000000 d) 1111111111 Ans a

For more MCQ Question visit www.csemcq.com Q7 a->b is syntactically correct if a) A and b are structure b) A is structure and b is pointer to structure c) A is pointer to structure and b is a structure d) A is pointer to structure in which b is field And d1 Q8 consider the following statement # define hypotenuse(a,b) sqrt(a*a+b*b); The macro call hypotenuse(a+2,b+3); a) Find the hypotenuse of a triangle with sides a+2 and b+3 b) Find the square root of (a+2)2 +(b+3)2 c) Is invalid d) Find the square root of 3*a+4*b+5 Ans d Q9 Consider the declaration: Char street*10+=”1234567890”; Chose the correct remarks a) &street and street will have different values b) &street is meaningless c) &street+1 and street+1 will have the same value d) None of the above Reason:street is pointer to ist char &street is pointer to entire array And d Q10 int f(int n) { static int r=0; if(n<=0 return 1; if(n>3) { r=n; return f(n-2)+2; } return f(n-1)+r; } What is the value of f(5)? Ans a) 5 b)7 c) 9 d) 18 Ans d

Add a comment

Related presentations

Related pages

MCQ Test: Software Testing MCQ Test – 3

Software Testing MCQ Test – 3 ... You can if you use nested SQL statement B. You can’t C. ... Data Structure MCQ Test – 1. Que.1. Can ...
Read more

MCQ Test - Computer Basics MCQ Test – 3 Que.1. Which of ...

Computer Basics MCQ Test – 3. Que.1. Which of the following is not a primary storage device? A: Magnetic tape B: Magnetic disk C: Optical disk D: None of ...
Read more

Test your mcq skill online : MCQ Test

Test your mcq skill online. MCQ test site provides different question sets of exam for you to attempt online and get results immediately. This website ...
Read more

C++ MCQ – Basic Objective Questions – Set 3 - ProProfs ...

C++ MCQ – Basic Objective Questions – Set 3. ... - 70 This Quiz is for those user who wants to test their command over the C++ ... Mcq On C Programming ...
Read more

C++ MCQ - Basic Objective Questions - Set 1 - ProProfs Quiz

Online MCQ Quiz on C++ Programming LanguageNo. of Questions:- 10Time:- 10 MinutesFull Mark:- 100Pass Mark:- 70This Quiz is for those user who wants to tes...
Read more

Multiple Choice Cloze - Flo-Joe: THE place on the web for ...

Even if you haven't read the (3) ... C or D. There is an example ... Multiple Choice Cloze. Gap 1: queue: list: row: line: Gap 2: largest: greatest:
Read more

MCQ's For Computer/EC/IT -3 - Online M.C.Q Test For All ...

Online MCQ's For Engineering Exams Computer/EC/IT
Read more