Question

In: Computer Science

11. Which of the following C# statements displays the following message “your Score is 28”: (note...

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;

Solutions

Expert Solution

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 :)


Related Solutions

Instructions from your teacher: Write a Python program that does the following: Displays a welcome message...
Instructions from your teacher: Write a Python program that does the following: Displays a welcome message Prompts a user to enter a number (an integer), and then converts that value from inches to feet. If the user entered a negative number, display an error message telling the user that it was not a "positive " number and prompt the user to enter a number again. Displays the converted value, then " feet" Continue converting the user's valid values until the...
Your task is to write a C program which performs encryption and decryption of a message...
Your task is to write a C program which performs encryption and decryption of a message using the substitution cipher algorithm. Write a C program which performs encryption and decryption using the substitution cipher algorithm. Your program must be fully automated (ie: it does not take any interactive user input) and either encrypt or decrypt depending on the files which exist in the program’s directory. If message.txt exists your program should read that file, encrypt the contents, and write the...
Which of the following statements is true? A)Repeating a credible message two or three times is...
Which of the following statements is true? A)Repeating a credible message two or three times is probably more influential than repeating it six or seven times. B)Repeating a credible message six or seven times is probably more influential than repeating it two or three times. C)Repeating a weak message six or seven times is probably more influential than repeating it two or three times. D)Repeating a weak message two or three times is probably more influential than repeating it six...
Which of the following statements is true? Note that more than one of the statements may...
Which of the following statements is true? Note that more than one of the statements may be true. a. Every relation that is in 3NF is in 2NF. b. A relation that is in 2NF, and that has a non-primary-key attribute that is functionally dependent on another non-primary-key attribute is not in 3NF. c. A relation that is in 2NF, and that has a non-primary-key attribute that is transitively functionally dependent on the primary key is not in 3NF. Which...
6-Write a module in pseudocode called magicSix(), which accepts two integers and displays a message “Magic...
6-Write a module in pseudocode called magicSix(), which accepts two integers and displays a message “Magic 6!” if either of the two integers is a 6 or if their sum or difference is a 6. Otherwise, the program will display “Not a magic 6.” Note, you will need to determine the larger number when calculating the difference, to get a positive difference. You cannot use any built-in Python functions to do this. Type your pseudocode into your answer document. 7-...
Question 301 pts Which of the following statements displays 123 as 00123? Group of answer choices...
Question 301 pts Which of the following statements displays 123 as 00123? Group of answer choices cout << setw(5) << setfill('0') << 123; cout << left << setw(5) << 123; cout << setw(5) << 123; None of the options displays the required output. Flag this Question Question 311 pts Which of the following statements displays 123.567 as 123.57? Group of answer choices cout << fixed << setprecision(2) << 123.567; None of the options displays the required output. cout << setprecision(2)...
11.       Which of the following statements is CORRECT?             a.         If you add enough...
11.       Which of the following statements is CORRECT?             a.         If you add enough randomly selected stocks to a portfolio, you can completely eliminate all of the market risk from the portfolio.             b.         If you were restricted to investing in publicly traded common stocks, yet you wanted to minimize the riskiness of your portfolio as measured by its beta, then according to the CAPM theory you should invest an equal amount of money in each stock...
A) Which of the following statements are true? Note that there may be more than one...
A) Which of the following statements are true? Note that there may be more than one correct answer; select all that are true. As the p-value increases, the evidence against the null hypothesis also increases. In hypothesis testing, if the p-value is sufficiently small, then the null hypothesis can be rejected in favour of the alternate hypothesis. If the null hypothesis is true, then the p-value will always be greater than 0.1. If the null hypothesis is false, then the...
Which of the following statements is incorrect concerning the disposition of an installment note? a. Installment...
Which of the following statements is incorrect concerning the disposition of an installment note? a. Installment treatment is not allowed for sale of securities traded on established markets. b. The installment method may not be used to report gains from sales of any property produced in the business of farming c. Failure to charge adequate interest may result in imputed interest at Federal rate. d. Disposition of property by related purchaser within 2 years after the sale generally accelerates recognition...
Which of the following statements is incorrect concerning the disposition of an installment note? a. Installment...
Which of the following statements is incorrect concerning the disposition of an installment note? a. Installment treatment is not allowed for sale of securities traded on established markets. b. The installment method may not be used to report gains from sales of any property produced in the business of farming c. Failure to charge adequate interest may result in imputed interest at Federal rate. d. Disposition of property by related purchaser within 2 years after the sale generally accelerates recognition...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT