Search Header Logo

FIleHandling_NUnit

Authored by Koushik T

Other

Professional Development

Used 13+ times

FIleHandling_NUnit
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the namespace which consists of classes that are part of .NET Reflection API?

System.Text

System.Name

System.Reflection

None of the mentioned

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Consider you need to write a code to create a file named "filename.txt" and write some content to it. Which code snippet will you use to perform this task without any errors? Analyze the given choices and select the correct option.

string writeText = "Hello World!";

File.WriteAllText("filename.txt", writeText);

string readText = File.ReadAllText("filename.txt");

Console.WriteLine(readText);

string writeText : "Hello World!";

File.WriteAllText("filename.txt", writeText);

string readText : File.ReadAllText("filename.txt");

Console.WriteLine(readText);

string writeText = "Hello World!";

File.WriteText("filename.txt", writeText);

string readText = File.ReadText("filename.txt");

Console.Write(readText);

File.WriteAllText("filename.txt", writeText);

string readText = File.ReadAllText("filename.txt");

Console.WriteLine(readText);

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The FileName property retrieves the name of a file selected

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A layered application may have a front end to handle the presentation and a ______________ to execute the business logic.

Objects

Database

Front End

Back End

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In NUnit What does "Assert" do?

Initialize objects and set the value of the data that is passed to method being tested.

Invokes the methods being tested

Verifies that the methods being tested behave as expected

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In NUnit what does "Act" does?

Initialize objects and set the value of the data that is passed to method being tested.

Invokes the methods being tested.

Verifies that the methods being tested behave as expected.

All of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a type of software testing?

System Testing

Unit Testing

Liver Function Test

None of the above

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?