Question

QUESTION 1 What statement would you use to print the phrase “Hello, world” and then start...

QUESTION 1 What statement would you use to print the phrase “Hello, world” and then start a new line? Path: pWords:0 10 points Save Answer QUESTION 2 What statement would you use to assign the value 32 to the variable cheeses? Path: pWords:0 10 points Save Answer QUESTION 3 What statement would you use to read a value from keyboard input into the variable cheeses? Path: pWords:0 10 points Save Answer QUESTION 4 What statement would you use to print “We have X varieties of cheese,” where the current value of the cheeses variable replaces X? Path: pWords:0 10 points Save Answer QUESTION 5 Write a C program that displays your name and address (or if you value your privacy, a fictitious name and address). Path: pWords:0 10 points Save Answer QUESTION 6 Declare variables matching the following descriptions: A short integer with the value 80 An unsigned int integer with the value 42,110 An integer with the value 3,000,000,000 Path: pWords:0 10 points Save Answer QUESTION 7 Evaluate the following expressions as C would: 8 * 9 + 2 6 * 3 / 4 3 / 4 * 6 6.0 * 3 / 4 15 % 4 Path: pWords:0 10 points Save Answer QUESTION 8 What is the variable type for each of the following declarations? auto cars = 15; auto iou = 150.37f; auto level = 'B'; auto crat = U'/U00002155'; auto fract = 8.25f/2.5; Path: pWords:0 10 points Save Answer QUESTION 9 Construct logical expressions to represent the following conditions: weight is greater than or equal to 115 but less than 125. ch is q or Q. x is even but is not 26. x is even but is not a multiple of 26. donation is in the range 1,000–2,000 or guest is 1. Path: pWords:0 10 points Save Answer QUESTION 10 Convert the following to a do/while loop. It should produce exactly the same output. #include int main(){ int i=0, k=0; float j=0; int counter = 10; printf("Begin counting"); for (i=0; i < counter; i++) { printf(i); } return 0; }

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
QUESTION 1 What statement would you use to print the phrase “Hello, world” and then start...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • QUESTION 1 What statement would you use to print the phrase “Hello, world” and then start...

    QUESTION 1 What statement would you use to print the phrase “Hello, world” and then start a new line? QUESTION 2 What statement would you use to assign the value 32 to the variable cheeses? QUESTION 3 What statement would you use to read a value from keyboard input into the variable cheeses? QUESTION 4 What statement would you use to print “We have X varieties of cheese,” where the current value of the cheeses variable replaces X? QUESTION 5...

  • QUESTION 1 In order to print the members of structures in the array, what will be...

    QUESTION 1 In order to print the members of structures in the array, what will be the contents of blanks in the printf statement of the code snippet given below? #include <stdio.h> struct virus {    char signature[25];       char status[20]; } v[2] = {                               "Yankee Doodle", "Deadly",                               "Dark Avenger", "Killer"                   } ; void main( ) {       for (int i = 0; i < 2; i++)                   printf( "\n%s %s", _______________ , _____________ ); } A. signature, status B. v.signature,...

  • 3. A tor loop is useful when you know in advance the number of iterations to...

    3. A tor loop is useful when you know in advance the number of iterations to be executed. The tor loop consists of three parts each of which is separated by a semicolon (:). The first part is initialization of the variable for iteration, the second part is a test of the iteration variable and if this test fails, the loop is finished. The third part is a counter for the iteration variable. A block can be followed after the...

  • QUESTION 1 Using the following declarations and a member of the Array class, int [ ]...

    QUESTION 1 Using the following declarations and a member of the Array class, int [ ] bArray = new int [10]; int location; Using a method in the Array class, write a statement that would change the order of the elements in the bArray array. The contents of the first cell should hold what was in the last cell. The second cell should hold what was in the next to last cell. __________________________ HINT: You must write the full statement...

  • QUESTION 1 Which statement results in the value false? The value of count is 0; limit...

    QUESTION 1 Which statement results in the value false? The value of count is 0; limit is 10. (count != 0)&&(limit < 20) (count == 0)&&(limit < 20) (count != 0)||(limit < 20) (count == 0)&&(limit < 20) 10 points    QUESTION 2 If this code fragment were executed in an otherwise correct and complete program, what would the output be? int a = 3, b = 2, c = 5 if (a > b) a = 4; if (...

  • // READ BEFORE YOU START: // You are given a partially completed program that creates a...

    // READ BEFORE YOU START: // You are given a partially completed program that creates a list of students for a school. // Each student has the corresponding information: name, gender, class, standard, and roll_number. // To begin, you should trace through the given code and understand how it works. // Please read the instructions above each required function and follow the directions carefully. // If you modify any of the given code, the return types, or the parameters, you...

  • I need help on this Systems review please! it's due by midnight monday. Question 1 Not...

    I need help on this Systems review please! it's due by midnight monday. Question 1 Not yet answered Points out of 1.00 Flag question Question text Using these declarations: int * numberPointers[3]; int * pointer; int number; Which of the following statements would generate a warning or error? Select one: a. number = pointer; b. *pointer = number; c. pointer = numberPointers; d. numberPointers[2] = &number; e. a., b., and d. f. a. and c. Question 2 Not yet answered...

  • QUESTION 1 What will be displayed as a result of executing the following code? int   x...

    QUESTION 1 What will be displayed as a result of executing the following code? int   x = 5, y = 20; x += 32; y /= 4; cout <<"x = " << x <<"y = " << y; A. x = 32, y = 4 B. x = 9, y = 52 C. x = 37, y = 5 D. x = 160, y = 80 8 points    QUESTION 2 What will be the displayed when the following code...

  • B. Which statement would be used to define a to element integer array c? a. Array...

    B. Which statement would be used to define a to element integer array c? a. Array c = int[10]; b. C = int[10]; c. int Array c[10]; d. int c[10]; 17. Declare an Integer pointer variable named int_ptr. 18. Use the pointer created in question 17 and assign it the memory location of a variable named int_var. 19. Suppose you have an executable program named count that counts the characters in its input. Devise a command-line command using the count...

  • // Write the compiler used: Visual studio // READ BEFORE YOU START: // You are given...

    // Write the compiler used: Visual studio // READ BEFORE YOU START: // You are given a partially completed program that creates a list of patients, like patients' record. // Each record has this information: patient's name, doctor's name, critical level of patient, room number. // The struct 'patientRecord' holds information of one patient. Critical level is enum type. // An array of structs called 'list' is made to hold the list of patients. // To begin, you should trace...

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