C++ Quiz 1 C++ Quiz 1 Identifier cannot be a …..a) Variableb) Keywordc) Class named) Object nameWhich of the following is an invalid identifier?a) marks1b) marks1oopc) 1marksd) my_oop_marksWhat is the output of the following code? #include< iostream.h> using namespace std; void main() { int a=1; switch (a) { case 1: cout<<”OK”; case 2: cout<<”BYE” default” cout<<”Nothing” } }a) OKb) BYEc) Nothingd) OK BYEWhat will be the output of following code? #include< iostream.h> using namespace std; int main() { int i=10; if(i=20) cout << i ; return 0; }a) 10b) 20c) ErrorVariable defined with a function is called …..a) Static variableb) Global variablec) Local variabled) Pointer variableIf we know the number of iterations, then we should use ….. loop.a) forb) whilec) do – whiled) for eachWhat will be the output of following code ? #include "iostream" using namespace std; void main() { int i, sum=0; for(i=1;i<=10;i++) sum+=i; cout<<i; getch(); }a) 10b) 11c) 55d) Error….. is a collection of attributes and behaviors.a) Classb) Objectc) Namespaced) Data typeA variable to store a decimal value can be declared as below.a) dec average;b) average;c) integer average;d) float average;Every user-defined C++ function must start and end with…..Angle brackets <>Curly brackets {}Square brackets []Parentheses ()