TN Online TestSamacheer Kalvi practice

12th Standard Computer Applications — Functions and Arrays in PHP: Additional 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 — 15 questions available.

Set up your test

Time remaining00:00
Q1
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?
Q2
How does PHP handle case-sensitivity regarding user-defined function names?
Q3
A user-defined function name in PHP must start with which of the following characters?
Q4
In PHP terminology, what is the precise distinction between the terms "parameter" and "argument"?
Q5
How does PHP differ from traditional programming languages regarding the data types stored within a single array?
Q6
Which of the following is another term used to describe the keys in a PHP associative array?
Q7
When declaring a PHP array name, which symbol must it begin with, followed by a letter or an underscore?
Q8
Which operator is used to separate keys from their corresponding values when defining an associative array in PHP?
Q9
In a PHP multidimensional array, what do the first and second sets of square brackets specify respectively?
Q10
Which of the following is another name for a PHP multidimensional array?
Q11
Consider the PHP array: \$student = array("name" => "Barath", "age" => 23);. What will be the output of echo \$student["age"];?
Q12
Which of the following is a correct syntax to create an indexed array containing elements in PHP?
Q13
What is the key keyword used in PHP to initiate the declaration of a user-defined function?
Q14
Which of the following describes the modularity advantage of using functions in PHP?
Q15
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 Practice TestInteractive · instant score Book Back TestTest yourself on the textbook 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