Quiz questions

1. static void main(String [] arg)
{
char ch;
Console.WriteLine("Enter the character:\t");
ch=Convert.ToChar(Console.ReadLine());

if(ch=='U')
Console.Writeline("The character is X");
else
Console.WriteLine("The char is not X");
Console.ReadLine();
}

wats the o/p of the above code .............................?

2. To which category does the operator ++, = belong.........?

3. In the statement using System, System is a.........................

4. which of the following data type is not a value type.............?

  • char
  • int
  • float
  • string
5.The .............. compiler is used for C#.
  • cc
  • csc
  • cs
6.In which of the following datatypes does the Console.readLine() function accept a value.........?
  • int
  • float
  • bool
  • string
7. Console is a ..........
  • class
  • function
  • namespace
8.In any program, the execution of the program starts from ........

Note:
Give the answers by there respective question numbers.

0 Comments:

Post a Comment



Newer Post Older Post Home