HPRCA JOA IT Functions, Arrays and Strings PYQs

5 previous year questions on Functions, Arrays and Strings (Web Technologies - PHP) in 5 HP Junior Office Assistant (IT) papers, 2026: 0.3% of all the JOA IT questions we hold.

Questions
5
Papers
5
Years
2026

What to study in Functions, Arrays and Strings

  • User-defined functions, call by value and reference
  • Indexed and associative arrays
  • String functions, regular expressions

Functions, Arrays and Strings questions by year

YearQuestions
20265

Sample Functions, Arrays and Strings questions

Answers, explanations and all 5 questions are in the practice app.

Question 70 · Syllabus as per Essential Qualification

Which function would you use to check if a string has more than 10 characters in PHP?

  1. (A)str_split
  2. (B)strlen
  3. (C)strtolower
  4. (D)str_replace
Show in Hindi

PHP में यह जाँचने के लिए कि क्या किसी स्ट्रिंग में 10 से अधिक कैरेक्टर हैं, आप किस फंक्शन का उपयोग करेंगे?

  1. (A) str_split
  2. (B) strlen
  3. (C) strtolower
  4. (D) str_replace

Question 70 · Syllabus as per Essential Qualification

यदि आप PHP में, किसी फ़ं क्शन के अंदर एक अस्थायी गणना परिणाम को इस प्रकार स्टोर करना चाहते हैं कि फ़ं क्शन के बाहर वाला समान-नाम वाला वेरिएबल प्रभावित न हो, तो आपको किस वेरिएबल डिक्लेरेशन उपागम का उपयोग करना चाहिए?

  1. (A)फ़ं क्शन के अंदर वेरिएबल को static के रूप में डिक्लेयर करें
  2. (B)मान को स्टोर करने के लिए सुपरग्लोबल ऐरे का उपयोग करें
  3. (C)फ़ं क्शन के अंदर global कीवर्ड का उपयोग करके वेरिएबल को डिक्लेयर करें
  4. (D)फ़ं क्शन के अंदर, global कीवर्ड का उपयोग किए बिना एक लोकल वेरिएबल को डिक्लेयर करें
Show in English

If you want to store a temporary calculation result within a function in PHP without affecting the same-named variable outside the function, which variable declaration approach should you use?

  1. (A) Declare the variable as static inside the function
  2. (B) Use a superglobal array to store the value
  3. (C) Declare the variable using the global keyword inside the function
  4. (D) Declare a local variable inside the function without using the global keyword

Papers with Functions, Arrays and Strings questions

Frequently asked questions

How many Functions, Arrays and Strings questions have come in JOA IT?
5 questions in 5 of the 16 papers on AiPYQs (2026), about 0.3% of all JOA IT questions we hold.
Are these the official JOA IT previous year papers?
No. They are memory-based sample papers submitted by students for analysis, not official papers. Answers in the practice app are labelled with their source.
Where can I practise Functions, Arrays and Strings PYQs with answers?
In the AiPYQs practice app: sign in with Google and the first 50 questions of JOA IT are free every day. The exam plan unlocks every question with answers, AI Insights and a study planner.