PHP TEST -6

PHP TEST -6

University

5 Qs

quiz-placeholder

Similar activities

Fundamental of programming

Fundamental of programming

University

7 Qs

CSC126 Quick Exercise 1-1

CSC126 Quick Exercise 1-1

University

10 Qs

PHP Basics

PHP Basics

University

10 Qs

CHAPTER 7 - PHP PROGRAMMING

CHAPTER 7 - PHP PROGRAMMING

University

10 Qs

PHP Introduction - Assignment 1

PHP Introduction - Assignment 1

University

10 Qs

quizz démarrage PHP SIO2 SLAM

quizz démarrage PHP SIO2 SLAM

University

10 Qs

หลังเรียนบทที่5 การพัฒนาเว็บไซต์แบบ Dynamic

หลังเรียนบทที่5 การพัฒนาเว็บไซต์แบบ Dynamic

University

10 Qs

PTS DMI

PTS DMI

12th Grade - University

10 Qs

PHP TEST -6

PHP TEST -6

Assessment

Quiz

Computers

University

Hard

Created by

Arivuselvi A

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the below symbols is a newline character?

\r

\n

/n

/r

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of following variables can be assigned a value to it?

(i) $3hello

(ii) $_hello

(iii) $this

(iv) $This

All of the mentioned

Only (ii)

(ii), (iii) and (iv)

(ii) and (iv)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed?

12

1

Error

5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following PHP statements will output Hello World on the screen?

(i) echo ("Hello World);

(ii) print ("Hello World);

(iii) printf ("Hello World);

(iv) sprintf ("Hello World);

(i) and (ii)

(i), (ii) and (iii)

All of the mentioned

(i), (ii) and (iv)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following PHP code?

< ?php $score = 1234;

$scoreboard = (array) $score;

echo $scoreboard[0];

?>

1

Error

1234

2