Question

Which of the following will put 10 letter a’s in a text box? (aaaaaaaaaa will appear...

Which of the following will put 10 letter a’s in a text box? (aaaaaaaaaa will appear in the text box) Select one: a. for (int x=1; x<=10; x++) { txtA.text = a; } b.for (int x=1; x<=10; x++) { txtA.text = txtA.text + “a”; } c. for (int x=1; x<=10; x++) { txtA.text = “a”; } d. for (int x=1; x<=10; x++) { txtA.text = txtA.text + “aaa”

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer is option c

Explanation: the loop must run for 10 times to print 10 a's when x is being incremented by 1.text must be added with a every time loop is running. Option d won't work as 3 a's are appending to the text box for every iteration

If you have any doubts please do COMMENT. ..

If you understand the answer please do LIKE. ..

Add a comment
Know the answer?
Add Answer to:
Which of the following will put 10 letter a’s in a text box? (aaaaaaaaaa will appear...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Part B Questions 1) Put the letter of the correct answer for each of the following questions in the box to the right 10...

    Part B Questions 1) Put the letter of the correct answer for each of the following questions in the box to the right 10 points a. For a mixture of pure hexane and pure dimethylformamide, the dimethylformamide layer will be found as: (A) the top layer (B) the bottom layer (C) neither; the two (D) cannot determine solvents are miscible b. To extract aniline (CeH5NH2) from a solution of chloroform, one would use: (D) either B or C would work...

  • Question 1 Not yet answered Marked out of 1.00 Flag question Question text Which of the...

    Question 1 Not yet answered Marked out of 1.00 Flag question Question text Which of the following keywords is useful for skipping to the next iteration of a loop? Select one: a. do b. break c. switch d. continue e. while Clear my choice Question 2 Not yet answered Marked out of 1.00 Flag question Question text Consider the following line of Java code. System.out.println("Hello, World!"); "out" is which of the following? Select one: a. a statement b. a class...

  • 26. Select the correct text in the passage. Jamie wrote the following code to find a...

    26. Select the correct text in the passage. Jamie wrote the following code to find a maximum number of a pair of numbers, but is receiving an error. In which line does his error appear? int a, b, val; final int NUMVALS 10; for (int 1-1; 1 <-NUMVALS; İ + 1) { a (int) (Math.randomO 10 1); b (int) (Math.randomO 10 1); System.out.println(a); System.out.println(b); if (a > b) b-a Select... Select. int a, b, val; final int NUMVALS = 10;...

  • USING PYTHON PLEASE 5. Consider a text file in which the only characters that appear are...

    USING PYTHON PLEASE 5. Consider a text file in which the only characters that appear are the letters "A", "B", "C", and "D" with the distribution 17%, 35%, 26%, and 22%, respectively. (To clarify, this means that 17% of the characters in the file are the letter "A", 35% are the letter "B", etc.) Using the technique demonstrated in class, construct the Huffman tree for this file (and don't forget to label the edges with 0 or 1 such that...

  • ion 12 et answered entered in text box grade Textbox Declare variables into which you will...

    ion 12 et answered entered in text box grade Textbox Declare variables into which you will retrieve the ed out of 8.00 lag question gradeLabel in the format of name, colon and letter grade, such as: Bob Johnson: A 3-1 (8 Points) Suppose student's name is entered in text box name Textbox and grade is values entered Use If. block to assign a letter grade to the variable strGrade based on the typical 90, 80,70, etc cur-off criteria. Display the...

  • Given the following source programs, write down the letter that correspond to the right answer #include...

    Given the following source programs, write down the letter that correspond to the right answer #include <stdio.h> #ifndef MEMORY #include "myhead.h" #include <stdlib.h> myhead.h #include <string.h> int main() { #endif char *text= MEM(SIZE, char); #define SIZE 10 COPY_TEXT (text, MSG); #define MSG "CS262" newtext (text); #define MEM(size, type) SHOW (text); (type *) malloc(size * sizeof(type)) free (text); #define COPY_TEXT (dest, source) return 0; strcpy (dest, source) } text.c #define SHOW (x) printf("Output: %s\n", x) void newtext (char *text) { int...

  • Question 1 Not yet answered Marked out of 1.00 Not flaggedFlag question Question text The statements...

    Question 1 Not yet answered Marked out of 1.00 Not flaggedFlag question Question text The statements inside of a Python loop are known as the ____ of the loop. Select one: a. body b. expression c. counter d. block Question 2 Not yet answered Marked out of 1.00 Not flaggedFlag question Question text The Python 3 program below prints the number 3. s = "Python3" print(s[len(s)]) Select one: True False Question 3 Not yet answered Marked out of 1.00 Not...

  • Which of the following accounts would not appear in a closing entry? Select one: A. Net...

    Which of the following accounts would not appear in a closing entry? Select one: A. Net income B. Depreciation expense C. Cost of goods sold D. Inventory E. Both A and D Which of the following accounts would not appear in a closing entry? Select one: A. Net income B. Depreciation expense C. Cost of goods sold D. Inventory E. Both A and D

  • Question text Given that a company follows U.S. GAAP, which of the following items must be...

    Question text Given that a company follows U.S. GAAP, which of the following items must be added to CFO to compute FCFF? Select one: a. After-tax interest expense. b. Dividends paid. c. Dividends received. Question 11 Question text Consider the following statements: Statement 1: Non-cash charges that appear after EBIT on the income statement must be added back to EBIT when computing FCFF. Statement 2: The book value of non-operating assets must be added to the value obtained from the...

  • Part B - Questions 1) Put the letter of the correct answer for each of the...

    Part B - Questions 1) Put the letter of the correct answer for each of the following questions in the box to the right. 10 points a. For a mixture of pure hexane and pure dimethylformamide, the dimethylformamide layer will be found as: (A) the top layer (B) the bottom layer (C) neither; the two (D) cannot determine solvents are miscible b. To extract aniline (C&H5NH2) from a solution of chloroform, one would use: (A) aqueous HCI (B) aqueous NaOH...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT