en
Feedback
Coding Quiz Zone

Coding Quiz Zone

Open in Telegram

✨ Part Of @OfficialCodingExpert Dive into the world of computer science, programming, and coding challenges. Sharpen your skills, expand your knowledge, and embark on a journey of continuous learning. Stay tuned for daily quizzes!

Show more
1 575
Subscribers
No data24 hours
No data7 days
-930 days
Posts Archive
class UnsafeCode
{
    static void Main()
    {
        int? count = null;
        int? result = null;
        int incr = 10;
        result = count + incr;
        if (result.HasValue)
            Console.WriteLine("result has this value: " + result.Value);
        else
            Console.WriteLine("result has no value");
        Console.ReadLine();
    }
}

What will be the output of the following C# code snippet?
Anonymous voting

class UnsafeCode
{
    static void Main()
    {
        int count = 100;
        int? result = null;
        int incr = 10;
        result = count + incr;
        if (result.HasValue)
            Console.WriteLine("result has this value: " + result.Value);
        else
            Console.WriteLine("result has no value");
        Console.ReadLine();
    }
}

Choose the statement which defines the Nullable type Correctly:
Anonymous voting

A function in PHP which starts with __ (double underscore) is known as __________
Anonymous voting

What will be the output of the following PHP code?
Anonymous voting

<?php
define("GREETING", "PHP is a scripting language");
echo $GREETING;
?>

In the following PHP program, what is/are the properties?
Anonymous voting

<?php
    class Example 
    {
        public $name;
        function Sample()
        {
            echo "Learn PHP @ Sanfoundry";
        }
    } 
?>

Which of the following PHP functions can be used for generating unique ids?
Anonymous voting

What will be the output of the following PHP program?
Anonymous voting

<?php
    function multi($num)
    {
        if ($num == 3)
            echo "I Wonder";
        if ($num == 7)
            echo "Which One";
        if ($num == 8)
            echo "Is The";
        if ($num == 19)
            echo "Correct Answer";
    }
    $can = stripos("I love php, I love php too!","PHP");
    multi($can);
?>

What will be the output of the following PHP program?
Anonymous voting

<?php
$fruits = array ("apple", "orange", array ("pear", "mango"),"banana");
echo (count($fruits, 1));
?>

Which is the right way of declaring a variable in PHP?
Anonymous voting

What will be the output of the following PHP code?
Anonymous voting

<?php
$x = 10;
$y = 20;
if ($x > $y && 1||1)
    print "1000 PHP MCQ" ;
else
    print "Welcome to Sanfoundry";
?>

How to define a function in PHP?
Anonymous voting

Which of the following is the default file extension of PHP files?
Anonymous voting

Which of the following is the correct way to add a comment in PHP code?
Anonymous voting