Can’t find an answer?

Can’t find an answer?

Ask us to get the answer

  • This forum is empty.

Which of the following is used to calculate a number of character values in PHP?

(A)

count($variable)

(B)

len($variable)

(C)

strcount($variable)

(D)

strlen($variable)

What is the output of the below code snippets?

<?php
while()
{
echo "GeeksForGeeks";
}
?>
(A) Hello World
(B) Infinite loop
(C) no output
(D) Error

What is the output of the following code snippets:<?php
$output = array(3, 3, 3);
echo array_product($a);
?>

(A) 8
(B) 27
(C) 10
(D) 6

Which below method is used to compute the difference between two arrays in PHP?
(A) array_diff
(B) diff_array
(C) arrays_diff
(D) diff_arrays

Which inbuilt function in PHP is used to sort the element in Descending order?
(A) sort()
(B) asort()
(C) dsort()
(D) rsort()

What will be the output of the following code?




<script>
let ans = 0 / 0;
document.write(ans);
</script>

(A) 0
(B) infinity
(C) NaN
(D) None of the above

What will be the output of the following code?




<script>
document.write((0 && 1) || (1 || 0));
</script>

(A) 0
(B) false
(C) true
(D) 1

What will be the output of the following code?




<script>
let i = 30;
if( i == 10 || i > 20){
console.log('Hola');
}else if( i == 5){
console.log('Breaking up the code');
}else{
console.log('Adios');
}
</script>

(A) Hola
(B) Breaking up the code
(C) Adios
(D) None of the above

What will be the output of the following code?




<script>
let y = 1;
y = typeof x;
document.write(typeof y);
</script>

(A) string
(B) null
(C) number
(D) boolean

What will be the output of the following code?




<script>
let age = 20;
let result = age>18 ? 'Great' : 'Not so great';
document.write(result);
</script>

(A) Great
(B) Not so great
(C) true
(D) None of the above

Viewing 15 topics - 16 through 30 (of 74 total)

1 2 3 4 5
  • You must be logged in to create new topics.