Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Hello, I just have a few questions I need help with as I don't understand them? Please help and explain your answer. Thank you! 1.)

Hello, I just have a few questions I need help with as I don't understand them? Please help and explain your answer. Thank you!

1.) A multi-valued variable

a.) an array

b.) table

c.) struct

d.) book

-------------------------------------------------------------------

2.) Match the loops to the type:

LOOPS:

foor loop

do while loop:

while loop:

OPTIONS FOR TYPE:

hoop loop

infinite loop

pretest loop

post test loop

loop loop

----------------------------------------------------------------------------

3.) what is the value of x after this code would have run:

// Assume all necessary lines are above main and below main

main() {

int x = 8;

changeX(x);

changeX(x);

x++;

x = x + 1;

x--;

x--;

} // end of main

// Assume functions are below

a.) No way of knowing

b.) 6

c.) 4

d.) 8

----------------------------------------------------------------

4.) char x[30] = "Hello World";

The code above is an example of....

a.) invalid syntax

b.) a char array

c.) a text field

d.) a string

e.) a list

----------------------------------------------------------------

5.)

The code below is an example of what kind of loop?

int x = 0;

while(x < 10)

{

x++;

x--;

x++;

x--;

}

a.) a non-executing loop

b.) an infinite running loop

c.) a counter controlled loop

d.) a sentinel controlled loop

--------------------------------------------------------------------

6.)

1] main(){ 2] int myArray[5] = {10, 20, 30, 40, 50};

3] int i;

4] for(i = 0; i < 5; i++)

5] myArray[i] += i;

6] int x = myArray[4]; 7] printf("%i ", x); 8]}// end main

a.) Line 5 changes the value of the array

b.) line 2 has a syntax error

c.) line 8 is a C statement

d.) Line 3 sets the value of i to zero

Thank you !!!!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 12c SQL

Authors: Joan Casteel

3rd edition

1305251032, 978-1305251038

More Books

Students explore these related Databases questions

Question

Write short notes on departmentation.

Answered: 3 weeks ago

Question

What are the features of Management?

Answered: 3 weeks ago