BPSC TRE – Python & Web Scripting Languages | Test 1

Questions 41-45 of 50

0% completed (0/50 answered)
Your score 0/50 0 answered
Correct 0 Incorrect 0 Unanswered 50 Accuracy 0%

Question 41

MCQ · Single Correct 1 mark

What is the crucial difference between include and require in PHP when a target file is missing?

Answers for question 41

Question 42

MCQ · Single Correct 1 mark

Which PHP function must be called at the very top of a web script before any HTML output to initialize or resume session state?

Answers for question 42

Question 43

MCQ · Single Correct 1 mark

Which function in PHP is used to prevent Cross-Site Scripting (XSS) by escaping HTML special characters in user input?

Answers for question 43

Question 44

MCQ · Single Correct 1 mark

What is the default file extension for PHP scripts executed on a web server?

Answers for question 44

Question 45

MCQ · Single Correct 1 mark

In PHP, which operator is used for string concatenation?

Answers for question 45
Scroll to Top