Web Programming

Web Programming

University

30 Qs

quiz-placeholder

Similar activities

Introduction to C Programming

Introduction to C Programming

12th Grade - University

31 Qs

BSCS 2-2 - DAA - Midterm Examination - 2nd Sem 2022-2023

BSCS 2-2 - DAA - Midterm Examination - 2nd Sem 2022-2023

University

35 Qs

Python Quiz II

Python Quiz II

9th Grade - University

30 Qs

Java Quiz I- B

Java Quiz I- B

University

31 Qs

Reviewer

Reviewer

University

30 Qs

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

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

University

30 Qs

PT1 Chapter 4-5

PT1 Chapter 4-5

University

25 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?