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

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

  • Question 1) Suppose a program has the following code: const int X = 2, Y =...

    Question 1) Suppose a program has the following code: const int X = 2, Y = 3; int sum; int values[X][Y] = {{1, 2, 3},                                  {4, 5, 6}}; for(int i=0; i<X; i++) {      sum=0;      for(int j=0; j<Y; j++)         sum+=values[i][j];    cout<<sum<<endl; } What is this program getting the sum of? Group of answer choices D-) The columns of the 2D array C-) The rows of the 2D array A-) All of the elements of the 2D...

  • Write the code to dynamically allocate ONE integer variable using calloc (contiguous allocation) or malloc (memory...

    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 * ) named ptr_1. Use ptr_1 to assign the number 7 to that dynamically allocated integer, and in another line use printf to output the contents of that dynamically allocated integer variable. Write the code to dynamically allocate an integer array of length 5 using calloc or malloc and have it pointed...

  • c++ please read all question edit the program to test different random sizes of the array and give me the time in a file will be like random size of the array and next to it the time it took for each...

    c++ please read all question edit the program to test different random sizes of the array and give me the time in a file will be like random size of the array and next to it the time it took for each size Im trying to do time analysis for Quick sort but i keep getting time = 0 also i want edit the program to test different random sizes of the array and give me the time in a...

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