Exercises : Answer the following Question

Submitted by tushar pramanick on Mon, 02/25/2013 - 11:19

Workshop
To help solidify your understanding of this hour's lesson, you are encouraged to answer the quiz questions provided in the Workshop before you move to the next lesson. The answers and hints to the questions are given in Appendix E, "Answers to Quiz Questions and Exercises."

 

Quiz

  • What are the lowest-level and highest-level languages mentioned in this book?
  • Can a computer understand a program written in C?What do you need to translate a program written in C into the machine-understandable code (that is, binary code)?
  • If needed, can a C program be reused in another C program?
  • Why do we need the ANSI standard for the C language?

 

 

 

Summary

In this Chapter you've learned the following:

  • C is a general-purpose programming language.
  • C is a high-level language that has the advantages of readability, maintainability, and portability.
  •  C is a very efficient language that allows you to get control of computer hardware and peripherals.
  •  C is a small language that you can learn easily in a relatively short time.
  •  Programs written in C can be reused.
  • Programs written in C must be compiled and translated into machine-readable code before the computer can execute them.
  • C provides many programming languages, such as Perl, C++, and Java, with basic concepts and useful features.
  • The ANSI standard for C is the standard supported by all C compiler vendors to guarantee the portability of C.
  • You can use any C compilers that support the ANSI standard and compile all C programs in this book.

Related Items

The if-else Statement

The if-else Statement

The if statement

The if statement

If life were a straight line, it would be very boring. The same thing is true for programming. It would be too dull if the statements in your program could only be executed in the order in which they appear.

Mathematical Functions in C

Mathematical Functions in C

Basically, the math functions provided by the C language can be classified into three groups:

    Trigonometric and hyperbolic functions, such as acos(), cos(), and cosh().

Changing Data Sizes

Changing Data Sizes

Enabling or Disabling the Sign Bit

Enabling or Disabling the Sign Bit

As you know, it's very easy to express a negative number in decimal. All you need to do is put a minus sign in front of the absolute value of the number. But how does the computer represent a negative number in the binary format?