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 أيام
أرشيف المشاركات
1 550
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();
}
}1 550
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);
}
}1 550
Which of these base class are accessible to the derived class members?
1 550
What is the process by which we can control what parts of a program can access the members of a class?
1 550
Which of these is used as default for a member of a class if no access specifier is used for it?
1 550
Which among these access specifiers should be used for main() method?
1 550
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();
}
}1 550
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();
}
}1 550
Which operator is commonly used to find the size of the type of C#?
1 550
What will be the output of the following Python statement?(python 3.xx)
1 550
>>>print(format("Welcome", "10s"), end = '#')
>>>print(format(111, "4d"), end = '#')
>>>print(format(924.656, "3.2f"))1 550
>>>print("D", end = ' ')
>>>print("C", end = ' ')
>>>print("B", end = ' ')
>>>print("A", end = ' ')