0% found this document useful (0 votes)
11 views

c programming notes

C and html mcqs to get maximum marks

Uploaded by

Dipanshu THAKUR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
11 views

c programming notes

C and html mcqs to get maximum marks

Uploaded by

Dipanshu THAKUR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 7
64.) default: > Printf("%6d", a); > What will be the output? a)7 b)s 2 d.) None of above A operator applies to two operands, while a operator applies to a single operand. a.) Binary, Unary ©.) Unary, Ternary b.) Ternary, Binary d.) None of these A is a place where we can store values. Size of INT is bits. a.) int, 2 c.) variable, 16 b,) variable, 2 4d.) int, 16 Variable consist of letters, numbers and a.) Underscore, keyword c.) Identifier, keyword b.) Alphabets, underscore 4.) Underscore, identifier . You can’t use 7 ‘Study the following C program: #include #include void main() { char *strt,*str2,*str3; str1="India is my"; str2="Ilyrtnuoc"; str3="Gujarat”; clrser(); strncat(str1,strrev(str2),strien(str3)); puts(str1); > What will be the value of STR1 after execution of the above program? a.) India Is my Country! b.) India is my Hyrtnuoc .) India Is my Country 4.) None of these Study it #include #include void main() { int count= while(digit<=9) @ scanned with OKEN Scanner ++count; +digit; } printf("%d",count); y What will be the output? a.) 10 b.)9 c) at What will be the output of following program? #include #include void main() c inti, §, kj J°5; i k=2*(/2); printf(*i=%d \n k=%d", i, k); } b. ) 15, k=5 ) ind, kad Study the following program: #include #include void main() { int a, b, c; a=2; be2*(at+); c=2*(+4a); printf(*b=%d \n c=%d",b,¢); Study the following program: #include #include void main() i. int *ptr, Ii in12, *ptrai * 1; HH printf(*%d %d", i, Ptr); > a.) 42, 144 b.) 13, 144 4d.) None of these @ scanned with OKEN Scanner 72.) Study the following program: #include #include void main() { int a=3; switch(a) { case 1 printf("One"); case 3: printf(*Three"); case 5: printf ("Five"); case 7: printf(Seven”); default: printf(“Odd"); break; } What will be the output of above program? a.) Three c.) Three Five Seven Odd b.) Three Five Odd d.) Three Five Seven 73.) Study the following program: #include #include union example { int i; float F; double d; he void main() c union example e; Printf("\n Size of union is: %d", size of(e)); > What will be the output of this program? a) 8 b)6 c.) 10 a.) 14 74.) Study the following program: #include #include void main() { int i=0, x: do t i95==0) q Xe+; > +4; } while (i <20); > What will be the output of this program? a.) X=4 b.) X=20 c)X=25 d.) X=10 @ scanned with OKEN Scanner 75.) 76.) 77.) 78.) 79.) Study the following program: #include #include void main() { int i=0, x: while (i<20) ie if(i%5==0) { X+ ie; } printf(*X=%d", X); } a) b) =30 0 Study the following program: #include #include void main() { in zi for(i=0; 1<2; i++) { if(W(i<=n) && (+#n==i)) n=n2; else ; + What will be the output of this program? a)3 b)4 6)2 Ve Which is not a symbol of Flow-Chart.? (oO 7 Pre-programming technique Is.?? a.) Flow Chart b.) Algorithm What will be the output of above program? c.) X=25 d.) X=10 d.) None of these 4.) By ite] OS ©) aaa] d.) None of above ¢.) Dry Run d.) All of Above @ scanned with OKEN Scanner 80.) 81.) 82.) 83.) 84.) 85.) 86.) 87.) 88.) 89.) 90.) Which is the step by step representation of program creation? a.) Algorithm b.) Dry Run Dry Runisa a.) Tabular Development b.) Graphical Representation 'B’ language is developed by. a.) Martin Richards b.) Dennis Ritchie .) Flow Chart d.) None of Above ,) Step by Step Development d.) None of Above .) Ken Thompson 4.) Berian Kerningham ©) Which of the following symbol is use for single line comment? a) i Da) PF one 7 a); Which is not the graphical representation of program creation? a.) Algorithm b.) Dry Run ANSI C permits the use of as many as a.) 258 b.) 259 c.) Flow Chart d.) (A) and (B) both case labels. ©) 257 4.) 256 Structure template is terminated by symbol . a.) Semicolon (; ) b.) Comma (, ) 2: is______ operator. a.) Logical b.) Bitwise Which symbols used to define an array? ayo b) <> Find the error: main() int if(2>0); printf(*Its POSITIVE"); else printf(*its NEGATIVE"); > 2.) getch(); is missing b) statement missing Which is a relational operator? a.) a b) >= ©.) Space ( ) 4d.) Underscore (_) .) Assignment d.) Conditional .) misplaced else 4d.) None of above @ scanned with OKEN Scanner 7 To check whether string is in upper case a.) toupper () 91.) or not, which function is used? .) isupper() 1.) upper 0 4.) None of above 92.) pow(), abs() & sqrt() are situated in header file. a.) stdio.h, math.h, ctype.h ce) Gype.h Cel) 4.) math.h 93.) Which is not the part of UDF? 1a.) Prototype of Function .) Definition of Function b.) Calling of Function 4.) None of above 94.) How compare that two strings are equal or not? a.) strempO) c) strrev() b.) streat() a.) strehr() 95.) Which is a storage class? a.) auto c) register b.) static 4.) All of above 96.) 64 bits occupied by which data type? 2.) double 2) unsigned int ».) long double 4.) int 67.) Which special symbol i allowed for variable dee 7202) se 2.) Under Score (—) c,) Caret (*) b.) Tiled (~) 4.) Colon: ) 98.) <, > are used for" 2) Function Call ) Link to Header file 33 ray 42), Function Detnitlon 99.) Percentage style of “unsigned int” !s a) %ld ©) %u b.) 9% 4.) lu 100.) as an alternative of simple if..lse statement. c.) ? : Operator ____—_ i) Conditional Operator b.) Ternary Operator 101.) Which is not an Entry Control? a.) for loop .) while loop. 4102.) How many types of operators are there? a)7 b) 9 103.) What is the output of below program? void main() K int a=11,b; 4.) All of above c.) do...while loop di.) All of above .) 10 4.)8 @ scanned with OKEN Scanner b=at+ printf("\n\t B: %d", b); getch(); + a.) Error b.) 12 c) 41 4.) None of above 104.) a -=b is equivalent to ; c.) baba d.) bea-b 105.) { } are used to group statements together as in 2 function, or in the body of a loop. Such & grouping Is known as . a.) Statement c.) Loop b.) Block d,) Process 106.) Which is the Escape Sequence character? a.) \n oe b.) \o d.) (A) and (B) both 107.) Null character is represented PY —————— a.) NULL ©) \0 4d.) All of above b.) 10 symbol behaves as STYLE while using with one variable and as REMINDER while 108.) ____— Taing with two variable/values. a.) & b.) % «)* a) # 109.) and are used to test more than one condition. 2.) 8& II b.) <=) >= ces tsb) @ scanned with OKEN Scanner

You might also like