Question

True or False: Algorithms should be specified in pseudocode before they are implemented in C


 17.True or False: Algorithms should be specified in pseudocode before they are implemented in C. 

 18. True or False: In C, false is defined as any result that is zero.

 19. True or False: An advantage to defining functions in C is that they may be reused in other projects.

 20. True or False: Suppose a function main calls a function f. As a parameter to f, main passes a pointer p to a struct. Further suppose that f's body modifies p by pointing it to a different struct. When f returns, the pointer passed by main will also be pointing to a different struct.

 21. True or False: An identifier/variable name, in C, may start with a digit.

 22. True or False: Preprocessor directives are handled during compilation.

 23. True or False: The control expression of a switch-case statement in C can be of type enum. 24. True or False: Assume that a character pointer cptr points to a character array carrax of size 10. The following expressions are equivalent: *carray[2] and *(cptr + 2).

 25. True or False: In C, you can assign an array of character pointers to point to specific addresses, i.e.

 char *array[10], var;

 array[5] = &var;

 26. True or False: We use the debugger to find logic errors.

 27.True or False: In C, arrays and pointers are essentially interchangeable-you can use always use pointer notation for arrays and always use array notation for pointers.

 28. True or False: In C, when an array is passed to a function, only the address of the zeroth element is passed to the function.

 29. True or False: An actual argument is the argument that we pass into a function when it is called, i.e. my function ('a'), where 'a' is the actual argument.

 30. True or False: The following is an example of a sentinel-controlled loop:

 while (my array[i] - '\0')

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

17:-True

Reason:- Algorithm is just a graphical representation

18:-False

Reason:- False is a Boolean data type

- Zero is a Int data type.

19:- True

Reason:- User defined functions may be used again and again. Functions are used to perform the same operation infinite number of times.

20:- True

Reason:- As the pointer will point to the element based on function f.

21:- False

Reason:- When we declare the variable we cannot be started with a digit it is only started with a alphabet.

It is a inbuilt rule made by the developers

22:- True

Reason:- Pre-proccessor directive run when the source code compiled.

23:- False

Reason:- Enum can only be declared using namespace.

24:-False

Reason:- Pointer and Array are differnent concepts

25:-True

Reason:- Pointer and Array are differnent concepts

26:- False

Reason:- debbuggers are used to find syntatical errors

27:- False

Reason:- pointer and array are differnent concepts

28:- False

Reason:- The Array is passed to the function

29:- False

Reason:- Actual argument are the argument that are passed in main function.

30:- True

Reason:- Because we does not know the ending point of the loop.

Add a comment
Know the answer?
Add Answer to:
True or False: Algorithms should be specified in pseudocode before they are implemented in C
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
  • State whether each of the following is true or false. If false, explain why: a.Referring to...

    State whether each of the following is true or false. If false, explain why: a.Referring to an array element outside the array bounds is a syntax error. b.When initializing an array at its declaration, it is a syntax error to provide less initializers than the number of array elements. c.A character array can be initialized using a string literal. d.An individual array element that is passed to a function and modified in that function will contain the modified value when...

  • Need help with these, especially number 4. C++ program L. WIite the function Write a function...

    Need help with these, especially number 4. C++ program L. WIite the function Write a function mpgcalculator that accepts pointers to three arrays. The firstis an array of miles, the second is an array of gallons, the third will hold mile-per-gallon. It has no return value. 4. a. b. c. d. write the prototype call this function with these three arrays: miles, gallons, mpg. write the function use only array notation 5. Do #4, using only array with offset notation....

  • C Programming Language 2(a) Define a struct with 1 int array named i, 1 float array...

    C Programming Language 2(a) Define a struct with 1 int array named i, 1 float array named f, and one double array named d, each of size M. (b)Declare array x with N of those structs. (c)Write a void function to traverse array x (using a pointer) assigning to each element in each array d (in each struct in array x) the sum of the corresponding elements in arrays i and f (in the same struct). Use 3 pointers (of...

  • 31. True or False: The condition in the following if statement is a syntax error:

     31. True or False: The condition in the following if statement is a syntax error: int number=50;…… if (number)…… 32. True or False: The standard C functlon strlen) will return 4 when invoked upon the varlable name, declared below: char namel = (e', 'p', 't', 's', '\0', '1', '2', '1', '\0']; 33. True or False: A structure is a collection of related variables under one name. 34. True or False: In C, output parameters allow for a function to return more than one value Indirectly. 35. True or...

  • Hi!, having trouble with this one, In this class we use visual studio, C++ language --------------------------------------------------------------...

    Hi!, having trouble with this one, In this class we use visual studio, C++ language -------------------------------------------------------------- Exercise #10 Pointers - Complete the missing 5 portions of part1 (2 additions) and part2 (3 additions) Part 1 - Using Pointers int largeArray (const int [], int); int largePointer(const int * , int); void fillArray (int * , int howMany); void printArray (const char *,ostream &, const int *, int howMany); const int low = 50; const int high = 90; void main()...

  • Matrix Multiplication with Threads - C/C++ **Please read entire question before answering** In this assignment you...

    Matrix Multiplication with Threads - C/C++ **Please read entire question before answering** In this assignment you will use the Pthreads library to write a program that multiplies two square arrays and compare the difference between the imperative and parallel implementations of this algorithm. Use the matrix mulltiplication algorithm. Write a program that contains three functions: (1) A function that has an integer as a parameter and returns a pointer to square array of integers (i.e. both dimensions should be equal)....

  • IN C++ ADD COMMENTS AS MUCH AS POSSIBLE Exercise 1: Duplicate the Arrays Suppose you are...

    IN C++ ADD COMMENTS AS MUCH AS POSSIBLE Exercise 1: Duplicate the Arrays Suppose you are developing a program that works with arrays of integers, and you find that you frequently need to duplicate the arrays. Rather than rewriting the array-duplicating code each time you need it, you decide to write a function that accepts an array and its size as arguments. Creates a new array that is a copy of the argument array, and returns a pointer to the...

  • State true or false: (6 x 2 = 12 pts) Using -- with a reverse iterator...

    State true or false: (6 x 2 = 12 pts) Using -- with a reverse iterator moves it from the back toward the front of a list b) The body of a do-while loop is always executed at least once. c) If p points to the array element a[j], then p + i points to a[i+j]. d) Any number of pointer variables may point to the same object. In terms of both execution speed and memory usage usually iterative solutions...

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

  • (C++ Algorithms) Given the following function declarations, write the definitions according to the specifications of each....

    (C++ Algorithms) Given the following function declarations, write the definitions according to the specifications of each. All of the algorithms you are being asked to implement operate on pointer ranges. A *pointer range* is a pair of pointers referring to a sequence of objects. For example: int a[] = {1, 2, 3, 4, 5}; int* first = a + 1; int* limit = first + 3; Here, first and limit are pointers to objects in or past the end of...

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