Sei sulla pagina 1di 4

Sr. No. Question Option1 Option2 1 C- language is Assembly level language Low level language 2 What is a program?

A set of instruction A set of Algorithm 3 Who developed the C language? Dennis Richie Ken Thomson 4 Which year was C developed in? 1975 1980 5 The C language has been developed AT & atT Bell labs IBM 6 The C programs are stored with ____ extension .obj b 7 Every statement in c program is to be dot(.) terminated by a _____ semi-colon(;) 8 The escape sequence '\b' is a back space next line 9 Which OS (Operating system) supports DOS C? only Linux only 10 The real numbers (numbers with Fractional decimalform fractional only value) in ASCII C can form be expressed only which of the following forms? 11 A Character variable can store how 1 many character characters at a time? 8 characters 12 What will be stored in the variable ASCII 'ch' value if we write of z along the statement with the single char ch='z'? inverted commas 13 What is the maximum value that an signed 32768 integer constant can 32767 have? 14 An identifier in C cannot start with?A number an alphabet 15 Which of the following statement is wrong? Int=123; value='A'+5; 16 Which of the following special symbol * (asterisk) allowed in an identifier? _ (underscore) 17 Which of the following variable declaration int length; is correct? char int; 18 Which Comments statement are used is correct to have for some the explanations comments Only if used ain line the inbegins 'C' programmer's programming? with double source slash, code it is a comment 19 The preprocessor directive in 'C' programming Hash Sign (#)begins with Backslash and asterisk (/*) 20 Every C program should compulsorily start() have a function called as Start() 21 A block comments begin Starting and end with with? / and endingstarting with // with /* and ending with */ 22 Which of the following cannot be used Letters in identifiers? Spaces The first 23 one The refers difference to a variable between whose a and identifier 'a' The is first is a one and is the character second one constant refers a to and the second character one constant is the string a literal a 24 For an The The assignment left right side side value statement value of the of the assignment assignment operator operator must might always be a be constant, a variable a variable, an expression or any combinatio 25 Which of the following are not valida=2+(b=5); expressions in C a=b=c=5; 26 Which of the following will not increase c++; the value of variable c by c=c+1; 1? 27 When the following code is a executed, contains 3what and b will contains be the a4 contains values of4 aand andb b? contains b=3; a=b++; 4 28 The result of a relational operator either is always True or False either less than or more than 29 The default standard output device for Modem C program is Monitor 30 The default standard input device for Mouse C++ program is Scanner 31 When requesting multiple inputs from a space the user, they must be a tab separated character by 32 The "return 0;" statement The program in main did nothing functioni.e. indicates The completed program 0 was tasks executed without any errors 33 What value must be returned to the operating 0 system on the successful -1 completion of a program? 34 What is the only that function all programs start()must contain? system() 35 What is the function from where the C start() programs begin their execution? begin() 36 What punctuation is used to indicate the { and start } and end of code blocks? < and > 37 Which of the following is the correct */ Comments way of writing /* comments? /* Comments */ 38 Which of the following is not a name double of data type in C? float 39 Which relational operator is used for comparison := == 40 Which is the boolean operator for logical &AND? | 41 In C, which is the order of mathematical +, -,operators? *, / /, *, +, 42 A procedure oriented programming Bottom uses Up approach Top Bottom approach 43 C programming language object is oriented programming procedure language oriented programming language 44 Which of the following is not a keyword? void int 45 Which of the following is a keyword? main signed 46 Which of the following identifier is incorrect? char _int

47 48 49 50 51 52 53 54 55

Which of the following identifier is incorrect? int_ The memory space taken for a char type 2 bytes data is The memory space taken for a int type 2 bytes data is The memory space taken for a float type 2 bytes data is The memory space taken for a long double 2 bytes type data is The memory space taken for a long int 2 bytes type data is The memory space taken for a signed2char bytes type data is The memory space taken for a unsigned 2 bytes char type data is The memory space taken for a unsigned 2 bytes int type data is

34_ 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes 4 bytes

Option3 Option4 Correct Ans High level language All of the above c A set of pseudocode All of the above a Matrin Richards Patric Naughton a 1972 1971 c Borland International Sun Microsystems a c .exe c colon(:) question mark (?) b tab none of the above a Windows only All of the above d Exponetial form only Both Fractional and Exponetial d 255 characters None of the above a The character z none of the above b 1.70E+38 256 b A special symbol other than underscore An capital character a lime=20*'T'; count+5=result; d #NAME? | (pipeline) b int long; All of the above a ments decide the sequence of Comments operations must in the beprogram outside the curly braces a Less than symbol (<) Two Back Slashes (//) a main() Main() c starting with // and ending starting with // with < and ending with > b Underscores Digits b Both are same none of the above a nt always takes place from right to left and All never of the the above other way d a=11%3 b+5=2; d c+1>=c; c+=1 c a contains 4 and b contains a contains 3 3 and b contains 3 a either equal, less or more none of the above a Disk Printer b Keyboard None of these c a new line character any of the above d The program has not yet completed the execution None of the above b 1 Program should not return a value a main() program() c main() program() c [ and ] ( and ) a ** Comments** { Comments } b int real d equal = b && || c *, +, /, +, /, *, b both (a) and (b) None of the above b function oriented programming language None of the above b main for c integer floating b _char _float a

son_ 8 bytes 8 bytes 8 bytes 8 bytes 8 bytes 8 bytes 8 bytes 8 bytes

s1_ 1 bytes 10 bytes 10 bytes 10 bytes 10 bytes 1 bytes 1 bytes 10 bytes

b d a b d b d d a

Potrebbero piacerti anche