answersLogoWhite

0

Yes so long as the case of strings are static.

For example

switch(word)

{

case "Apple":

break;

case "Orange":

break;

}

is acceptable

string word1 = "Apple";

string word2 = "Orange";

switch(word)

{

case word1:

break;

case word2:

break;

}

is not acceptable.

User Avatar

Wiki User

17y ago

What else can I help you with?

Related Questions

Test cases for testing a pocket calculator?

Write 3 test cases for testing a pocket calculator.


How is Alexander disease diagnosed?

Though genetic testing has largely replaced these histologic studies, a brain biopsy or autopsy may be indicated in select cases if the diagnosis cannot be made through other means.


What is the difference between integration testing and system testing In terms of system testing when the test cases for blackbox testing can be designed and when the test cases for whitebox testing?

Integration testing - Its like increment Testing, where we test individual components and their effect on other components as and when they are added. System Testing - System is tested as a whole. You may say that it is integration testing when last component is added. White box test cases are mainly designed and executed by developers or a separate white box test team. This can happen in detail design/coding phase generally during. Blackbox test cases are written once requirements are freezed by test team in parallel to design phase as per V model.


Why testing only shows the presence of errors not their absence?

Testing can demonstrate that a system contains errors when failures occur, but it cannot prove that a system is free of errors. This is because testing is inherently limited by factors such as the finite number of test cases and scenarios that can be executed. Even exhaustive testing can only provide confidence in the absence of errors within the tested scope, but cannot account for untested conditions or potential edge cases. Therefore, while testing identifies issues, it cannot guarantee the complete absence of errors.


Does medical testing do more harm than good?

yes, in many cases of animal testing animals die and or get very sick during the testing process.


How can we ensure that the PBE functional testing process is effectively implemented within our software development lifecycle?

To ensure effective implementation of PBE functional testing in our software development lifecycle, we should establish clear testing objectives, define test cases based on user behavior, automate testing processes where possible, regularly review and update test cases, involve stakeholders in testing, and continuously monitor and improve the testing process.


What does a select case statement do in VB.NET?

it compares one variable with a lot of 'cases' and if it matches a certain case it does something. (you can use multiple if statements instead, but it is more simple this way) Here is a small example: Dim i As Integer = Console.ReadLine() Select Case i Case Is < 100 Console.WriteLine("The number is less than 100.") Case 100 Console.WriteLine("The number is exactly 100.") Case Else Console.WriteLine("The number is greater than 100.") End Select Console.ReadLine()


What is manual testing in software?

In Manual Testing , Testers physically execute test cases without utilizing any robotization instruments. Manual testing is the most primitive of every testing sort and helps discover bugs in the product framework.


Prerequisites of Regression testing and system testing?

system testing is a kind of retesting where we can test whole system after integration. while regression testing is a process where we do the rerunning the test cases and check whether that re run doesnot affects the real environment.


Software Test Automation?

Automated software testing is a crucial technique for software testing in which testers leverage automated software tools for executing test cases


What instrument is the most numerous in a symphony orchestra?

Violins. The violin is the most numerous instrument. There are (in general) two sections of violins, and both sections play the same instrument. In most cases the total number of violinists is 16 to 20.


What is test scenerios?

Test scenario is laying out plans for testing the product, environmental condition, number of team members required, making test plans, making test cases and what all features are to be tested for the product.