Question

above with the only difference that x y, and a are 11) The same question as D) 0.5 float. What is the value of x afther the esecution of the same fragment of code? 8) 1 A) This ode wil 120) What in the output of the following code? struct strTypel float value char siggn bool flag strType myStruct myStrnact.value 0 myStruct.sign if (hmyStruct.flag) cout ex myStruct.value ex myStruct.sign D) The code will not A) nothing B) 00 G) 0 compile in 13) What is the output of the code in question 12 if the condition does not contain other words, everything is the same except the line containing if, that becomes: if (myStruct.flag) A) nothing B) 00 c) o D) The code will not compile 14) Which of the following lines correctly defines an array: arr, with max 10 elements, and the type the structure given in Question 12? A) struct arr[10]: G) strType arrll: B) strType 10 arrfl D) strType arr 10 15) Which one of the followving correrefest the 2l feld of the 2d element of the array above? A) arr[2].sign O) arr[2].flag struct arrl1] D) arr[1].sign 16) What is the instruction that has to be always used when processing an array for which the dimension (number of elements) is known? A) cin B) for C) if D) switch 17) Given the following code and the input value of 2.0, what output is generated?
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:
above with the only difference that x y, and a are 11) The same question as...
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 6 What is the output of following C code? struct numbers     {         int x...

    QUESTION 6 What is the output of following C code? struct numbers     {         int x = 2;         int y = 3;     } int main() {   struct numbers nums;         nums.x = 110;         nums.y = 100;         printf("%d\n%d", nums.x, nums.y);         return 0; } A. Compile-time Error B. 110 100 C. 2 3 D. Run-time Error 2 points    QUESTION 7 What is the output of following C code? typedef struct student {         char *stud; }s1; int main() {   s1 s;         s.stud...

  • Question 1 The code used to output messages to the screen begins with run # print...

    Question 1 The code used to output messages to the screen begins with run # print output Flag this Question Question 2 The code used to begin a comment in the Python program source code is # Hello * Comment Flag this Question Question 3 A variable name is like a(n) input typed on a keyboard address in computer memory where values can be stored output to a computer screen value assigned to an address in computer memory Flag this...

  • Question 11 Not yet answered Marked out of 1.00 p Flag question Two isotropic sources, both...

    Question 11 Not yet answered Marked out of 1.00 p Flag question Two isotropic sources, both fed with the same amplitude and a 0 degrees phase difference, what is the minimum spacing between the elements required in order to form at least one null in the array factor: Select one: a. ob.312 O C.NA d. N2 Next page on Question 8 Not yet answered Marked out of 1. 00 p Flag question Three 5-element arrays of isotropic sources and uniform...

  • 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,...

  • use coral language please question 1 Function ConvertFeetToInches(integer feetToConvert) returns integer resultInches resultInches = feetToConvert *...

    use coral language please question 1 Function ConvertFeetToInches(integer feetToConvert) returns integer resultInches resultInches = feetToConvert * 12 Function Main() returns nothing integer resultInches integer feetToConvert feetToConvert = Get next input // Your solution goes here Put feetToConvert to output Put " feet are " to output Put resultInches to output Put " inches." to output question 2 Function GetRecArea(float recHeight, float recWidth) returns float recArea // Calculate recArea: recArea = 0 Function Main() returns nothing float userHeight float userWidth userHeight...

  • Question 11 pts Fill in the blank. Two functions are defined main.c and MyAge.c   // FILE...

    Question 11 pts Fill in the blank. Two functions are defined main.c and MyAge.c   // FILE main.c main ( ) { _______ int age ; printf ( " the value of age is %d \n", age ) ; } // FILE MyAge.c int age = 10; int MyAge ( ) { } Group of answer choices static external internal extern Flag this Question Question 21 pts Fill in the blank. Two functions are defined main.c and MyAge.c   The below program...

  • QUESTION 9 What will be the output of following code snippet? int a[3] = {1, 2,...

    QUESTION 9 What will be the output of following code snippet? int a[3] = {1, 2, 3};         int *p = a;         int **r = &p;         printf("%p %p", *r, a); A. Different memory addresses printed B. 1 2 C. Same memory address printed twice D. 1 1 2 points    QUESTION 10 What will be the output of following code snippet? int arr[4] = {1, 2, 3, 4};         int *p;         p = arr + 3;         *p = 5;         printf("%d\n", arr[3]); A....

  • I ONLY NEED PART 4 I HAVE DONE 1,2,3 Arrays This assignment is designed in small...

    I ONLY NEED PART 4 I HAVE DONE 1,2,3 Arrays This assignment is designed in small progressive parts, with the intention of developing the skill of working with arrays. Do each part separately. Include in your submission the code and output for Part I, then the code and output for Part 2, etc. into a Word document. Specification: Part 1. Write a main function that declares an array of 10 int’s. Assign each element in the array a value between...

  • 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...

  • Using C programming

    Using C, create a data file with the first number being an integer. The value of that integer will be the number of further integers which follow it in the file. Write the code to read the first number into the integer variable how_many.Please help me with the file :((This comes from this question:Write the code to dynamically allocate ONE integer variable using calloc (contiguous allocation) or malloc (memory allocation) and have it pointed to by a pointer (of type int...

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