Question

20. If you do not initialize a string variable, it begins with a special value known...

20. If you do not initialize a string variable, it begins with a special value known as -----------------.

Group of answer choices

NA

blank

null

string

21. Which one of the following statements assigns the value contained in the Text property of a TextBox control named ageTextBox to the Text Property of a Label control named ageLabel?

Group of answer choices

b. ageTextBox.Text = ageLabel.Text;

d. ageTextBox = ageLabel;

c. ageLabel.Text = ageTextBox.Text;

a. ageLabel = ageTextBox;

22. Assuming a string variable named city has already been declared, which one of the following statements assigns the string value "Vienna" to the variable?

Group of answer choices

a. "Vienna" = city;

b. city + "Vienna";

c. city("Vienna");

d. city = "Vienna";

23. Assuming a string variable named movieTitle has already been declared, which one of the following statements combines the strings "The " and "Hobbit" and then assigns the resulting string to the variable?

Group of answer choices

c. movieTitle = "The " & "Hobbit";

a. movieTitle("The ", "Hobbit");

d. movieTitle = "The " + "Hobbit";

b. "The " + "Hobbit" = moveTitle;

Homework Answers

Answer #1

ANSWER 20

answer is null

ANSWER 21

The correct answer is

c. ageLabel.Text = ageTextBox.Text;

ANSWER 22

The correct answer is

d. city = "Vienna";

ANSWER 23

The correct answer is

d. movieTitle = "The " + "Hobbit";

Dear student we are directed to solve one question in case more than one questions are asked by the students you have asked 2 different questions which is wrong .we are directed to solve only the sub part of the question subject to maximum of 4 which is not the case and directed not to solve the multiple question.

Anyway, i have solved all of your questions.

don't forget to give rating.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
4. The _____ case is performed by the switch statement if a match is not found...
4. The _____ case is performed by the switch statement if a match is not found default first second otherwise Answer: 5. When three relational expressions are joined by OR (||) operators, there must be at least _____ of the relational expressions that evaluate to true for the logical expression to evaluate to true. one two three none of the relational expressions evaluate to true Answer: 6. Which of the following items is an acceptable first character in a Java...
1.A fair die is rolled once, and the number score is noted. Let the random variable...
1.A fair die is rolled once, and the number score is noted. Let the random variable X be twice this score. Define the variable Y to be zero if an odd number appears and X otherwise. By finding the probability mass function in each case, find the expectation of the following random variables: Please answer to 3 decimal places. Part a)X Part b)Y Part c)X+Y Part d)XY ——- 2.To examine the effectiveness of its four annual advertising promotions, a mail...
You have been hired to test whether the demand for a product that your client produces...
You have been hired to test whether the demand for a product that your client produces varies between two demographic markets – the Urban and Rural markets. As such, in each market, you run a short survey that gauges customers demand for your product and assigns them to one of three categories – (i) High (ii) Medium or (iii) Low. You survey 70 people in the “Urban” market and find that their demand falls into the following “buckets” High                32...
Complete a Java program named ARMgr that maintains customer accounts receivable in a database. The code...
Complete a Java program named ARMgr that maintains customer accounts receivable in a database. The code to initialize the CustomerAccountsDB database table and add a set of customer accounts is provided. Finish the code in these 3 methods in CustomerAccountDB.java to update or query the database: -purchase(double amountOfPurchase) -payment(double amountOfPayment) -getCustomerName() Hint: For getCustomerName(), look at the getAccountBalance() method to see an example of querying data from the database. For the purchase() and payment() methods, look at the addCustomerAccount() method...
You design an experiment to test the effects of pesticides on size of radishes. You expect...
You design an experiment to test the effects of pesticides on size of radishes. You expect pesticides to have negative impacts on growth. You have been provided with 200 radish seeds and 40 growth pots. You have two treatment groups (P = pesticides, NP = no pesticides). [10 pts] a) Using the A to B relationship we have used since the start of class, what is your prediction? [2 pts] b) What type of dependent variable do you have? (circle...
[1] The basic problem that gives rise to the study of economics is the need to:...
[1] The basic problem that gives rise to the study of economics is the need to: A) control the effects of actions by foreign governments. B) be sure all the goods and services produced in an economy get sold. C) use scarce resources to satisfy people's unlimited material wants and needs. D) control people's tastes and wishes so that the available resources can produce all the goods and services they want. [2] Economics is concerned with: A) earning as much...
ATHI AND DARRIN LOVETTE CASE: Kathi and Darrin Lovette Background Kathi and Darrin Lovette, both age...
ATHI AND DARRIN LOVETTE CASE: Kathi and Darrin Lovette Background Kathi and Darrin Lovette, both age 63, have been married for 40 years, are both in good health, and they are citizens and residents of Louisiana. They expect to work until age 66 to 70. Kathi and Darrin live in a community property state. They have the following children and grandchildren: Children Age Grandchildren Elizabeth Age 40 4 children (ages 15, 14, 13 & 12) James Age 35 3 children...
QUESTION 1 What does the following code segment output? int red, blue; red = 7; blue...
QUESTION 1 What does the following code segment output? int red, blue; red = 7; blue = red + 2 * 5 red++; blue = blue + red; cout << blue; 4 points    QUESTION 2 Is the following statement true or false? The Boolean expression in the following if statement will be true for all values of x in the range from 10 to 20 (including the endpoints) and false for all other values: int x; if (x >=...
IN JAVA Speed Control Problem: The files SpeedControl.java and SpeedControlPanel.java contain a program (and its associated...
IN JAVA Speed Control Problem: The files SpeedControl.java and SpeedControlPanel.java contain a program (and its associated panel) with a circle that moves on the panel and rebounds from the edges. (NOTE: the program is derived from Listing 8.15 and 8.16 in the text. That program uses an image rather than a circle. You may have used it in an earlier lab on animation.) The Circle class is in the file Circle.java. Save the program to your directory and run it...
Consider the C program (twoupdate) to demonstrate race condition. In this assignment, we will implement Peterson's...
Consider the C program (twoupdate) to demonstrate race condition. In this assignment, we will implement Peterson's algorithm to ensure mutual exclusion in the respective critical sections of the two processes, and thereby eliminate the race condition. In order to implement Peterson's Algorithm, the two processes should share a boolean array calledflagwith two components and an integer variable called turn, all initialized suitably. We will create and access these shared variables using UNIX system calls relating to shared memory – shmget,...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT