You are on page 1of 7
18 19 1.10 iu 1.12 1.16 A 1.18 1.19 1.20 1.21 1.22 1.23 1.24 Which is not a keyword in C? (a) const =» ,b) main Identify the scalar data type in C 4) double (b) union Identify the derived data type in C (a) int (b) float Which data type can either be used to represent a 8° 4) pointer (b) double The qualifier that may precede float is (a) signed (b) unsigned The qualifier that may precede char is (a) signed (b) unsigned The qualifier that may precede double is (a) signed (b) unsigned Printable characters always use (a) negative integers (c) both positive and negative integers Integral data type includes (by siBEor ae (c) sizeof (d) void (c) function (d) array () union (4) char alar data type or deriv ed data type? (c) structure (d) union (c) long {c) none of the abov (d) none of the abov Bikey <2) options a and b (c) short ND) positive integers (a1 (c) char i the above edn’ (d) 0X625 (c) 0.08e-4 (d) 1.3345F a -0756 (d) 06.52 (c) 0 (alphabet) @ 0 (zero) (c) HX (d) 0 (a) enum (b) int Which is not a valid integer constant ? (a) 600000 u (b) 534878 ul Which is not a valid floating constant? (a) 4E-6f 0) 4E 12 Identify the Octal constant (a) 627 (b) OX25 An octal constant is preceded by (a) X (b) OX A hexa constant is preceded by a) Ox (v0 A character constant is written within (a) double quotes _o) single quotes (c) options a andb —_(d) none of the above String constants are represented within (a) single quotes ‘u) double quotes (c) options aandb (4) \* and *\ Identify the invalid string constant. (a) “A+B” (@)** « 1.25 Which is nota character constant? 4\x24" (a) ‘\60" (b) \012" tone if o tant. ’ 2 1,26 ee oa ; nana Fae a 1.27 Identify the eseape sequence(s). A) all the abo (a) \0 (b) \n (c) \f 1.28 Which is not a white space character? (ay bleak (a)\f (b) \v wo 1.29 Identify the white space character (s). 4, Aiticers (a) blank (b) \f (c) \r ideutify the invalid string constant. (a) “S\t LO\t 15 \” (b) “cost = 90\x24\n (c) *\n Don’t care condition” Na Cis flexible’ 131 Ifaconstant is given a name it becomes { (a) a string constant (4% manifest (c) const declaration (d) inv alid 1,32. Sypbolic constants are defined as # define S1.$2 (b) # define $1 S2; (c) # define $1 = $2 (d) # define $1 = S2; 1.33 we # in the # define statement must commence from anywhere in a line (0) the first column of a line (c) the first column of next line (d) the first line 1.34 What is an object in C? (a) constant MM variable (c) identifier (4) keyword 1.35 Identify the C token(s). (a) keywords (b) constants (c) operators "WH all the abo 1.36 Statement terminator is represented by Gyr (b) blank f 1.37 Which is true in case of ANSI C? eee (a) Comments are represented in betw: i we Nested comments are not allowed poh eae a ble comments are allowed. ‘mments are not allowed within a string constant : string Identify the correct statement(s) related to ie ‘ (a) Token is an individual entity of a ail (b) Tokens are identifi i (c) Compiler always eens ne the compilation, Cine Onstitutes the longest Possible token, 1.39 Identify the number of tokens in the followi lowi ee (b)s Ue =21) 1,38 (d)7 Identify the separator(s) in C {g) white space character JF.) options a and > Identify the wrong statement 140 (b) comment (d) semicolon iat (a) # define *symbolic constant *) MAX 100 (b) *declaration*/a.b; (e) char el, €2; “define MAX 25; 1.42 Which is an invalid variable name? (a) Int (b) Xx NG net-sotary (d) floating 1.43. Mentify the correct statement, (a) The variable names VOLUME and volume are identical. . ‘The variable names Sum and sum are identical. ‘ariables are not declared before use. ‘Variable names may be absent in a declaration. 1.44 Iggutify the invalid identifier. NET_S (b) BINGO ()_ACCOUNT = (d)_4 1.48 Which is the most appropriate variable initialization? # define MAX 100 (b) int x, y; y = 15; f) float y = 2.14; (d) char c; ¢ ="0'; 1.46 Tokens are separated by using B): @). (©); A ecaronc 1.47 Am escape sequence commences with é )/ ©? we 1.48 Identify the wrong declaration. (a) inten = (7); (b) char 2 = A’ +25, cl = °Z"; int xy (4) intx=10,y=x* 149 Veit eee Aya ee © eon ae ee | 56 long ftoat 1; (c) long double Id; < 1.50 Ideotfy the wrong sentence. ts) signed sh (a) # define isa preprocessor facility, # define aids in modifying a constant valu eit ¢ throughout the program. LSI 1. A definition allocates memory space for a variabl ditizat cee seins PHN rie ae ons | and 4 4 only . ta a manet= a 2.54 Ina C expression, how is (|| it * logical AND represented? - ) AND. 2.55. Which of the following is a temary operator ©@@ i) as a) ?: (b) * 28 fc (©) sizeof. a 226) Which of the following is NOT a bitwise opately (a) a (a) & (* oe Li 2.57 The type cast operator is ) (type) (b) cast() ; @n @> 2.58 Which of the following statements is/are TRUE? 1. A char data type variable alwa 'yS occupies one byte independent of the system architecture. es sizeof operator is used to ) determine the amount of memory occupied by a variable. both 1 and 2 (b) 1 only (c) 2 only (@) neither 1 nor 2 2.59 What might be the minimum value for the data type int, for 32 bit compiler? (a)0 ) ~2,147,483,648 — (c) -2,147,483,647 (d) -32768 2.60. If the value of a = 10 and b =~1, the value of x after executing the following expression is x= (a! = 10) && (b= 1) a 0 (b) 1 ()-1 (d) none 2.61 What would be the output of the expression 11 * 5? (a)6 (b) 8 O14 (@ 15 2.62 What is the value of x after executing the following statement? int x = O11 | Ox10; (a) 13 (b) 19 WH ev 2.63 fi t languages? What is the function of the modulus operator in most (a) Sets a system environmental value to either base 10, base 8, or base 16. turns id argument power. b) Returns the first argument raised to the secon ® Prints ‘out the actual code written to standard output rather than executing the code Returns the remainder after dividing one number by another. 2 2.64 What is the value of x in the sample code ant double x; x =,(2 + 3) * 2 +37 (c) 25 (d) 28 2.65 cae will be we if the following code is executed? main() oom Bee a De Ce ra eee ee (0 v1 @2 2.66 Whi expressions will correctly, swap two integers without using a tempo- ill t! i x jich of the following " rary variable? - io) (x= % y So Reet oe Sees WOE Gan.” integer x? (a) x & OxFFOO (b) x>>24 (c) x > > (CHAR - BIT * (sizeof(int) — 3)) a x>> (CHAR BIT * (sizeof(int) — 1)) 2.68 What is the value of the following expression? els iss1%2 62 (b) -2 (c) 1 @o 2.69. What is the value of the following expression? i=1; i=(i<<=1%2) Ww2 (1 0 2.70 _ For the following statements find the values generated for p and q? intp=0,q=1; 2.67 What is the correct and fully portable way to obtain the most significant byte of an up (d) syntax error Pop att Dis==4; The value of p and q are 11 (b) 0,0 2.71 : (c) 3,2 (d) 1,2 Which of the following is a better approach to of the do the operation i= i* 16; ? (a) multiply i by 16 and keep it ) shift left by 4 bits (c) add i 16 times (d) none of the above 1, structured 2, four s. 8 6. manifent 7, objects 9. tokens 10. initialisation, initializer 12, unicode character «at Trus True a % Match the Following 8 a3 Objective Type Questions 11.b 12a 13.e 1a.e 1s.a 16.4 le 18.b 19.¢ 20.6 le 2b 3.4 4b S.e 6.4 1b aa 9b 1

You might also like