Verified Multiple Choice and Conceptual Actual 100% Correct Detailed Answers
Guaranteed Pass!!Current Update!!
Which of the following extensions is associated to the
.c
source code of a C program
In the following example, how is the variable "aux" passed
to the function? by value
printf("%c", aux);
Where can you access a local variable? only inside the function/scope where it was declared
Which of the following extensions is associated to the
.o
object code of a C program?
Which of the following header files contains the "printf"
stdio
instruction?
The sqrt function will return: the square root of the numbers
The while flow control instruction first executes the code,
false
and then checks for the condition.
Which of the following instructions tells the compiler to
put code from the header into our program before creat- include
ing the executable?
The following code will cause the compiler to give you a
warning. What is the reason behind it ?
void displayHelloWorld(){
return statement in a void functions
printf(" Hello world ! ");
return 0;
}
In the following example, how is the variable "aux" passed
to the function by reference
Scanf("%c", &aux);
The first index number in an array starts with
. ................... and the index number of an array of size 0, n-1
n will be ............
, WGU Data Structures and Algorithms Frequently Tested Exam Questions With
Verified Multiple Choice and Conceptual Actual 100% Correct Detailed Answers
Guaranteed Pass!!Current Update!!
Which is the correct syntax to print a message in C++
cout <<"Hello world!";
language?
In what library do you find the functions for input and
iostream
output in C++?
The keyword used to transfer control from a function back
Return
to the calling function is
A function with parameters passed by reference can be into a called function as well as receive information from
used to pass data a called function.
Can you compile a a .c file with a .cpp compiler? True
Which symbol represents the address operator? &
Default constructor has arguments. 0
A class function which is called automatically as soon as
constructor
the object is created is called as
An expression under the form A.B in C++ means B is member of Object A
While evaluating a postfix expression, when an operator
pop 2 operands, evaluate them and push the result on to
is encountered, what is the correct operation to be per-
the stack
formed?
Find the error (if any) in the following code snippet for
pop operation.
void pop() //removing an element from a stack pop operation is performed, but top moved in wrong
{ direction
printf("%s", stack[top++]);
}
The result evaluating the postfix expression 10 5 + 60 6 /
142
* 8 - is:
A stack is a data structure: linear
The expression / * A + B C D is written using the notation: Prefix