TN Online TestSamacheer Kalvi practice

12th Standard Computer Applications — Functions and Arrays in PHP: Online Practice Test

Share this chapter: Telegram

Pick how many questions you want and set a time limit, then start. You'll get your score at the end with the correct answer and an explanation for every question. Free, in Tamil and English — 26 questions available.

Set up your test

Time remaining00:00
Q1
A_________is a block of code that performs a specific task.
Q2
Pre-defined functions are also called _________.
Q3
Which one of the following is the right way of defining a function in PHP?
Q4
A user-defined function in PHP starts with the keyword _________.
Q5
Which of the following is a correct way to call a function in PHP?
Q6
What is an array in PHP?
Q7
How many types of arrays are there in PHP?
Q8
What is the index of the first element in an indexed array in PHP?
Q9
What is the index of the third element in an indexed array in PHP with 5 elements?
Q10
How do you create an indexed array in PHP?
Q11
How do you access the elements of an indexed array in PHP?
Q12
Which of the following is an advantage of using functions in PHP that allows programmers to test and debug individual blocks of code separately from the rest of the application?
Q13
How does PHP handle case-sensitivity regarding user-defined function names?
Q14
A user-defined function name in PHP must start with which of the following characters?
Q15
In PHP terminology, what is the precise distinction between the terms "parameter" and "argument"?
Q16
How does PHP differ from traditional programming languages regarding the data types stored within a single array?
Q17
Which of the following is another term used to describe the keys in a PHP associative array?
Q18
When declaring a PHP array name, which symbol must it begin with, followed by a letter or an underscore?
Q19
Which operator is used to separate keys from their corresponding values when defining an associative array in PHP?
Q20
In a PHP multidimensional array, what do the first and second sets of square brackets specify respectively?
Q21
Which of the following is another name for a PHP multidimensional array?
Q22
Consider the PHP array: \$student = array("name" => "Barath", "age" => 23);. What will be the output of echo \$student["age"];?
Q23
Which of the following is a correct syntax to create an indexed array containing elements in PHP?
Q24
What is the key keyword used in PHP to initiate the declaration of a user-defined function?
Q25
Which of the following describes the modularity advantage of using functions in PHP?
Q26
Consider the PHP nested array: \(arr = array(array(1, 2, 3), array(4, 5, 6), array(7, 8, 9));. What is the value of \)arr?

More for this chapter

Book Back Questions11 textbook MCQs · solved Additional MCQs15 extra MCQs · solved Book Back TestTest yourself on the textbook set Additional MCQ TestTest yourself on the extra set Study NotesConcepts & methods Formula SheetAll key formulas

About this Functions and Arrays in PHP test

This free online practice test covers Functions and Arrays in PHP from the 12th Standard Computer Applications (Samacheer Kalvi) syllabus. Choose the number of questions and an optional time limit, then answer and submit — everything is checked in your browser, with the correct answers and a worked explanation shown at the end. For the full solutions to every question in this set, see the solved MCQs page.

More chapters in Computer Applications

View all
1 Multimedia 2 An Introduction to Adobe PageMaker 3 Introduction to Database Management System 4 PHP: Hypertext Preprocessor 6 Conditional Statements in PHP 7 Loops in PHP 8 Forms and Files 9 Connecting PHP and MYSQL 10 Introduction to Computer Networks 11 Network Examples and Protocols 12 Domain Name System (DNS) 13 Network Cabling 14 Open Source Concepts 15 E-Commerce 16 Electronic Payment Systems 17 E-Commerce Security Systems 18 Electronic Data Interchange- EDI