NEW
Font size
WorksheetsC# Concepts and Code Quiz
Total questions: 15
Worksheet time: 8mins
What is the keyword used to import namespaces and libraries in C#?
using
namespace
class
public
Which keyword is used to define a class in C#?
using
namespace
class
public
What is the keyword used to make class members accessible from outside?
public
private
static
void
Which keyword is used to define a method that returns nothing in C#?
void
int
string
bool
What is the keyword used to declare an integer variable in C#?
int
string
bool
if
What is the keyword used to declare a method that does not return a value in C#?
void
public
private
static
What is the keyword used to define a class in C#?
class
public
namespace
using
Which keyword is used to define a constant in C#?
const
static
var
public
Which keyword is used to define a private variable in C#?
private
public
protected
internal
What is the keyword used to declare a boolean variable in C#?
bool
int
string
void
What keyword is used to define a class in C#?
class
public
void
const
What keyword is used to declare a constant in C#?
const
static
public
private
Which keyword is used to define an interface in C#?
interface
class
public
namespace
What is the keyword used to declare a string variable in C#?
string
int
bool
void
Which keyword is used to define a public variable in C#?
public
private
protected
internal
