0% found this document useful (0 votes)
45 views6 pages

Original Part 1

The document contains multiple choice questions about programming fundamentals including data types, operators, control structures, and algorithms. It tests knowledge of core programming concepts like variables, functions, conditionals, and loops. The questions cover a wide range of foundational programming topics.

Uploaded by

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

Original Part 1

The document contains multiple choice questions about programming fundamentals including data types, operators, control structures, and algorithms. It tests knowledge of core programming concepts like variables, functions, conditionals, and loops. The questions cover a wide range of foundational programming topics.

Uploaded by

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

1. Which data type is used to store whole numbers 12.

Which symbol is commonly used to represent


in programming? comments in many programming languages?
A. Integer B. Float C. String D. Boolean A. # B. // C. * D. !
2. What will be the output of the expression 15 / 2? 13. In programming, what is a function primarily
A. 7.5 B. 8 C. 7 D. 8.5 used for?
3. Which symbol is used to represent assignment in A. To store data
programming? B. To repeat a block of code multiple times
A. = B. == C. + D. - C. To perform a specific task
4. What does the abbreviation "CPU" stand for? D. To define a sequence of steps
A. Central Processing Unit 14. What is the term used to describe a named
B. Computer Programming Unit sequence of statements that performs a task?
C. Control Processing Unit A. Variable B. Function
D. Central Program Unit C. Loop D. Condition
5. Which of the following is NOT a programming 15. What is the result of the expression 3 * (4 + 2)?
language? A. 18 B. 24 C. 12 D. 14
A. Java B. html 16. What is the term for a value that does not change
C. Python D. WhatsApp during the execution of a program?
6. In programming, what is a loop used for? A. Constant B. Constant
A. To repeat a block of code multiple times C. Argument D. Operator
B. To execute code only if a condition is true 17. Which of the following is NOT a valid primitive
C. To store multiple values in a single variable data type in most programming languages?
D. To define a sequence of steps A. String B. Boolean
7. What is the primary purpose of conditional C. Array D. Integer
statements in programming? 18. What is the process of converting a high-level
A. To repeat a block of code multiple times programming language code into machine code
B. To define a sequence of steps called?
C. To execute code only if a condition is true A. Compiling B. Debugging
D. To store multiple values in a single variable C. Interpreting D. Executing
8. What is the term used to describe errors in a 19. Which of the following operators is used for
program that prevent it from running exponentiation in most programming
successfully? languages?
A. Syntax errors B. Runtime errors A. ** B. ^ C. // D. %
C. Logical errors D. Debugging errors 20. What is the term for a set of well-defined rules
9. What is the process of finding and fixing errors in specifying the correct syntax and structure of a
a program called? program?
A. Debugging B. Compiling A. Algorithm B. Syntax
C. Running D. Editing C. Logic D. Structure
10. Which of the following is NOT a valid 21. Which of the following is NOT a valid control
programming paradigm? structure in programming?
A. Object-oriented programming (OOP) A. Sequence B. Selection
B. Functional programming C. Iteration D. Concatenation
C. Procedural programming 22. What is the term for the process of breaking a
D. Interpretative programming large problem into smaller, more manageable
11. What is the term for a named location in memory subproblems?
used to store data in a program? A. Abstraction B. Modularization
A. Variable B. Function C. Decomposition D. Recursion
C. Class D. Object
23. In programming, what does the term "scope" 33. What is the term for a program that translates
refer to? code written in a high-level programming
A. The size of a program's executable file language into machine code?
B. The area of a program's memory where A. Compiler B. Interpreter
variables are stored C. Debugger D. Executer
c. The set of rules governing the order of 34. In programming, what is the purpose of a
operations in a program "comment"?
D. The region of code where a variable is A. To specify the correct syntax and structure of a
accessible program.
24. Which of the following sorting algorithms has the B. To execute a specific task.
worst-case time complexity of O(n^2)? C. To document and explain code for other
A. Quick Sort B. Merge Sort programmers or for future reference.
C. Bubble Sort D. Insertion Sort D. To repeat a block of code multiple times.
25. What is the term for the process of ensuring that a 35. Which of the following operators is used to
program is free of errors and meets its perform division in most programming
requirements? languages?
A. Debugging B. Testing A. % B. * C. / D. //
C. Optimization D. Documentation 36. What is the term for a variable that can hold only
26. In programming, what is a syntax error? two possible values, typically "true" or "false"?
A. An error that occurs during program execution A. Integer B. Boolean
B. An error that occurs when the program logic is C. String D. Float
incorrect 37. What does the term "DRY" stand for in
C. An error that occurs when the program violates programming?
the language rules A. Do Right Yesterday B. Don't Repeat Yourself
D. An error that occurs when the program takes too C. Double Reduce Yield D. Design Reusable Yaml
long to execute 38. Which of the following is NOT a fundamental
27. Which of the following is NOT a valid data programming control structure?
structure? A. Sequence B. Selection
A. Stack B. Queue C. Iteration D. Aggregation
C. Graph D. Treehouse 39. What is the term for a named sequence of
28. What is the term for a programming construct statements that performs a specific task and
that allows you to execute a block of code may return a result?
repeatedly as long as a condition is true? A. Function B. Variable
A. Function B. Loop C. Loop D. Object
C. Array D. Object 40. What is the process of converting data into a
29. Which of the following data structures follows the format suitable for transmission called?
Last In, First Out (LIFO) principle? A. Compression B. Encryption
A. Queue B. Stack C. Encoding D. Decryption
C. Linked List D. Tree
30. What is the result of the 5 / 2 expression:?
A. 2 B. 2.5 C. 2.0 D.3
31. Which of the following is a valid comparison
operator in programming?
A. =< B. >< C. >= D. =/=
32. What is the result of the expression: 2 * (3 + 4) - 5?
A. 3 B. 11 C. 12 D. =/=
41. What is the next number in the sequence: 55. A bag contains 5 red balls, 3 green balls, and 2
2,4,8,16,.? blue balls. If one ball is drawn at random, what is
A. 4 B. 32 C. 64 D. 128 the probability that it is green?
42. If a car travels at a speed of 60 km/h for 3 hours, A. 1/2 B. 1/3
how far will it travel? C. 1/4 D. 1/5
A. 120KM B. 180KM 56. shopkeeper sells an item at a discount of 20% off
C. 200KM D. 240KM its marked price of $50. What is the selling price?
43. If 20% of a number is 50, what is 50% of that A. $35 B. $36
number? C. $37.50 D. $40
A. 25 B. 50 57. A train travels at a speed of 60 km/h for the first
C. 100 D. 125 half of its journey, and then at a speed of 40 km/h
44. Which of the following shapes has the most for the second half. What is its average speed for
sides? the entire journey?
A. Hexagon B. Octagon A. 48 km/h B. 50 km/h
C. Decagon D. Dodecagon C. 52 km/h D. 54 km/h
45. If x-2=8. what is the value of x? 58. A factory produces 120 units in 8 hours. How many
A. 10 B. 6 C. 5 D. 8 units will it produce in 12 hours, assuming the
46. If ¾ of a number is 36, what is the number? same rate?
A. 48 B. 54 C. 64 D. 72 A. 160 B. 180
47. What is the perimeter of a rectangle with length 8 C. 200 D. 240
cm and width 5 cm? 59. If a clock is set correctly at noon, how many times
A. 10 cm B. 16 cm will the hands be at right angles between 12:00
C. 26 cm D. 36 cm and 3:00?
48. If sqrt(25x) what is the value of x? A. 1 B. 2 C. 3 D. 4
A. 1 B. 5 C. 10 D. 25 60. The angle of elevation of the sun, when the length
49. What is the missing number in the series: 3, 6, 12, of the shadow of a tree 3 times the height of the
24, ...? tree, is:
A. 36 B. 48 C. 60 D. 72 A. 30° B. 45°
50. What is the area of a triangle with base 6 cm and C. 60° D. 90°
height 8 cm? 61. A fruit seller had some apples. He sells 40%
A. 12 sq. cm B. 24 sq. cm apples and still has 420 apples. Originally, he had:
C. 30 sq. cm D. 48 sq. cm A. 588 apples B. 600 apples
51. Simplify: 3/5×4/9? C. 672 apples D. 700 apples
A. 2332 B. 310103 62. What percentage of numbers from 1 to 70 have 1
C. 215152 D. 320203 or 9 in the unit's digit?
52. What is the sum of angles in a triangle? A. 1 B. 14 C. 20 D. 21
A. 90 degrees B. 180 degrees 63. It was Sunday on Jan 1, 2006. What was the day of
C. 270 degrees D. 360 degrees the week Jan 1, 2010?
53. Simplify: 5+3 * (4−2)? A. Sunday B. Saturday
A. 14 B. 16 C. Friday D. Wednesday
C. 20 D. 26 64. 66 cubic centimetres of silver is drawn into a wire
54. A car travels at an average speed of 60 1 mm in diameter. The length of the wire in metres
kilometres per hour. How long will it take to cover will be:
a distance of 120 kilometres? A. 84 B. 90
A. 1Hr B. 2 Hr C. 168 D. 336
C. 3 Hr D. 4Hr
65. Six bells commence tolling together and toll at 74. If 35 + 125 = 17.88, then what will be the value of 80
intervals of 2, 4, 6, 8 10 and 12 seconds + 65 ?
respectively. In 30 minutes, how many times do A. 13.41 B. 20.46
they toll together ? C. 21.66 D. 22.35
A. 4 B. 10 75. A pump can fill a tank with water in 2 hours.
C. 15 D. 16 Because of a leak, it took 2 hours to fill the tank.
66. Given that 100.48 = x, 100.70 = y and xz = y2, then The leak can drain all the water of the tank in:
the value of z is close to: A. 4*(1/3) hours B. 7 hours
A. 1.45 B. 1.88 C. 8 hours D. 14 hours
C. 2.9 D. 3.7 76. In what ratio must a grocer mix two varieties of
67. In one hour, a boat goes 11 km/hr along the pulses costing Rs. 15 and Rs. 20 per kg
stream and 5 km/hr against the stream. The respectively so as to get a mixture worth Rs. 16.50
speed of the boat in still water (in km/hr) is: kg?
A. 3 km/hr B. 5 km/hr A. 3 : 7 B. 5 : 7
C. 8 km/hr D. 9 km/hr C. 7 : 3 D. 7 : 5
68. If log10 2 = 0.3010, the value of log10 80 is: 77. Three unbiased coins are tossed. What is the
A. 1.6020 B. 1.9030 probability of getting at most two heads?
C. 3.9030 D. None of these A. 3/4 B. 1/4
69. The true discount on Rs. 2562 due 4 months hence C. 3/8 D. 7/8
is Rs. 122. The rate percent is: 78. The banker's gain of a certain sum due 2 years
A. 12% B. 13 *(1/3)% hence at 10% per annum is Rs. 24. The present
C. 15% D. 14% worth is:
70. A person crosses a 600 m long street in 5 minutes. A. Rs. 480 B. Rs. 520
What is his speed in km per hour? C. Rs. 600 D. Rs. 960
A. 3.6 B. 7.2
C. 8.4 D. 10 79. The length of the bridge, which a train 130 metres
71. The sum of ages of 5 children born at the intervals long and travelling at 45 km/hr can cross in 30
of 3 years each is 50 years. What is the age of the seconds, is:
youngest child? A. 200 m B. 225 m
A. 4 years B. 8 years C. 245 m D. 250 m
C. 10 years D. None of these 80. The average of 20 numbers is zero. Of them, at the
72. In how many different ways can the letters of the most, how many may be greater than zero?
word 'CORPORATION' be arranged so that the A. 0 B. 1
vowels always come together? C. 10 D. 19
A. 810 B. 1440
C. 2880 D. 50400
73. A two-digit number is such that the product of the
digits is 8. When 18 is added to the number, then
the digits are reversed. The number is:
A. 18 B. 24
C. 42 D. 81
Fill in the blanks by choosing the correct option: 5M Transform Direct into Indirect: 6M

81. He _________ to my house yesterday. 96. Rama said “I am going to the market.”
A. Comes B. Is coming ________________________________
C. Came D. Has come ________________________________
82. They _________ to their native place next 97. Ramya said “I went to the market yesterday”.
week. ________________________________
A. Went B. Is going ________________________________
C. Have gone D. Will go 98. Radha said “close the door”.
83. We _________ on our project now. ________________________________
A. Work B. Were working ________________________________
C. Are working D. Is working 99. ) Madhuri said “complete the project work”.
84. She _________ something when her friend ________________________________
came to her house yesterday. ________________________________
A. was cooking B. Will cook 100. Ramya said “Why did you go to your native
C. Has cooked D. is cooking place?”
85. They_________ the work before their team ________________________________
leader came to the cabin. ________________________________
A. Will complete B. Are completing 101. Mamatha said “Did you buy television?”
C. Had Completed D Completed ________________________________
________________________________
Fill in the blanks by choosing the correct word given in
the brackets. 5M Given below sentences are in superlative degree.
Write positive and comparative degree sentences:
86. He _______________ (completed /was
4M
completed) the work.
87. She_________________________ 102. Rama is the tallest student in the class.
(cooked/was cooked) some food. A_______________________________
88. Some programs_________________ B_______________________________
(conducted/were conducted) 103. Elephant is the biggest animal in the forest.
89. They_________________________ (have A_______________________________
sent/have been sent) the message. B_______________________________
90. We_________________________ 104. Rama is one of the tallest students in the class.
(visited/were visited) the place. A_______________________________
B_______________________________
Use conditional clause IF : 5M 105. Elephant is one of the biggest animals in the
forest.
91. It was a difficult question. So I did not answer
A_______________________________
________________________________
B_______________________________
92. It was not cleaned properly. So I did not try to

arrange the things._______________


Fill in the blanks with correct Articles 5M
________________________________
93. It was my mistake. So I asked for apology.
106. Murty is ____ old friend of mine. (an/a)
________________________________ 107. I had ____ weirdest day yesterday. (the/a)
94. I did not pay the fee. So they did not allow me to 108. I spoke to ____ teacher yesterday after class.
write my exams. ____________________ (the/a)
________________________________ 109. There is ____ storm coming soon this way.
95. He did not perform properly. So it was a failure (a/the)
attempt.___________________________ 110. ___ Baby gorilla sleeps on its mother’s lap all
_____ ___________________________ day. (the/an)
Read the following passage and answer the questions that follow: 5M

Mike and Morris lived in the same village. While Morris owned the largest jewellery shop in the village, Mike was a poor
farmer. Both had large families with many sons, daughters-in-law and grandchildren. One fine day, Mike, tired of not
being able to feed his family, decided to leave the village and move to the city where he was certain to earn enough to
feed everyone. Along with his family, he left the village for the city. At night, they stopped under a large tree. There was a
stream running nearby where they could freshen up themselves. He told his sons to clear the area below the tree, he told
his wife to fetch water and he instructed his daughters-in-law to make up the fire and started cutting wood from the
tree himself. They didn’t know that in the branches of the tree, there was a thief hiding.

He watched as Mike’s family worked together and also noticed that they had nothing to cook. Mike’s wife also thought
the same and asked her husband” Everything is ready but what shall we eat?”. Mike raised his hands to heaven and said”
Don’t worry. He is watching all of this from above. He will help us.” The thief got worried as he had seen that the family
was large and worked well together. Taking advantage of the fact that they did not know he was hiding in the branches,
he decided to make a quick escape. He climbed down safely when they were not looking and ran for his life. But, he left
behind the bundle of stolen jewels and money which dropped into Mike’s lap. Mike opened it and jumped with joy when
he saw the contents. The family gathered all their belongings and returned to the village. There was great excitement
when they told everyone how they got rich. Morris thought that the tree was miraculous and this was a nice and quick
way to earn some money. He ordered his family to pack some clothes and they set off as if on a journey. They also
stopped under the same tree and Morris started commanding everyone as Mike had done. But no one in his family was
willing to obey his orders.

Being a rich family, they were used to having servants all around. So, the one who went to the river to fetch water enjoyed
a nice bath. The one who went to get wood for fire went off to sleep. Morris’s wife said” Everything is ready but what shall
we eat?” Morris raised his hands and said, ” Don’t worry. He is watching all of this from above. He will help us.” As soon as
he finished saying, the thief jumped down from the tree with a knife in hand. Seeing him, everyone started running around
to save their lives. The thief stole everything they had and Morris and his family had to return to the village empty handed,
having lost all their valuables that they had taken with them.

111. Why did Mike and his family decide to rest B. He was telling his wife to have faith in
under the thief’s tree? ( ) God
A) Being a large family, they knew that they C. It was just a warning for his family
could easily defeat the thief . members to stick together.
B) It was a convenient spot for taking a halt D. He was begging the thief to help his
at night . family
C) There was a stream nearby and wood 114. Why did the thief return to the tree? ( )
enough to build a house . A. To wait for Mike to return
D) That was the only large tree that could B. To set up a trap
shelter their large family C. To wait for Morris’s family
112. Which of the following best describes Not mentioned in the passage
Morris? ( ) 115. How did the fellow villagers react to Mike
A. He was a rich businessman getting rich overnight? ( )
B. He bullied his wife A. They were jealous of him
C. He paid his servants well B. They were very excited
D. He was greedy and imitated Mike C. They followed his example
113. What did Mike mean when he said “He is D. They envied him
watching all this from above”? ( ) 116. Write something about yourself? 5M
A. He had spotted the thief and wanted to

You might also like