ITN_171 Chapter 10 and ??? Quiz
is a preprocessor directive % main() #include <stdio.h> /* a.out gcc stdio.h { null
#include <stdio.h>
modulus operator % main() #include <stdio.h> /* a.out gcc stdio.h { null
%
The ____ scanf() format specifier is used to indicate that scanf() should interpret the input value as a pointer. %p %P %r %R
%P
The ____ format specifier is used to denote a signed decimal integer. %c %d %f %s
%d
The ____ format specifier is used to denote a floating point number in decimal notation. %c %d %u %f
%f
The source code of a C program file is stored in a file with the ____ extension. .C .c .gc .src
.c
denotes the beginning of a comment % main() #include <stdio.h> /* a.out gcc stdio.h { null
/*
(++)C's increment operator is ____. ++ + += =+
A C/C++ arithmetic operator that increases the value of a variable by a specified amount. ***Thel two operators increment (++) and decrement (--) operators. These are unary operators, which means that they work with one operand.
____ is a low-level language that provides maximum access to all the computer's devices, both internal and external. C C++ Assembly language Awk
Assembly language
___ is the language in which UNIX was developed and refined. C C++ Perl Awk
C
Dennis Ritchie and Brian Kernighan rewrote most of UNIX using C++ in the early 1960s. True False
False
The word "null" is used to indicate that a function returns no data.. True False
False
Unlike many other library input functions, readf() can be used to input values of a variety of data types. True False
False
____ are continuous streams of data. Arrays Strings Files Pointers
Files
____ have special meanings, so you cannot use them as names for variables or functions. Labels Tags Constants Keywords
Keywords
A variable's data type determines the upper and lower limits of its range of values. True False
True
C can be described as a language that uses relatively short, isolated functions to break down large, complex tasks into small and easily resolved subtasks. True False
True
C++ uses // to denote a comment line. True False
True
The C language was partly developed to resolve the more lengthy requirements of assembly language. True False
True
fgetch() reads a single character from the file and points to it. True False
True
executable file which, by default, contains a compiled C program % main() #include <stdio.h> /* a.out gcc stdio.h { null
a.out
The original UNIX operating system was written in ____. C C++ assembly language Awk
assembly language
Variables that are declared inside a function are called ____ variables. global automatic scalar independent
automatic
The ____ data type occupies a single byte. char int float double
char
____ is an example of how you can declare a string in C. string name; string name[20]; String name; char name[20];
char name[20];
C provides three looping mechanisms: the for loop, the while loop, and the ____ loop. do-while switch while-do repeat-until
do-while
When you use string constants in your C program, they must be enclosed in ____. curly braces angle braces single quotation marks double quotation marks
double quotation marks
The output of a linker is a(n) ____ file. executable binary object source code
executable
command for the C compiler in Linux operating systems % main() #include <stdio.h> /* a.out gcc stdio.h { null
gcc
Automatic variables are ____ to the function in which they are declared. global assigned local unique
local
every C program must contain this function % main() #include <stdio.h> /* a.out gcc stdio.h { null
main()
The ____ utility tracks what needs to be recompiled by using the time stamp field for each source file. compile gcc configure make
make
a single byte in which all bits are set to zero % main() #include <stdio.h> /* a.out gcc stdio.h { null
null
A compiler is a program that translates the source code into ____ code, which consists of binary instructions. compiled binary binary object
object
The ____ of a variable is the part of the program in which the variable is defined and, therefore, accessible. aim reach length scope
scope
When you represent character data in a program as a character constant, you enclose the character in ____. curly braces angle braces single quotation marks double quotation marks
single quotation marks
is a header file % main() #include <stdio.h> /* a.out gcc stdio.h { null
stdio.h
A(n) ____ is a group of characters, such as a name. array string scalar hash
string
The decrement operator is a(n) ____ operator. unary binary primary arbitrary
unary Thel two operators increment (++) and decrement (--) operators. These are unary operators, which means that they work with one operand.
You can use three modifiers with int data types: short, long, and ____. scalar unsigned array double
unsigned int = integer values
denotes the beginning of a block of code % main() #include <stdio.h> /* a.out gcc stdio.h { null
{