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

C Language

Uploaded by

gopalmondal110
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
36 views

C Language

Uploaded by

gopalmondal110
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 9
RAJEEV GANDHI YOUTH COMPUTER SAKSHARTA MISSION EXAM PAPER Question Cum Answer Booklet Total Marks: 100 (Theory :100), (Practical :100) Every Question Marks: juration= 3Hrs. fo be filled by stu Registration No: . Centre Code: ject Name... Student Name... Father's Name .... [_ ‘Student Signature Examiner Signature Marks Obtained Theory] Practical] Theory [Practical] §=§=__ [Treory]Prectical] theory Practical] Date Subject _ feofw | | | 200 Designation Notice 1. Verify the number of pages before writing anything. In case of any error in page numbers replace the booklet. 2. This booklet is 2 question cum answer sheet. All the answer must be written in the space provided according to the instruction given for each question. No separate answer sheet will be provided. 3. Write your registration no and other required details only in the space provided only. 4. Writing any unfair text anywhere in the booklet will be liable for making it invalid, 5.Use only Ball pen Black/Blue only. G.Answer sheet other than booklet are liable to be rejected. ‘7.Answer all questions. Each question contains 2 Marks. Read the question carefully before answering them. The total time allotted for answering the question paper is 3Hrs. You will be provided with 10 minutes of reading time extra to go through the question paper before your answering time starts. 8. You have to tick the correct option (for example A or B of C or D) against the respective question Number/Code in the answer sheet provided separately. In case you have ticked the wrong option, cross it and then tick the correct option. Do not mark the question paper. Submit the question paper along with your Answer sheet once you are through with the examination. C Language 1. Who is the father of C language? a) Steve Jobs b) James Gosling c) Dennis Ritchie d) Rasmus Lerdorf 2. Which of the following is not a valid C variable name? a) int number; b) float rate; Cc) int variable_count; d) int $main; 3. All keywords in C are in a) LowerCase letters b) UpperCase letters c) CamelCase letters d) None of the mentioned 4. Which of the following is true for variable names in C? a) They can contain alphanumeric characters as well as special characters b) Itis not an error to declare a variable to be one of the keywords(like goto, static) c) Variable names cannot start with a digit d) Variable can be of any length 5. Which is valid C expression? a) int my_num = 100,000; b) int my_num = 100000; c) int my num = 1000; d) int $my_num = 10000; 6. Which of the following cannot be a variable name in C? a) volatile b) true ) friend d) export 7. What is short int in C programming? a) The basic data type of C b) Qualifier c) Short is the qualifier and int is the basic data type d) All of the mentioned 8. Which of the following declaration is not supported by C language? a) String str; b) char *str; c) float str = 3e2; d) Both “String str;” and “float str = 3e2;” C Language 9. Which keyword is used to prevent any changes in the variable within a C program? a) immutable b) mutable c) const d) volatile 10. What is the result of logical or relational expression in C? a) True or False b)0or4 c) 0 if an expression is false and any positive number if an expression is true d) None of the mentioned 11. Which of the following typecasting is accepted by C language? a) Widening conversions b) Narrowing conversions c) Widening & Narrowing conversions d) None of the mentioned 412. Where in C the order of precedence of operators do not exist? a) Within conditional statements, if, else b) Within while, do-while c) Within a macro definition d) None of the mentioned 13. Which of the following is NOT possible with any 2 operators in C? a) Different precedence, same associativity b) Different precedence, different associativity c) Same precedence, different associativity d) All of the mentioned 14, What is an example of iteration in C? a) for b) white c) do-while d) all of the mentioned 45. Functions can return enumeration constants in C? a) true b) false c) depends on the compiler d) depends on the standard 16. Functions in C Language are always a) Internal b) External c) Both Internal and External d) External and Internal are not valid terms for functions C Language 17. Which of following is not accepted in C? a) static a = 10; Iistatic as b) static int func (int); //parameter as stati ) static static int a; //a static variable prefixed with static d) all of the mentioned 18. Property which allows to produce different executable for different platforms in C is called? a) File inclusion b) Selective inclusion c) Conditional compilation d) Recursive macros 19. What is #include ? a) Preprocessor directive b) Inclusion directive c) File inclusion directive d) None of the mentioned 20. C preprocessors can have compiler specific features. a) True b) False c) Depends on the standard d) Depends on the platform 21. Which of the following are C preprocessors? a) #ifdet b) define c) #endif d) all of the mentioned 22. The C-preprocessors are specified with symbol. a) # b)$ oy" ds 23. How many number of pointer (*) does C have against a pointer variable declaration? a)7 b) 127 c) 255 d) No limits 24, Which of the following is not possible statically in C language? a) Jagged Array b) Rectangular Array c) Cuboidal Array d) Multidimensional Array C Language 25. Which of the following return-type cannot be used for a function in C7 a) char* b) struct c) void d) none of the mentioned 26. The standard header is used for variable list arguments (...) in C. a) b) c) d) 27. When a C program is started, 0.S environment is responsible for opening file and providing pointer for that file? a) Standard input b) Standard output c) Standard error d) All of the mentioned 28. In C language, FILE is of which data type? a) int b) char* ) struct d) None of the mentioned 29. What is the sizeof(char) in a 32-bit C compiler? a) 1 bit b) 2 bits c) 1 Byte d) 2 Bytes 30. Which of the following is not an operator in C? a), b) sizeof) c)~ d) None of the mentioned 34. scanf() is a predefined function in, header file. a) stdlib. h b) ctype. h ©) stdio. h d) stdarg. h 32, What is meant by ‘a’ in the following C operation? fp = fopen("Random.txt”, a"); a) Attach b) Append c) Apprehend d) Add C Language 33. Comment on the following C statement. n=4; printf("%d, %odn", 3*n, n+); a) Output will be 3, 2 b) Output will be 3, 1 c) Output will be 6, 4 d) Output is compiler dependent 34, What is the problem in the following C declarations? int func(int); double func(int); int func(float); a) A function with same name cannot have different signatures b) A function with same name cannot have different return types c) A function with same name cannot have different number of parameters d) All of the mentioned 38. Which option should be selected to work the following C expression? string p= "HELLO"; a) typedef char [] string; b) typedef char “string; c) typedef char [] string; and typedef char ‘string; d) Such expression cannot be generated in C 36. What is the meaning of the following C statement? printf("%10s”, state); a) 10 spaces before the string state is printed b) Print empty spaces if the string state is less than 10 characters c) Print the last 10 characters of the string d) None of the mentioned 37. The acronym ANSI stands for a) American National Standards International b) American National Standards Instructions c) American National Standards Institute d) American National Software Incorporation 38. Which of the following is not a valid data type in C Language? a) Double b) Char c) Long d) Float 39. Who developed C language? a) Ken Thomson b) Peter Norton c) Dennis Ritchie d) Von Neuman C Language 40. Which of the following are used to enclose the body of a function? ao >) 0 ©) () d) None of above 41. The C language is a__ language. a) Middle b) Low c) High d) None of above 42. By the process of linking, the resulting code is called as_ a) Source code b) Object code c) Executable code d) None of the above 43. Inthe structure, the logical expression is checked first. a) Do-while b) If c) While-loop d) All types 44, The keyword struct introduces a) Array declaration b) Loop declaration c) Structure declaration d) All of the above 45. Which of the following will fix the length from the values assigned in the declaration statement? a) C compiler b) CPU of C c) Editor d) Star Office compiler 46. A list of variables in the function definition of an input is called __ a) Local variable b) Variable c) Dummy parameter d) Parameter 47. is a variable name used to identify a function. a) Name b) Structure name c) Function name d) Variable name C Language 48. Which of the following statements is not true about C language? a) Every instruction is terminated by semicolon b) Itis case insensitive c) Comments can be placed anywhere in the program code d) It has features of both high level and low level languages 49. Which of the following is not an arithmetic operator? a) + b)* ©) % d)& 50. Which of the following character is used to terminate an instruction in a C program? a) , (comma) b) : (colon) c) . (period) d) ; (semicolon)

You might also like