0% found this document useful (0 votes)
69 views7 pages

E. None of These

1. The C IDE is Turbo C++ IDE. 2. C programming requires a text editor, compiler, and operating system to write and run C programs. 3. The shortcut key to compile a program in Turbo C IDE is Ctrl + F5. 4. The '%' arithmetic operator can be used with integers, floats, and doubles.

Uploaded by

krishna kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views7 pages

E. None of These

1. The C IDE is Turbo C++ IDE. 2. C programming requires a text editor, compiler, and operating system to write and run C programs. 3. The shortcut key to compile a program in Turbo C IDE is Ctrl + F5. 4. The '%' arithmetic operator can be used with integers, floats, and doubles.

Uploaded by

krishna kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

1. Which is the C IDE: c. Modular a.

Int

a. GNU gcc compiler d. Efficient b. Unsigned int

b. Borland C++ compiler e. None of these c. Long

c. Turbo C++ IDE 5. You require to write and run c program: d. Unsigned long

d. Visual Studio a. Operating system e. All of above

e. All of Above b. Text editor 9. Which is not the valid integer:

2. C us supported by the following c. Compiler a. +345


operating system:
d. All of above b. 345UL
a. Unix
6. which is the shortcut key to compile c. 123U
b. Linux program in Turbo C IDE:
d. 123.0
c. Windows a. Ctrl + F9
10. Which is the invalid octal:
d. All of above b. Alt + F9
a. 0346
3. C is the ________ language: c. Ctrl + F5
b. 0452
a. Low level d. None of these
c. 0255
b. High Level 7. C has _______ keywords:
d. 0840
c. Both Low and High Level a. 30
11. Which is invalid hexadecimal:
d. None of these b. 31
a. 0x345
4. Which is not the feature of c language: c. 32
b. 0xA132
a. Portable d. 33
c. 0xG120
b. Terse 8. Which is the type of int:
d. 0x452F
12. The ASCII value of Y: 16. Which is the invalid identifiers name: 20. The Arithmetic operator ‘%’ can be used
with:
a. 88 a. Pushp1
a. int
b. 89 b. _pushp
b. float
c. 90 c. 1Pushp
c. double
d. pushp_infotech
d. 91 d. void
17. int can store:
13. Which is not the fundamental data types: 21. ‘%d’ is the conversion letter for:
a. Real numbers
a. Char a. char
b. Characters
b. Array b. int
c. String
c. Int c. float
d. None of these
d. Float d. double
18. Which is not the type of variable
initializations: 22. printf(“%c”, 65); Out of this line is:
14. Variable is a:
a. Static a. 65
a. Location in memory
b. Dynamic b. A
b. Location in CPU Registers
c. Both c. Both
c. Both
d. None of these d. None of these
d. None of these
19. In c language ‘\a’ used for: 23. Binary operator needs:
15. Which is not the type of variable
a. Form feed a. One operand
a. Extrern b. Two operand
b. Line Brack
b. Register c. Alarm c. Three operand

c. Global d. None of these d. None of these

d. None of above
24. Which is the symbol for AND operator: 28. char x=10; 32. Uninitialized variable may have:

a. || printf("%d",~x); Output is: a. Garbage value.

b. && a. 10 b. Can not be zero

c. $$ b. -10 c. Both

d. None of these c. -11 d. None of these.

25. printf(“0 && 1 = %d\n”, 0 && 1); Out of d. None of these 33. Which is the correct variable name:
this line is:
29. printf("%d",sizeof(int)); Output is: a. for
a. 0 && 1 = 0
a. 1 b. goto
b. 0 && 1 = 1
b. 2 c. character
c. 0 && 1 = 2
c. 6 d. if
d. 0 && 1 = 3
d. 10 34. Which is not the c keyword:
26. int x=10;
30. C program starts executing from: a. typedef
printf("%d",x++); Output is:
a. main() b. extern
a. 10
b. header file c. register
b. 11
c. both d. local
c. 12
d. None of these 35. Which operator is used to assign value to
d. None of these variables:
31. Which is the incorrect statement:
27. >> operator is used for: a. =
a. Variable name can contain underscore.
a. Right Shift b. +
b. Variable name may start from digit.
b. Left Shift c. –
c. Variable name may not have white space
c. Both character. d. /

d. None of these d. Keyword can not be a variable name.


36. ‘\n’ used for 40. char *name= “India”; c. Many values.
strupr(name);
a. Alert puts(name); Output of this program is: d. None of these

b. New line a. India 44. Mathematical function are stored in


_________ header file:
c. Form feed b. india
a. stdio.h
d. Backspace c. INDIA
b. conio.h
37. printf(“%u”,&a); The output of this d. iNDIA
statement is: c. math.h
41. Which is not the string handling function:
a. Value of a d. string.h
a. strlwr();
b. Address of a 45. A function which invokes itself repeatedly
b. strcat(); until some condition is satisfied is called a
c. Both ___________ function.
c. strcmp()
d. None of these. a. Recursive
d. strrev();
38. String is: b. System
e. strlen();
a. Array of numbers. c. Library
f. None of these.
b. Array of characters. d. None of these
42. Which statement is wrong:
c. Both 46. ++ is ________ operator:
a. A function may have arguments.
d. None of these. a. Decrement
b. A function may return value.
39. Which is the string termination character: b. Increment
c. A can be invoked many time in a single
a. ‘\n’ program. c. Add
b. ‘\b’ d. Function cannot be reused. d. Plus-Plus
c. ‘\0’ 43. A function can return only _______ 47. Which is the incorrect statement:
d. None of these a. Single value a. An array is the collection of variables.

b. Two Values. b. All array variables have same type.


c. Array variables can be used individually. 52. Which is the false statement: b. getch();

d. None of these. a. An array of characters is called string. c. getchar();

48. An array can be declared: b. Array can be passed to function. d. scanf();

a. Statically c. Array is always reference type. e. getche();

b. Dynamically d. None of these f. None of these.

c. Both 53. Array can be sorted by using: 57. Which is not the output function:

d. None of these a. Bubble Sort a. printf();

49. Array can be: b. Merge Sort b. puts();

a. Single Dimensional c. Quick Sort c. puchar();

b. Multi Dimensional d. All of above d. putch();

c. Both 54. Which term is not related to function: e. None of these.

d. None of these a. Prototype 58. int add(int,int); in the given function


prototype select the correct statement:
50. Array index is always starts from: b. Definition
a. int x=add(4.2,5);
a. 0 c. Call
b. int x=add(4,25);
b. 1 d. Receive
c. int x=add(425);
c. 2 55. Which is the type of function arguments:
d. int x=add();
d. 3 a. Formal
59. A pointer variable can store ________
51. An array is ____________ data-structure: b. Actual
a. Constant value
a. Linear c. Both
b. Value of anther variable.
b. Non-linear d. None of these
c. Address of another variable
c. Hierarchical 56. Which not the input function:
d. None of these.
d. None of these a. gets();
60. int *ptr; here ptr can store the address of: 64. int a[3]={4,5,6}; a. int add(int,int);
printf(“%u”,a); What is the output:
a. int variable b. int add(float, int);
a. Value of first element.
b. float variable c. float add(int,int);
b. Address of first element
c. double variable d. float add(float,int);
c. Both
d. All of above 69. Which is the incorrect function prototype
d. None of these based on c library:
61. int x=10;
int *y=&x; the variable y contains: 65. Which function is related to dynamic a. char *gets(char *string);
memory allocation:
a. Value of x; b. int puts(const char*s);
a. malloc();
b. Address of x; c. char *cgets(char *str);
b. calloc()
c. Both d. int cputs(const char*str);
c. realloc()
d. None of these e. None of these
d. All of above.
62. int **ptr; here ptr is: 70. Which is the type of files:
66. strcmp() function is used for:
a. Pointer a. Text
a. Copy two strings
b. Pointer to pointer b. Binary
b. Compare two strings.
c. Both c. Both
c. Concatenation of two strings
d. None of these d. None of these
d. None of these
63. In the call by reference we pass: 71. Which function is not related to file
67. Which is the formatted input function: handling:
a. Value of the variable
a. getch(); a. fopen();
b. Address of variable
b. scanf(); b. fclose();
c. Both value and address
c. gets(); c. fprintf();
d. None of these
d. getche(); d. printf();

68. Which is the incorrect function prototype:


c. Label, d. Beta

d. #Label 80. Which is the type of white box testing:


72. Which is the file opening mode:
76. Who is the manufacturer of C language: a. Path Testing
a. r
a. Herbert Schieldt b. Loop Testing
b. w
b. Banjarne Stroups c. Domain Testing.
c. rb
c. Dennis Ritchie d. All of these
d. wb
d. None of these
e. a
77. C is the __________ language:
f. All of above
a. Object Oriented
73. A structured programming have:
b. Structured
a. Sequence
c. Unified Modeling
b. Selection
d. None of these.
c. Iteration
78. An efficient algorithm ______
d. All of Above
a. Takes efficient time
74. Which is not the selective control flow
statement: b. Takes efficient memory

a. while c. Both

b. if d. None of these

c. Switch-case 79. Which technique is related to internal


code:
d. if-else
a. Black Box
75. Which is the correct example of label:
b. White Box
a. Label;
c. Alfa
b. Label:

You might also like