ru
Feedback

Не попадитесь на канал ботавода! Telemetrio находит и помечает такие каналы 👉 Хотите видеть метку — оформите подписку

Coding Quiz Zone

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 550
Подписчики
-424 часа
+17 дней
-130 дней
Архив постов
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

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

class UnsafeCode
{
    unsafe static void Main()
    {
        int* ptrs = stackalloc int[3];
        ptrs[0] = 1;
        ptrs[1] = 2;
        ptrs[2] = 3;
        for (int i = 2; i >=0; i--)
        Console.WriteLine(ptrs[i]);
        Console.ReadLine();
    }
}

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

 unsafe struct FixedBankRecord
 {
     public fixed byte Name[80]; 
     public double Balance;
     public long ID;
 }
 class UnsafeCode
 {
     unsafe static void Main()
     {
         Console.WriteLine("Size of FixedBankRecord is " + sizeof(FixedBankRecord));
         Console.ReadLine();
     }
 }

Which operator is commonly used to find the size of the type of C#?
Anonymous voting

What is “Hello”.replace(“l”, “e”)?
Anonymous voting

Say s=”hello” what will be the return value of type(s)?
Anonymous voting

What will be displayed by print(ord(‘b’) – ord(‘a’))?
Anonymous voting

What will be the output of the following Python statement?(python 3.xx)
Anonymous voting

>>>print(format("Welcome", "10s"), end = '#')
>>>print(format(111, "4d"), end = '#')
>>>print(format(924.656, "3.2f"))

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

>>>print("D", end = ' ')
>>>print("C", end = ' ')
>>>print("B", end = ' ')
>>>print("A", end = ' ')

What will be the output of the “hello” +1+2+3?
Anonymous voting