CS Lab02

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

True

A C program begins with a section for preprocessor directives.

False - this is false because they are enclosed in single quotes not double.

A character constant is enclosed in double quotes.

True

A literal constant is an unnamed constant used to specify data.

False

A precision modifier may be used for the output of any numeric value.

True

All code found in the executable statement and local declaration sections of the main function is considered to be the body of the function.

True

Comments are added to a program to improve its level of documentation intended for other programmers.

True

Each variable in a C program must be declared and defined before it can be used.

True

Every program must have exactly one function named main.

True

It is much easier to find and work with variables if they are defined in separate lines.

True

The address list of a scanf function must specify where in the memory of the computer the input should be stored.

True

The backslash (\) is known as an escape landscape.

True

The command to create a defined constant is usually placed at the beginning of the program.

True

The conversion code selected for a placeholder (conversion specification) depends on the data type of the value to be displayed in a printf statement.

False

The declaration section contains executable instructions for the computer.

True

The file <stdio.h> and <math.h> are libraries that contain standard functions for our use.

True

The gcc compiler as found on guru will require that the main be an int (integer) function.

True

The gcc compiler as found on guru will require the source code file name to end with a .c extension.

True

The main function is the starting point for execution of the program.

True

The preprocessor is a part of the compiling process and prepares your code for the remainder of the process.

True

The return (0); statement will be the final statement in the main function.

True

The return statement in main will return control to the operating system and terminate the current program.

False

The size modifier is used to specify the minimum number of positions to reserve for the output of a value.

True

The width modifier for the output of a value must be large enough to account for the integral value of the number, the decimal point, and the number of digits in the decimal position.

True

Variable declarations will NEVER be permitted in the global section this semester.

True

Variables are named memory locations that have a type.

True

Variables in the C language are initialized automatically when they are defined.

True

While variables have data types, constants (both literal and defined) do not.

True

Within each function the local declarations and executable statements must NOT be permitted to overlap.


संबंधित स्टडी सेट्स

PLC’s Chapter 3. Number Systems and Codes

View Set

Pharm II Exam 1 practice test questions

View Set

Real Estate - Questions on Chapter 3

View Set

Lecture Test 4 - Questions from reviews and quizzes

View Set

Addiction and Substance-Related Disorders

View Set