of the following questions le t e Tre or F fox Fals fiowr each or r 0) Asume ave
ID: 3695334 • Letter: O
Question
of the following questions le t e Tre or F fox Fals fiowr each or r 0) Asume avey and array2 are the he cot axraya oF for False, for each of the follow 1 and array2 are the names of ar of array? to aray1, you would use e f e the following array1, you would use the followiis rays, and they ha hey wwy use the folley The "" operator on bool variables in Ct+ perfo All elements of an array are of the same data type o sigs the tents variables in C++ perfors contaon to check if the T F (4) When we insert a data item into the array is F(3)Imeyer variables are initiali a data item into an array, we always need to check it the c are initialized to zero by default. (40 points, 2 eachj Multiple Choice ) Which one of the tol es high level deseriptions into machine code? Linker e Compiler d Editor Debugger ) Which of the following statements is valid with respect to the usage of semicolon in C++2 A semicolon is used to denote the end of a function. b A semicolon is used to denote the end of a statement. c A smicoln is used to terminate the #include statement. d You cannot use a semicolon to terminate the "using namespace" statement. e You cannot put a semicolon within double quotation marks. 3) What is the error in the following function definition? int find min (int x, y)f int min 0 if (xExplanation / Answer
multiple choice questions
1
Ans - option -c -
compiler is primarily translate the source code from high level programming language into low level language or machine code.
2.
Ans- opton -b.
a semi colon is used to denote the end of the statement.
3.
Ans - option -d
the function does not specify a type for the second parameter variable.
4.
Ans - option- d
every executable c++ program has a main() function.
5.
Ans- option-e. that is ans is none of these.
the actual ans is 1,7,3 x value and z value directly printed form main() without modification. and y value returned from the function calc();
6.
Ans- option -d
that is size is 4.
7.
Ans - option-a ..
that is by using size() function with the vector varibale we will get size.
8.
Ans-option -b .
intializes all the array elements
9.
Ans-option-a
that is computeValue(10);
10
Ans-option-e none of these
because in switch case we are not printing any values. by printing or cout<< statement
11.
Ans-option -e
that void passarray(int num[],int size);
12.
Ans -option-b
that is 4,2
13.
Ans-option -c
that is 1 2 3 4 5 6 7 8 End
14.
Ans -option -b
that is tentimes
15.
Ans-option- c
that is if(code=='Q')
16.
Ans-option-a
that is str.substr(str.length() -2,2) will yield last two character of the string.
17.
Ans-option -c.
previous -99 ,next -101
18.
Ans-option -c
nums contain all are 1's
19.
Ans-option-c
program displays 0,1,2,3,4
20.
Ans-option-b
a[0]=2,a[1]=1
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.