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
Which of the following is the correct syntax to write a PHP code?
Anonymous voting

What does PHP stand for?
Anonymous voting

Who is the father of PHP?
Anonymous voting

What is PHP?
Anonymous voting

Accessibility modifiers defined in a class are?
Anonymous voting

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

 class test
 {
     public   int a;
     public  int b;
     public  test(int i, int j)
     {
         a = i;
         b = j;
     }
     public void meth(test o)
     {
         o.a *= 2;
         o.b /= 2;
     }
 }    
 class Program
 {
     static void Main(string[] args)
     {
         test obj = new test(10, 20);
         obj.meth(obj);
         Console.WriteLine(obj.a + " " + obj.b);    
         Console.ReadLine();
     }
 }

Which of these access specifiers must be used for class so that it can be inherited by another subclass?
Anonymous voting

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

class static_out
{
    public static int x;
    public  static int y;
    public int add(int a, int b)
    {
        x = a + b;
        y = x + b;
        return 0;
    }
}    
class Program
{
    static void Main(string[] args)
    {
        static_out obj1 = new static_out();
        static_out obj2 = new static_out();   
        int a = 2;
        obj1.add(a, a + 1);
        obj2.add(5, a);
        Console.WriteLine(static_out.x + " " + static_out.y );     
        Console.ReadLine();
    }
}

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

 class sum   
 {
     public int x;
     public int y;
     public  int add (int a, int b)
    {
        x = a + b;
        y = x + b;
        return 0;
    }
}    
class Program
{
    static void Main(string[] args)
    {
        sum obj1 = new sum();
        sum obj2 = new sum();   
        int a = 2;
        obj1.add(a, a + 1);
        obj2.add(5, a);
        Console.WriteLine(obj1.x + "  " + obj2.y);     
        Console.ReadLine();
    }
}

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

class access
{
    public int x;
    private int y;
    public  void cal(int a, int b)
    {
        x = a + 1;
        y = b;
    }
    public  void print() 
   {
       Console.WriteLine(" " + y);     
   } 
}    
class Program
{
    static void Main(string[] args)
    {
        access obj = new access();   
        obj.cal(2, 3);
        Console.WriteLine(obj.x);
        obj.print();
        Console.ReadLine();
    }
}

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

 class access
 {
     public int x;
     private int y;
     public  void cal(int a, int b)
     {
         x = a + 1;
         y = b;
     }
 }    
 class Program
 {
     static void Main(string[] args)
     {
         access obj = new access();   
         obj.cal(2, 3);
         Console.WriteLine(obj.x + " " + obj.y);     
     }
 }

Which of these base class are accessible to the derived class members?
Anonymous voting

What is the process by which we can control what parts of a program can access the members of a class?
Anonymous voting

Which of these is used as default for a member of a class if no access specifier is used for it?
Anonymous voting

Which among these access specifiers should be used for main() method?
Anonymous voting