In: Computer Science
11. Which of the following C# statements displays the following message “your Score is 28”:
(note that Score is an integer variable holding the value of 28)
int Score =28;
Group of answer choices
a. MessageBox.Show = “Your Score is “ + “Score”;
d. MessageBox.Show (“Your Score is” + Score);
b. MessageBox.Show = “Your Score is” + Score;
c. MessageBox.Show (“Your Score is” + “Score”);
12. The ____________ contains statements that can potentially throw an exception.
Group of answer choices
c. try block
a. break block
b. catch block
d. run block
13. which of the following statements is correct?
double userID=25.87;
Group of answer choices
d. int userNumber = userID;
a. int userNumber =(double) userID;
b. int userNumber = toString(userID);
c. int userNumber = 2* (int) userID;
Answer 11
*************
d. MessageBox.Show ("Your Score is" + Score);
Answer 12
*************
c. try block
Answer 13
*************
c. int userNumber = 2* (int) userID;
if you have any doubt then please ask me without any hesitation in the comment section below , if you like my answer then please thumbs up for the answer , before giving thumbs down please discuss the question it may possible that we may understand the question different way and i can edit and change the answers if you argue, thanks :)