
- •Vector can change the length, array can't
- •Initalize the objects
- •In which type does the enumerators are stored by the compiler?
- •Void pointer can point to which type of objects?
- •In swap 105 In main 510
- •8, Memory address
- •In swap 105 In main 105
- •Void doesn’t return;
- •Int anarray[2][2];
- •Int anarray[10];
- •Int anarray[20][20];
- •Ifstream
- •Ios::create
- •Inline void foo() {}
8, Memory address
What is the output of this program?
In swap 105 In main 105
What is the output of this program?
21
21 21
What is the output of this program?
Jobs
Apple Steve
When does the code block following while(x<100) execute?
When x is less than one hundred
Where the default values of parameter have to be specified?
Function prototype
Where does the object is created? class
Where is the error?
Void doesn’t return;
Which of the following is not a data type in C + +?real
Which sign is placed after the operator “case”? :
Which function should contain all programs in the C + +?main()
Which of the following items correct comment in C++? /*comment*/
Which of the following statements is not a cycle in C + +? if
Which of the following is not correct variable type? real
Which of operations does not apply to the comparison operation?
=
Which of them is increment: ++
Which library should use for “std::setw”?
#include <iomanip>
Which of the following is called the number of elements in a vector:
size of the vector
a)nothing
b)This is not the hello message!
c)Hello world!
d)hello
e)Hello world! This is not the hello message! ;
Which of the following is wrong?
array and vector haven’t a base type
Which of the following is a two-dimensional array?
Int anarray[2][2];
Which of the following gives the memory address of the first element in array a a;
Which of the following is true?
the elements of an array are related by the fact that they have the same name and type
Which of the following correctly accesses the third element stored in a, an array with 50 elements? a[2];
Which of the following is incorrect?
cout << b[ 0, 1 ];
Which of the following false for array? change the length
Which of the following is true?
not included library of string
Which of the following function prototype is perfectly acceptable?
int Function(int Tmp = Show());
Which of the following is the proper declaration of a pointer?
int *x;
Which of the following gives the memory address of integer variable a? &a;
Which of the following gives the memory address of a pointer a? a;
Which of the following gives the value stored at the address pointed to by the pointer a? *a;
Which of the following is the proper keyword to allocate memory?
New
Which of the following is the proper keyword to deallocate memory? Delete
Which of the following is a static string? "Static String"
Which statement ends all strings? '\0'
Which keyword doesn’t exist? That
Which of this keyword isn’t access specifier? Defended
Which of this statement used to define a member of a class from outside the class definition itself?
::
Which code outputs the member "name" of object student? (student is object of any structure)
cout<<student.name
Which access specifier means that the member can be used only by the functions of this class? private
Which is the right declaration of the object of structure student:
student Aibar
Which of the following correctly declares an array?