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
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

The format function, when applied on a string returns ___________
Anonymous voting

Suppose s is “\t\tWorld\n”, what is s.strip()?
Anonymous voting

Which of the following statement prints hello\example\test.txt?
Anonymous voting

What will be the output of the following Python statement? >>>print(chr(ord('b')+1))
Anonymous voting

Which of the following media type is used for computer screens?
Anonymous voting

Which value specifies the number of colors the device can display?
Anonymous voting

Which value will define the viewport width?
Anonymous voting