Coding Quiz Zone
رفتن به کانال در 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!
نمایش بیشتر1 552
مشترکین
+324 ساعت
+57 روز
+330 روز
آرشیو پست ها
1 550
If a class defines the __str__(self) method, for an object obj for the class, you can use which command to invoke the __str__ method.
1 550
To retrieve the character at index 3 from string s=”Hello” what command do we execute (multiple answers allowed)?
1 550
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();
}
}1 550
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();
}
}1 550
Choose the statement which defines the Nullable type Correctly:
1 550
A function in PHP which starts with __ (double underscore) is known as __________
1 550
<?php
class Example
{
public $name;
function Sample()
{
echo "Learn PHP @ Sanfoundry";
}
}
?>1 550
Which of the following PHP functions can be used for generating unique ids?
1 550
<?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);
?>