1
ICAR JRF Computer Application 29 Jun 2024Shift 1
MCQ (Single Correct) +4 −1

Consider the following statements regarding various functions used in Per!

(A) . The splice() function is a general purpose function to add or remove array elements
(B) . The push() function may be used to append a list of items to the beginning of an array,
(C) . The unshift() function prepends a list of items to the end of an array.

Choose the correct answer from the options given below:

EXPLANATION C++ Programming
  • Perl Array Functions:
  • splice(): General-purpose function that modifies array elements by removing, replacing, or inserting items at any index. splice(@array, offset, length, list) is versatile for all array manipulations. (True)
  • push(): Appends elements to the end of an array (not the beginning). To add items to the beginning, unshift() is used. (False)
  • unshift(): Prepends elements to the beginning of an array (not the end). To append items to the end, push() is used. (False)
  • Conclusion: Only (A) is true (Option 1).

Correct option: (1) Only (A) is true

Explanation not matching this question? क्या व्याख्या इस प्रश्न से मेल नहीं खा रही? Report
Want to practice this paper in exam conditions? क्या आप परीक्षा जैसे माहौल में अभ्यास करना चाहते हैं? Test yourself in 5-question batch format with timer and hidden answers. 5-प्रश्नों के बैच फॉर्मैट, टाइमर और छिपे उत्तरों के साथ खुद को परखें।
Start Practice Mode → प्रैक्टिस टेस्ट मोड शुरू करें →
Official PYQ Papers

Previous Year Papers of Computer Application

Practice official shift-wise question papers with answer keys and detailed explanations on the actual exam pattern.

1
Total Available Previous Papers

Choose Exam

Exam Directory

Browse official Previous papers and mock tests

10 Major Agriculture Exams Available