博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
php知识点汇总与解答_PHP操作员能力倾向问题与解答
阅读量:2531 次
发布时间:2019-05-11

本文共 2623 字,大约阅读时间需要 8 分钟。

php知识点汇总与解答

This section contains Aptitude Questions and Answers on PHP Operators.

本节包含有关PHP运算符的 Aptitude问答。

1) Which of the following types of operators are used in PHP?
  1. Arithmetic Operators

  2. Logical Operators

  3. Array Operators

  4. String Operators

Options:

Answer & Explanation

Correct answer: 4

A, B, C, and D

All given options are correct types of operators are used in PHP.

1)PHP中使用以下哪种运算符?
  1. 算术运算符

  2. 逻辑运算符

  3. 数组运算符

  4. 字符串运算符

选项:

答案与解释

正确答案:4

A,B,C和D

所有给定的选项都是PHP中使用的正确运算符类型。

2) What is the correct output of the given code snippets?
Answer & Explanation

Correct answer: 2

81

The above code will print "81" on the webpage. Because ** operator is used for exponential.

2)给定代码段的正确输出是什么?
答案与解释

正确答案:2

81

上面的代码将在网页上打印“ 81” 。 因为**运算符用于指数。

3) The "**" operator belongs to which category of operators?
Answer & Explanation

Correct answer: 1

Arithmetic operator

The ** operator belongs to arithmetic operators.

3)“ **”运算符属于哪一类运算符?
答案与解释

正确答案:1

算术运算符

**运算符属于算术运算符。

4) Which of the following are comparison operators in PHP?
  1. ==

  2. !=

  3. ===

  4. < = >

Options:

Answer & Explanation

Correct answer: 4

A, B, C, and D

All the given options are comparison operators.

4)以下哪个是PHP中的比较运算符?
  1. ==

  2. !=

  3. ===

  4. <=>

选项:

答案与解释

正确答案:4

A,B,C和D

所有给定的选项都是比较运算符。

5) What is the correct output of given code snippets?
$NUM2);?>
Answer & Explanation

Correct answer: 1

bool(true)

The above code will print bool(true) on the webpage, the <> operator is "not equal to" operator.

5)给定代码段的正确输出是什么?
答案与解释

正确答案:1

布尔值(true)

上面的代码将在网页上打印bool(true) , <>运算符为“不等于”运算符。

6) What is the correct output of given code snippets?
Answer & Explanation

Correct answer: 1

bool(true)

The above code will print bool(true) on the webpage.

6)给定代码段的正确输出是什么?
答案与解释

正确答案:1

布尔值(true)

上面的代码将在网页上打印bool(true) 。

7) What is the correct output of given code snippets?
$NUM2);?>
Answer & Explanation

Correct answer: 2

int(-1)

The above code will print "int(-1)" on the webpage.

7)给定代码段的正确输出是什么?
答案与解释

正确答案:2

整数(-1)

上面的代码将在网页上打印“ int(-1)”

8) Which of the following operator is not available in PHP?
Answer & Explanation

Correct answer: 4

@

The @ operator is not available in PHP.

8)以下哪个运算符在PHP中不可用?
答案与解释

正确答案:4

@

@运算符在PHP中不可用。

9) What is the correct output of given code snippets?
Answer & Explanation

Correct answer: 1

india

The above code will print the "india" on the webpage.

9)给定代码段的正确输出是什么?
答案与解释

正确答案:1

印度

上面的代码将在网页上打印“印度”

10) Which of the following operator is known as null coalescing in PHP?
Answer & Explanation

Correct answer: 3

??

The ?? operator is known as the null coalescing operator in PHP.

10)以下哪个运算符在PHP中被称为空合并?
答案与解释

正确答案:3

??

?? 运算符在PHP中被称为空合并运算符。

翻译自:

php知识点汇总与解答

转载地址:http://uotzd.baihongyu.com/

你可能感兴趣的文章
小D课堂 - 新版本微服务springcloud+Docker教程_3-05 服务注册和发现Eureka Server搭建实战...
查看>>
小D课堂 - 新版本微服务springcloud+Docker教程_3-06 服务注册和发现之Eureka Client搭建商品服务实战...
查看>>
小D课堂 - 新版本微服务springcloud+Docker教程_3-07 Eureka服务注册中心配置控制台问题处理...
查看>>
小D课堂 - 新版本微服务springcloud+Docker教程_4-01 常用的服务间调用方式讲解
查看>>
小D课堂 - 新版本微服务springcloud+Docker教程_4-02 微服务调用方式之ribbon实战 订单调用商品服务...
查看>>
小D课堂 - 新版本微服务springcloud+Docker教程_4-03 高级篇幅之Ribbon负载均衡源码分析实战...
查看>>
小D课堂 - 新版本微服务springcloud+Docker教程_4-06 Feign核心源码解读和服务调用方式ribbon和Feign选择...
查看>>
小D课堂 - 新版本微服务springcloud+Docker教程_4-05 微服务调用方式之feign 实战 订单调用商品服务...
查看>>
小D课堂 - 新版本微服务springcloud+Docker教程_5-02 Netflix开源组件断路器
查看>>
小D课堂 - 新版本微服务springcloud+Docker教程_5-01分布式核心知识之熔断、降级
查看>>
小D课堂 - 新版本微服务springcloud+Docker教程_5-04 feign结合hystrix断路器开发实战下...
查看>>
小D课堂 - 新版本微服务springcloud+Docker教程_5-03 feign结合hystrix断路器开发实战上...
查看>>
小D课堂 - 新版本微服务springcloud+Docker教程_6-01 微服务网关介绍和使用场景
查看>>
小D课堂 - 新版本微服务springcloud+Docker教程_5-05熔断降级服务异常报警通知
查看>>
小D课堂 - 新版本微服务springcloud+Docker教程_6-03 高级篇幅之zuul常用问题分析
查看>>
小D课堂 - 新版本微服务springcloud+Docker教程_5-08 断路器监控仪表参数
查看>>
小D课堂 - 新版本微服务springcloud+Docker教程_6-02 springcloud网关组件zuul
查看>>
小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_2-1.快速搭建SpringBoot项目,采用Eclipse...
查看>>
小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_1-4.在线教育后台数据库设计...
查看>>
小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_2-3.热部署在Eclipse和IDE里面的使用...
查看>>