Server-Side Scripting (PHP) | Practice Test 4 | Information Technology | HSC Board 2027
Test #ED7601
- Duration
- 25 min
- Questions
- 25
- Sections
- 1
- Maximum Marks
- 25
About this test and exam rules
Please read them carefully before you start
About this test
Server-Side Scripting (PHP) | Practice Test 4 | Information Technology | HSC Board 2027 is a Premium HSC BOARD EXAM mock test in Information Technology (IT). It has 25 questions to answer in 25 minutes, for 25 marks, +1 for each right answer and no negative marking. The questions cover Server-Side Scripting (PHP) (0 easy, 10 medium and 15 hard questions).
Test 4 is a demanding PHP paper with no easy questions at all. Of its 25 questions, 10 are medium and 15 are hard, so expect to think through almost every item. String functions carry the most weight, with five questions on substr(), strpos(), substr_count(), return values and reading code output. Operators come next with four questions, covering modulus with a negative number, loose versus strict comparison, compound assignment and evaluating comparison expressions. There are three questions each on variable scope (the global keyword and the $GLOBALS array), form handling (GET versus POST and the default form method) and PDO database connectivity. Arrays, loops, functions, variable names and cookies fill out the rest.
This is the only published test in its group, so it works as a full-chapter check rather than a gentle warm-up. It suits HSC Information Technology students who have already revised PHP and want to see whether they can handle tricky output-based questions under time pressure, with 25 minutes for 25 questions.
When tracing string code, write down the character positions on rough paper, starting from zero, before you decide what substr() or strpos() returns. For scope questions, check whether each variable is local or global inside the function before you work out the output.
Topics covered
Information Technology · 25 questions
- Server-Side Scripting (PHP) (25)
Question difficulty: 0 easy, 10 medium, 15 hard.
Concepts tested
- Arrays - count() on a multidimensional array (1)
- Arrays - foreach with key and value (1)
- Control Structures - foreach copies values (1)
- Control Structures - Nested for loops (1)
- Cookies - Cookies and sessions in practice (1)
- Database Connectivity - Error mode (1)
- Database Connectivity - Order of PDO method calls (1)
- Database Connectivity - PDO facts (1)
- Form Handling - Default form method (1)
- Form Handling - Form attributes and PHP (1)
- Form Handling - GET vs POST (1)
- Functions - Function with while loop (1)
Test pattern
| Section | Subjects | Questions | Time | Marks / Q |
|---|---|---|---|---|
| Information Technology | Information Technology (IT) Q1–25 | 25 | 25 min | +1 / 0 |
Information Technology
- Questions
- 25
- Time
- 25 min
- Marks / Q
- +1 / 0
More tests for this exam
- E-Commerce and E-Governance | Practice Test 3 | Information Technology | HSC Board 2027
- E-Commerce and E-Governance | Practice Test 4 | Information Technology | HSC Board 2027
- E-Commerce and E-Governance | Practice Test 2 | Information Technology | HSC Board 2027
- E-Commerce and E-Governance | Practice Test 5 | Information Technology | HSC Board 2027
- Server-Side Scripting (PHP) | Practice Test 3 | Information Technology | HSC Board 2027
- E-Commerce and E-Governance | Practice Test 1 | Information Technology | HSC Board 2027
- Server-Side Scripting (PHP) | Practice Test 5 | Information Technology | HSC Board 2027
- Server-Side Scripting (PHP) | Practice Test 2 | Information Technology | HSC Board 2027