C programming multiple choice Questions i just need the answers no explanations
ID: 3576630 • Letter: C
Question
C programming multiple choice Questions i just need the answers no explanations and a speedy response if possible
In bitwise manipulations, a mask is typically ________.
a floating point value with specific bits set to 1
an integer value with specific bits set to 1
an integer value with specific bits set to 0
a floating point value with specific bits set to 0
Which of the following is not a flag that can be used in the printf format-control string?
+
/
#
Place ________ before any integer conversion specifier to indicate that a short integer is to be displayed.
s
S
h
H
The main difference between the functions atof, atoi, and atol is ________.
their return types
their arguments
their header files
their efficiency
Which statement is false?
In C, a string is essentially a pointer to its first character.
Arrays may contain pointers.
Each entry in an array of strings is actually a pointer to the first character of a string.
The size of an array of strings is the sum of the lengths of the strings.
Which of the following does not represent a capability of the printf function?
center justification of outputs
left justification of outputs
right justification of outputs
inserting literal characters at precise locations in a line of output
Arrays of structures ________.
are automatically passed call by reference
are automatically passed call by value
cannot be passed call by reference
cannot be passed call by value
Which is not a capability of the preprocessor?
inclusion of other files in the file being compiled
definition of functions
definition of symbolic constants
definition of macros
The most popular type of file organization is the ________ file.
sequential
database
hierarchy
collection
For a non-empty linked list, select the code that should appear in a function that adds a node to the end of the list. newPtr is a pointer to the new node to be added, and lastPtr is a pointer to the current last node. Each node contains a pointer nextPtr, a link to a node.
lastPtr->nextPtr = newPtr;
lastPtr = newPtr;
lastPtr = newPtr;
lastPtr->nextPtr = newPtr;
newPtr->nextPtr = lastPtr;
lastPtr = newPtr;
lastPtr = newPtr;
newPtr->nextPtr = lastPtr;
The ________, or address operator, is a unary operator that returns the address of its operand.
&
&&
*
**
a floating point value with specific bits set to 1
an integer value with specific bits set to 1
Explanation / Answer
In bitwise manipulations, a mask is typically an integer value set to 0 # is not a flag that can be used in the printf format-control string Place h before any integer conversion specifier to indicate that a short integer is to be displayed. The main difference between the functions atof, atoi, and atol is their return types inserting literal characters at precise locations in a line of output does not represent the capability of a printf function Arrays of structures are automatically passed call by reference definition of functions is not a capability of the preprocessor The most popular type of file organization is the Sequential file. lastPtr->nextPtr = newPtr;lastPtr = newPtr; The & ,or address operator, is a unary operator that returns the address of its operand.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.