Explore topic-wise MCQs in Php.

This section includes 14 Mcqs, each offering curated multiple-choice questions to sharpen your Php knowledge and support exam preparation. Choose a topic below to get started.

1.

THE_OPERATOR_‚ÄÖ√Ñ√∂‚ÀÖ√Ë‚Àւ§&‚ÄÖ√Ñ√∂‚ÀÖ√Ë‚ÀÖ¬•_IS_CALLED_THE______OPERATOR.?$#

A. Logical AND operator
B. Bitwise AND operator
C. Arithmetic addition operator
D. Concatenation operator
Answer» E.
2.

5?$

A. 44
B. 82
C. 42
Answer» B. 82
3.

The operators like =, /=, <, >, >= are called _________$

A. Arithmetic operators
B. Concatenation operators
C. Logical operators
D. Relational operators
Answer» C. Logical operators
4.

What is the type of result of MOD operator?$

A. Numeric
B. Integer
C. Array
D. Bit
Answer» B. Integer
5.

What is the type of result for comparison operators?

A. Boolean
B. Integer
C. Numeric
D. Array
Answer» E.
6.

______ operator is unary as well as binary operator?

A. –
B. *
C. /
D. **
Answer» C. /
7.

Which of the following VHDL statement is equivalent to NAND operation, if y, a and b are SIGNALS?

A. y <= NOT a AND b
B. y <= NOT a OR NOT b
C. y <<= NOT a AND NOT b
D. y <<= NOT (a OR b)
Answer» E.
8.

b)’$

A. y <= (a+b)’ and z <= a’+b’
B. y <= a’+b and z <= a’+b’
C. y <= a+b’ and z <= a.b
Answer» B. y <= a‚Äö√Ñ√∂‚àö√ë‚àö¬•+b and z <= a‚Äö√Ñ√∂‚àö√ë‚àö¬•+b‚Äö√Ñ√∂‚àö√ë‚àö¬•
9.

testthisthisalso

A. testthis
B. testthisalsothisalso
C. error at line 4
Answer» B. testthisalsothisalso
10.

Which of the following logical operator has highest precedence?

A. NAND
B. NOR
C. NOT
D. EXOR
Answer» D. EXOR
11.

y <= (1 => ‘1’, OTHERS => ’0’);$

A. y := “0100”;
B. y => “0100”;
C. y => x;
Answer» D.
12.

11

A. 12
B. 10
C. error
Answer» C. error
13.

A VARIABLE y is declared of STD_LOGIC_VECTOR type of 4 bits, if you want to assign 1001 to y, then what is the write assignment statement?

A. y <= “1001”
B. y := “1001”
C. y <= ‘1’, ‘0’, ‘0’, ‘1’
D. y => “1001”
Answer» C. y <= ‚Äö√Ñ√∂‚àö√ë‚àö‚â§1‚Äö√Ñ√∂‚àö√ë‚àö¬•, ‚Äö√Ñ√∂‚àö√ë‚àö‚â§0‚Äö√Ñ√∂‚àö√ë‚àö¬•, ‚Äö√Ñ√∂‚àö√ë‚àö‚â§0‚Äö√Ñ√∂‚àö√ë‚àö¬•, ‚Äö√Ñ√∂‚àö√ë‚àö‚â§1‚Äö√Ñ√∂‚àö√ë‚àö¬•
14.

11111213

A. 11121213
B. 11111212
C. 11111112
Answer» B. 11111212