Programming Fundamentals MCQs with Answers

Programming Fundamentals MCQs with Answers

Programming Fundamentals MCQs with Answers

    Computer Progam

  1. A program is a set of_________ .
  2. (a) Languages
    (b) Tasks
    (c) Instructions
    (d) Problems

    (c) Instructions

  3. A program must be written in Some programming languages for________.
  4. (a) Solution
    (b) Execution
    (c) resolution
    (d) decleration

    (b) Execution

  5. Computer has no_____ .
  6. (a) Hardware
    (b) Software
    (c) IQ
    (d) Hard disk

    (c) IQ

  7. For every single task we have to _______ Computer.
  8. (a) Build
    (b) Teach
    (c) instruct
    (d) Costruct

    (c) instruct

    Languages

  9. Computer has ______levels of languages.
  10. (a) 1
    (b) 2
    (c) 3
    (d) 4

    (c) 3

  11. These are:
  12. (a) Low level language
    (b) Middle level language
    (c) High level language
    (d) all of these

    (d) all of these

    Low level language

  13. Low level languages is a _________level language
  14. (a) Human
    (b) machine
    (c) other
    (d) both

    (b) machine

  15. In low level language instruction given to the computers in the form of:l
  16. (a) octal
    (b) binary
    (c) hexa
    (d) decimal

    (b) binary

  17. This type of level is so_________
  18. (a) Easy
    (b) normal
    (c) difficult
    (d) none

    (c) difficult

  19. Error finding in low level language is also very:
  20. (a) Normal
    (b) complicated
    (c) easy
    (d) all of these

    (b) complicated

    Middle level language

  21. In middle level languages instructions are given in:
  22. (a) Numbers
    (b) English words & symbols
    (c) different languages
    (d) none

    (b) English words & symbols

  23. It is easy to ________&________:
  24. (a) Implement
    (b) Execute write & understand
    (c) Both (a) and (b)
    (d) only a

    (b) Execute write & understand

  25. Translator used here is
  26. (a) Assembler
    (b) interpreter
    (c) both
    (d) none

    (a) Assembler

  27. If we write a program in middle level language, then we need to_______for further use
  28. (a) Translate
    (b) finish
    (c) destroy
    (d) none

    (a) Translate

  29. Assembly level language store data in
  30. (a) Unit
    (b) computer register
    (c) other
    (d) none

    (b) computer register

  31. Register are different of different
  32. (a) Units
    (b) computers
    (c) both
    (d) none

    (b) computers

  33. Due to the above statement program is not_____
  34. (a) Easy
    (b) difficult
    (c) portable
    (d) all of these

    (c) portable

    High level language

  35. High level languages are good for_______
  36. (a) Humans
    (b) computers
    (c) both
    (d) none

    (a) Humans

  37. High level languages are not directly understandable by the:
  38. (a) Humans
    (b) Computers
    (c) both
    (d) none

    (b) Computers

  39. These languages are
  40. (a) Independent
    (b) dependent
    (c) both
    (d) none

    (a) Independent

  41. Which of these are high level Language/languages:
  42. (a) C++
    (b) Java
    (c) Fortran
    (d) all of these

    (d) all of these

    Translator

  43. Translator is a________
  44. (a) Hardware
    (b) software
    (c) both
    (d) none

    (b) software

  45. Translator is used to translate
  46. (a) low level language to high level language
    (b) high level language to low level language
    (c) both a & b
    (d) none

    (b) high level language to low level language

  47. Types of translators are:
  48. (a) 1
    (b) 2
    (c) 3
    (d) 4

    (c) 3

  49. Which of the following is not the type of translator
  50. (a) Compiler
    (b) Converter
    (c) interpreter
    (d) assembler

    (b) Converter

  51. Compiler are used to convert the program from
  52. (a) Low level to high level
    (b) High level to low level
    (c) Both
    (d) None

    (b) High level to low level

  53. The program which is written in high level language is known as:
  54. (a) Object program
    (b) source program
    (c) both
    (d) none

    (b) source program

  55. The corresponding machine level language program is called:
  56. (a) Object program
    (b) source program
    (c) a & b
    (d) none

    (a) Object program

  57. Compiler read the program
  58. (a) line by line
    (b) At a time
    (c) normally
    (d) none

    (b) At a time

  59. Interpreter reads:
  60. (a) Only a line
    (b) at once
    (c) next to
    (d) after that

    (a) Only a line

  61. Mostly high level languages now considered to
  62. (a) Compiler
    (b) interpreter
    (c) assembler
    (d) all of these

    (a) Compiler

  63. Steps in learning C
  64. (a) Alphabets, digits, special symbols
    (b) Constants, variables, keywords
    (c) Instructions
    (d) Program

    (a) Alphabets, digits, special symbols

    Types of Instructions

  65. Basic types of instructions are
  66. (a) 1
    (b) 2
    (c) 3
    (d) 4

    (d) 4

  67. These are:
  68. (a) Type declaration instruction & Arithmetic instruction
    (b) Input/output instruction
    (c) Control instruction
    (d) All of these

    (d) All of these

    Type declaration instruction

  69. Data before & after processing goes to the:
  70. (a) Hardware
    (b) software
    (c) memory
    (d) none

    (c) memory

  71. Different types of data require_______memory space.
  72. (a) Same
    (b) different
    (c) matching
    (d) both a & c

    (b) different

  73. Integer (Int) requires_______memory space.
  74. (a) 4 bytes
    (b) 2 bytes
    (c) both a & b
    (d) 1 byte
    (Note): because new computer requires 4 bytes for Int

    (c) both a & b

  75. Float (float) requires_______memory space.
  76. (a) 4 bits
    (b) 4 bytes
    (c) 2 bytes
    (d) 1 byte

    (b) 4 bytes

  77. Character (char) requires_______memory space.
  78. (a) 1 bit
    (b) 1 byte
    (c) 4 bytes
    (d) 2 bits

    (b) 1 byte

  79. For our conformation that our machine require how much bytes. We have simple write
  80. (a) Size of( )
    (b) Length of ( )
    (c) Value of ( )
    (d) None

  81. Char c; means; it requires:
  82. (a) 2 bytes
    (b) 1 bit
    (c) 1 byte
    (d) 4 bytes

    (c) 1 byte

  83. Float f; means it requires:
  84. (a) 2 bytes
    (b) 4 bytes
    (c) 4 bits
    (d) 1 byte

    (b) 4 bytes

    Arithmetic instruction

  85. Arithmetic instructions are used for:
  86. (a) Storing purposes
    (b) calculation purposes
    (c) implementing purposes
    (d) all

    (b) calculation purposes

  87. These instructions are formed by using:
  88. (a) Arithmetic operators
    (b) assignment operators
    (c) both
    (d) only a

    (c) both

  89. Arithmetic operators are used for:
  90. (a) General calculations
    (b) numeric calculation
    (c) common calculation
    (d) all

    (b) numeric calculation

  91. Unary arithmetic operators required :
  92. (a) Two operand
    (b) Only 1 operand(++,--)
    (c) only a
    (d) both

    (b) Only 1 operand(++,--)

  93. Binary operators required:
  94. (a) Two operand
    (b) only 1 operand
    (c) only b
    (d) both

    (a) Two operand

  95. Binary operators are:
  96. (a) +
    (b) - & %
    (c) * & /
    (d) all

    (d) all

  97. % modulus operators would return:
  98. (a) Value
    (b) numeric value
    (c) reminder
    (d) symbols

    (c) reminder

  99. Modulus______applied with floating point operand.
  100. (a) Can
    (b) cannot
    (c) maybe
    (d) may not be

    (b) cannot

  101. When both operand are integers, then result would be:
  102. (a) Float
    (b) Char
    (c) Int
    (d) all

    (c) Int

  103. When 1 operand is integers and other 1 is float, then result would be:
  104. (a) Float
    (b) Char
    (c) Int
    (d) all

    (a) Float

    Assignment Operators

  105. A value can be stored in a variable with the use of:
  106. (a) Arithmetic operator
    (b) Assignment operator
    (c) logical operator
    (d) all

    (b) Assignment operator

  107. Operand on the left hand side should be
  108. (a) Constant
    (b) variable
    (c) both
    (d) none

    (b) variable

  109. Operand on the left hand side should be
  110. (a) Constant or any expression
    (b) varrable
    (c) both
    (d) none
    (For example sum = x+y+z)

    (a) Constant or any expression

  111. Which of the following has highest precedence
  112. (a) *,/,%
    (b) ( )
    (c) +,-
    (d) both a & c

    (b) ( )

  113. Which of the following has lowest precedence
  114. (a) *,/,%
    (b) ( )
    (c) +,-
    (d) both a & c

    (b) ( )

  115. K = 2*3/4+4/4+8-2+5/8, in this example what should we we do first?
  116. (a) *,/,%
    (b) ( )
    (c) +,-
    (d) both a & c

    (b) ( )

  117. K = 2*3/4+4/4+8-2+5/8, in this example what should we we do after doing multiplication?
  118. (a) *,/,%
    (b) ( )
    (c) +,-
    (d) both a & c

    (a) *,/,%

  119. K = 2*3/4+4/4+8-2+5/8, in this example what should we we do after doing *,/,%?
  120. (a) *,/,%
    (b) ( )
    (c) +,-
    (d) both a & c

    (c) +,-

    Varriables

  121. Variables are the quantities whose values can
  122. (a) Not be changed
    (b) changed
    (c) both
    (d) all of these

    (b) changed

  123. Constants are the quantities whose values can
  124. (a) Not be changed
    (b) changed
    (c) both
    (d) all of these

    (a) Not be changed

  125. In a program, variables has:
  126. (a) Name
    (b) Type (type of the variable. float, Int,etc)
    (c) Size (how many bytes are going to be reserved) , value(what is the value is to be assigned)
    (d) All of these

    (d) All of these

    Keywords

  127. Keywords are the words whose meanings are :
  128. (a) Not defined
    (b) Already Defined
    (c) both
    (d) none

    (b) Already Defined

  129. Some examples are:
  130. (a) Int
    (b) char
    (c) Short
    (d) all of these

    (d) all of these

    Input/output Instructions

    Input Instructions

  131. Input instructions are used to enter from input unit to_________ .
  132. (a) ROM
    (b) RAM
    (c) Motherboard
    (d) IC

    (b) RAM

  133. For input the value of any variable we need to use________,
  134. (a) Output instructions
    (b) Input instructions
    (c) Control Instructions
    (d) all

    (b) Input instructions

  135. In C++, we use_____ for input instructions.
  136. (a) cin<<
    (b) cin>>
    (c) cout>>
    (d) cout<<

    (b) cin>>

  137. For input instructions, we use__________.
  138. (a) Less than
    (b) greater than
    (c) greater than or equal to
    (d) less than or equal to

    (b) greater than

  139. Statement terminator is_______
  140. (a) ( )
    (b) !
    (c) ; (semi colon)
    (d) “ ”

    (c) ; (semi colon)

  141. Semicolon is the ____of the any instruction.
  142. (a) Start
    (b) Duration
    (c) End
    (d) None

    (c) End

    Output instructions

  143. For display the value of variable/constant on output unit, we need to use______.
  144. (a) Input instructions
    (b) Output instructions
    (c) Control instructions
    (d) None

    (b) Output instructions

  145. In C++, we use______ for output instructions.
  146. (a) cin<<
    (b) cin>>
    (c) cout>>
    (d) cout<<

    (c) cout>>

  147. For output instructions, we use__________.
  148. (a) Less than
    (b) greater than
    (c) greater than or equal to
    (d) less than or equal to

    (a) Less than

  149. Anything we write in inverted commas it will be __________ as it is:
  150. (a) End
    (b) Display
    (c) terminate
    (d) both a & c

    (b) Display

    Structure of C++ program

  151. Parts of basic structure of program are;
  152. (a) Comment line
    (b) Preprocessor Directive & main funtion
    (c) Global variable decleration
    (d) All

    (d) All

  153. /*………………………..*/, this is:
  154. (a) Preprocessor Directive
    (b) Comment line
    (c) main function
    (d) none

    (b) Comment line

  155. Comment line is used to increase the ________ of the program.
  156. (a) Understanding
    (b) readability
    (c) both a & b
    (d) none

    (c) both a & b

  157. Anything which is written in comment line will not be _________ .
  158. (a) Written
    (b) Executed
    (c) terminate
    (d) both a & c

    (b) Executed

  159. If we want to use input/output instructions,then we have to use;
  160. (a) Cin>>
    (b) cout<<
    (c) #include<iostream.n>
    (d) #include<iostream.h>

    (d) #include<iostream.h>

  161. #include<iostream.h> tells the compiler to include ______ about input/output instructions.
  162. (a) Reason
    (b) information
    (c) cause
    (d) all

    (b) information

  163. Global declaration, is the section where variables are declared____________ .
  164. (a) Easily
    (b) globally
    (c) both
    (d) none

    (b) globally

  165. Global variables are accessible _________ the program.
  166. (a) Some portion
    (b) Throughout
    (c) only a
    (d) none

    (b) Throughout

  167. The execution start always from the ___________
  168. (a) Main( ) function
    (b) global delaration
    (c) comment line

    (d) all

    (a) Main( ) function

  169. Main( ) is the ________ function.
  170. (a)Built in (b)user defined (c)fixed (d)both a & c

    (b)user defined

  171. Every function has ______ main() function
  172. (a) One
    (b) two
    (c) three
    (d) four

    (a) One

  173. Main function is encloses with the pair of __________.
  174. (a) Commas
    (b) curly braces
    (c) inverted commas
    (d) all

    (b) curly braces

  175. Main function can be _________ in the program.
  176. (a) Anywhere
    (b) only in middle
    (c) only in last
    (d) none

    (a) Anywhere

  177. In general practice, main( ) function is placed in __________.
  178. (a) Middle
    (b) start
    (c) end
    (d) none

    (b) start

  179. The definition is already defined in the #include<iostream.h> of_________.
  180. (a) Input instructions
    (b) output instructions
    (c) both
    (d) none

    (c) both

  181. For displaying the result, we have to use ________
  182. (a) Clrscr( );
    (b) getch();
    (c) both
    (d) none

    (c) both

  183. __________is use not to terminate the execution until you want.
  184. (a) Clrscr( );
    (b) Getch( );
    (c) both
    (d) none

    (b) Getch( );

  185. Getch( ); demanding the ______ from the keyboard.
  186. (a) Number
    (b) character
    (c) symbol
    (d) all

    (b) character

  187. How we can run our program?
  188. (a) Ctrl+F8
    (b) Ctrl+F9
    (c) Ctrl+F5
    (d) Ctrl+F7

    (b) Ctrl+F9

  189. Endl; means_____
  190. (a) Start of line
    (b) end of line
    (c) duration of line
    (d) both a & c

    (b) end of line

  191. After putting endl; in the end of any line, it means this line _________ here.
  192. (a) Completed
    (b) remaing
    (c) both
    (d) none

    (a) Completed

  193. If you have to write clrscr( ); & getch( ); , then we use;
  194. (a) #include<conio.h>
    (b) #include<conio.n>
    (c) #include<iostream.h>
    (d) none

    (a) #include<conio.h>

  195. If x = 10, y = 20, then z = x+y ,output will be?
  196. (a) 10
    (b) 20
    (c) 30
    (d) 200

    (c) 30

  197. If x = 10, y = 20, then z = x*y ,output will be?
  198. (a) 10
    (b) 20
    (c) 30
    (d) 200

    (d) 200

  199. If x = 20, y = 2, then z = x/y ,output will be?
  200. (a) 10
    (b) 20
    (c) 30
    (d) 200

    (a) 10

  201. If x = 15, y = 5, then z = x+y ,cout<<”z=”,output will be?
  202. (a) z=10
    (b) z=20
    (c) z=30
    (d) z=200

    (b) z=20

  203. If we want that computer asks us to put the value from keyboard, then what should we do for the value of a?
  204. (a) Cin&t;>a
    (b) cin<<a
    (c) cout&t;>a
    (d) cout<<a

    (a) Cin&t;>a

  205. The output of cout&t;>"This is my first program"endl; cout&t;>"This is my second program"; will be;?
  206. (a) This is my first programThis is my second program
    (b) This is my second program
    (c) This is my first program & This is my second program
    (d) None

    (c) This is my first program & This is my second program

Programming Fundamentals MCQs with Answers
Cover Topics

",Programming Fundamentals MCQs with Answers",,",programming fundamentals mcqs pdf",,",mcqs of programming fundamentals c++",,",Fundamentals of Computer Programming 1 solved mcqs",,",Programming Fundamentals Mcqs",,",Programming MCQ","java programming mcqs"

Post a Comment

We welcome relevant and respectful comments. Off-topic or spam comments may be removed.

أحدث أقدم