aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • .NET Framework and C# Fundamentals
  • What is the class in System.Console.WriteLine()?
Multiple choice

What is the class in System.Console.WriteLine()?

  1. System

  2. Console

  3. WriteLine

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The above written line contains the namespace System. Console, which is the class used to write on to the console and the WriteLine is the method to write the line on the screen.

Keep practicing — related questions

  • Why is the method ReadLine() used for in the System. Console.ReadLine()?
  • What will be the output of the following code? using System;class A { public void DemoA() { Console.WriteLi...
  • Which of the following classes is used to perform basic console I/O?
  • Identify the output of the code given below: using System; class Demo1 { public void X() { Console.WriteLin...
  • Which of the following techniques allows us to use only the command Console. WriteLine() instead of the ent...
  • The method readLine() can be accessed by the object of a ____________ class to read a string from console.
  • Every class directly or indirectly extends the______class.
  • public class A{ public A() { Console.WriteLine("A");} } public class B: A { public B(){Console.WriteLine("B...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Object-Oriented Programming (2239 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy