Explore topic-wise MCQs in Php.

This section includes 2095 Mcqs, each offering curated multiple-choice questions to sharpen your Php knowledge and support exam preparation. Choose a topic below to get started.

951.

Which mode is a shorthand for ‘both strict modes plus a bunch of other restrictions’?

A. STRICT_ALL_TABLES
B. STRICT_TRANS_TABLES
C. TRADITIONAL
D. ERROR_WHEN_DIVIDE_BY_ZERO
Answer» D. ERROR_WHEN_DIVIDE_BY_ZERO
952.

For which type are illegal values converted to the appropriate ‘zero’ value?

A. Numeric
B. String
C. ENUM
D. TIME
Answer» E.
953.

By default, MySQL clips out of range numeric values to the nearest fit value.

A. True
B. False
Answer» B. False
954.

Which keyword must be used to get a more granular insight into the memory usage?

A. verb
B. verbose
C. granule
D. gran
Answer» C. granule
955.

Which of the following gives the high level breakdown of memory usage?

A. about:memory
B. memory
C. about-memory
D. about::memory
Answer» B. memory
956.

Which of the following property indicate the total size of the heap?

A. heapSize
B. totalHeapSize
C. totalJsHeapSize
D. totalHeap
Answer» D. totalHeap
957.

What does the usedJsHeapSize property indicate?

A. Amount of memory used
B. Amount of memory unused
C. Amount of memory used & unused
D. Amount of memory required
Answer» B. Amount of memory unused
958.

What is the purpose of garbage collection?

A. Removes object with many reference
B. Removes object with reference
C. Removes object with invalid reference
D. Removes object with no reference
Answer» E.
959.

What is the function of the memory object?

A. Gets unused memory details
B. Shows optimization
C. Gets memory usage
D. Memory optimization
Answer» D. Memory optimization
960.

How many properties are available in a memory object?

A. 1
B. 2
C. 3
D. 4
Answer» D. 4
961.

Determine the vertical force acting in the given figure.

A. 236N
B. 600n
C. 403N
D. 830N
Answer» B. 600n
962.

Determine the horizontal force acting in the given figure.

A. 80cos30
B. 60cos30
C. 40cos30
D. 8cos30
Answer» B. 60cos30
963.

The normal forces and the forces of friction are collinear.

A. True
B. False
Answer» C.
964.

The three force system can also be in the equilibrium if:

A. All the forces are parallel to each other heading towards the same direction
B. The force components cancel each other
C. The forces are very small in magnitude
D. The forces are very huge in magnitude
Answer» C. The forces are very small in magnitude
965.

There is the application of the Newton’s third law of motion in the free body diagrams of the friction calculations.

A. True
B. False
Answer» B. False
966.

There are main two types of forces which are being stated in the free body diagram, they are generally the resultant forces which are being acted over the body. Which are they?

A. Normal and Frictional
B. Normal and Vertical
C. Vertical and Frictional
D. Normal and Fractional
Answer» B. Normal and Vertical
967.

Which one is not the condition for the equilibrium in free body diagram for calculation of the normal forces, consider all forces to be straight and linear?

A. ∑Fx=0
B. ∑Fy=0
C. ∑Fz=0
D. ∑F≠0
Answer» E.
968.

For making the equilibrium equations the normal forces acts in which direction in the free body diagrams?

A. Vertically Upward
B. Vertically Downward
C. Horizontally Right
D. Horizontally Left
Answer» B. Vertically Downward
969.

By dividing volumetric thermal resistance by required thermal resistance we will obtain ___________

A. Power dissipation of heat sink
B. Volume of heat sink
C. Maximum temperature of heat sink
D. Volume of surrounding air
Answer» C. Maximum temperature of heat sink
970.

Cavities embedded in heat source is also known as ___________

A. Low sink
B. Sink hole
C. On-sink
D. Inverted sink
Answer» E.
971.

De-rating factor is usually expressed in ___________

A. W/°C
B. °C/W
C. W/s
D. kW/K
Answer» B. °C/W
972.

Which of the following heat sink is used for low power application?

A. Stamped heat sink
B. Machining heat sink
C. Aluminum heat sink
D. Bolded-Fin heat sink
Answer» B. Machining heat sink
973.

How many sets of cleavage is shown by calcite minerals usually?

A. 1
B. 2
C. 3
D. 4
Answer» D. 4
974.

Which lustre cannot occur to the calcite?

A. Adamantine
B. Waxy
C. Vitreous
D. Silky
Answer» B. Waxy
975.

Which carbonate mineral has this chemical composition- CaCO3 Mg(CO3)2?

A. Magnesite
B. Calcite
C. Dolomite
D. Jasper
Answer» D. Jasper
976.

The carbonate minerals have high hardness.

A. True
B. False
Answer» C.
977.

Carbonate minerals are found usually in ___________

A. Igneous rocks
B. Sedimentary rocks
C. Sedimentary and metamorphic rocks
D. Metamorphic and igneous rocks
Answer» D. Metamorphic and igneous rocks
978.

Which of the following is the ideal vacuum for electron spectrometers?

A. 10-6 torr
B. 10-7 torr
C. 10-8 torr
D. 10-9 torr
Answer» B. 10-7 torr
979.

The output of the multiplier is fed to which of the following immediately?

A. Pulse amplifier discriminator
B. DAC
C. ADC
D. Multichannel analyser
Answer» B. DAC
980.

Electron detector has a _______ doped glass tube with a secondary semiconducting coating.

A. Quartz
B. Silica
C. Lead
D. Cesium
Answer» D. Cesium
981.

Which of the following is the most commonly used detector in ESCA and AES?

A. Electron multiplier
B. Dynodes
C. Photovoltaic cell
D. Photomultiplier
Answer» B. Dynodes
982.

In spherical sector analyser, __________ is detected and plotted as a function of energy.

A. Mass
B. Charge
C. Number of electrons striking the detector
D. Mass to charge ratio
Answer» D. Mass to charge ratio
983.

A basic X-ray source includes which of the following components?

A. Large target anode
B. Large target cathode
C. Small target anode
D. Small target cathode
Answer» B. Large target cathode
984.

How many times will the function recursive_get_min() be called when the following code is executed?

A. 4
B. 5
C. 6
D. 7View Answer
Answer» C. 6
985.

What is the time complexity of the recursive implementation used to find the largest and smallest element in a linked list?

A. O(1)
B. O(n)
C. O(n2)
D. O(n3)View Answer
Answer» C. O(n2)
986.

Consider the following recursive implementation to find the largest element in a linked list: Which of the following arguments should be passed to the function max_of two() to complete the above code?

A. temp->val,recursive_get_max(temp->next)
B. temp, temp->next
C. temp->val, temp->next->val
D. temp->next->val, tempView Answer
Answer» B. temp, temp->next
987.

What is the time complexity of the following iterative code used to find the smallest and largest element in a linked list?

A. O(1)
B. O(n)
C. O(n2)
D. O(n3)View Answer
Answer» C. O(n2)
988.

What is the output of the following code:

A. 5
B. 1
C. runtime error
D. garbage valueView Answer
Answer» D. garbage valueView Answer
989.

Consider the following code snippet to find the smallest element in a linked list: Which of the following lines should be inserted to complete the above code?

A. temp > min_num
B. val > min_min
C. temp->val < min_num
D. temp->val > min_numView Answer
Answer» D. temp->val > min_numView Answer
990.

Consider the following code snippet to find the largest element in a linked list: Which of the following lines should be inserted to complete the above code?

A. temp->next != 0
B. temp != 0
C. head->next != 0
D. head != 0View Answer
Answer» C. head->next != 0
991.

Distance and elevation formulae for fixed hair method assuming the line of sight as horizontal and considering an external focusing type telescope is D = Ks + C. where C is _______

A. f/i
B. i/f
C. f + c
D. f – c
Answer» D. f – c
992.

The following notes refer to a traverse run by a tacheometer fitted with an anallactic lens, with constant 100 and staff held vertical. Line, Bearing, Vertical Angle, Staff Intercept -PQ, 30o 24′, + 5o 06′,1.875; QR, 300o 48′, + 3o 48′,1.445; RS, 226o 12′, − 2o 36′, 1.725 respectively. Find the length and bearing of SP.

A. 191.930 m, 126o 47 ′47′′
B. 190.930 m, 125o 47 ′47′′
C. 193.930 m, 124o 47 ′47′′
D. 192.930 m, 120o 47 ′47′′
Answer» B. 190.930 m, 125o 47 ′47′′
993.

The vertical angles to vanes fixed at 1 m and 3 m above the foot of the staff held vertically at a station P were – 1o 45′ and + 2o 30′, respectively. Find the horizontal distance and the reduced RL of P if the RL of the instrument axis is 110.00 m?

A. 26.95 m, 100.177
B. 20.95 m, 108.177
C. 26.95 m, 108.177
D. 26.95 m, 108.000
Answer» D. 26.95 m, 108.000
994.

The horizontal angle subtended at the theodolite station by a subtense bar with vanes 3 m apart is 0o 10 ′40′′. Calculate the horizontal distance between the theodolite and the subtense bar?

A. 960.00 m
B. 966.87 m
C. 966.78 m
D. 906.87 m
Answer» C. 966.78 m
995.

Following observations were taken with a tacheometer fitted with an anallactic lens having value of constant as 100. Calculate the horizontal distance between P and Q.

A. 149.96 m
B. 140.26 m
C. 141.92 m
D. 143.56 mView Answer
Answer» B. 140.26 m
996.

A tacheometer is setup at an intermediate point on a traverse course PQ and the following observations are made on a staff held vertical. Staff Station Vertical Angle Staff Intercept Axial Hair Readings P + 9o30′ 2.250 2.105 Q + 6o00′ 2.055 1.975 The constants are 100 and 0. Compute the length PQ and the reduced level of Q. RL of P = 350.50 m.

A. 428.13 m; 335.47 m
B. 402.13 m; 335.47 m
C. 422.13 m; 305.47 m
D. 422.13 m; 335.47 m
Answer» E.
997.

Stadia readings were taken with a theodolite on a vertical staff with the telescope inclined at an angle of depression of 3o30′. The staff readings were 2.990, 2.055 and 1.120. The reduced level of the staff station is 100.000m, and the height of the instrument is 1.40 m. What is the reduced level of the ground at the instrument? Take constants as 100 and zero.

A. 102.050 m
B. 122.050 m
C. 112.050 m
D. 132.050 m
Answer» D. 132.050 m
998.

The two targets are at a distance s apart, and each at s/2 from the centre, i.e. vertical axis. The horizontal angle α is measured carefully by means of a theodolite. Then what is the value of D in the subtense bar method?

A. s/2α
B. s/α
C. s/4α
D. 2s/α
Answer» C. s/4α
999.

In the subtense bar method, the horizontal angle subtended by two targets fixed on a horizontal bar at a known distance apart is measured at instrument station by theodolite.

A. True
B. False
Answer» B. False
1000.

The maximum stress in summer by pavement is experienced at __________

A. Morning
B. Mid noon
C. Evening
D. Night
Answer» C. Evening