Web Programming

Web Programming

University

30 Qs

quiz-placeholder

Similar activities

Java Quiz I- B

Java Quiz I- B

University

31 Qs

ตัวดำเนินการ นิพน์ เงื่อนไข

ตัวดำเนินการ นิพน์ เงื่อนไข

University

30 Qs

Data Security Breach

Data Security Breach

University

33 Qs

File I/O and Exceptions v1.0

File I/O and Exceptions v1.0

University

33 Qs

Desafío de Python para Estudiantes

Desafío de Python para Estudiantes

University

26 Qs

Web Programming

Web Programming

Assessment

Quiz

Instructional Technology

University

Hard

Created by

Julius Codilan

Used 2+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of this PHP code: echo strtr("abc", "abc", "123");

abc

123

132

a1b2c3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Function to split string using regex?

preg_split()

preg_regex()

preg()

split()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will str_repeat("PHP", 3); return?

PHP

PHP PHP PHP

PHP3

PHPPHPPHP

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function finds the last occurrence of a substring in a string?

substr()

strpos()

strrpos()

strlastpos()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of:

$str = "hello world"; echo substr($str, -5, 3);

wor

rld

llo

orl

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the use of heredoc syntax in PHP?

Error handling

Embedding variables in strings easily

Faster looping

Importing files

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop is guaranteed to run at least once?

For

Foreach

While

do...While

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Instructional Technology