Quiz
Untitled
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (190)
1Find the arithmetic operator
- Ax
- B+
- C+y
- D&x
2Specify the types of operator
- ALogical, Bitwise, Arithmetic, Relational
- BMathematical, Bitwise, Arithmetic, Relational
- CAssignment, Bitwise, Arithmetic, Relational
- DLogical, Bitwise, Assignment, Relational
35+9*3*3-4 > 10 && (2+16-8/4 > 6 || (2<6 10>11))
- ATrue
- BFalse
- CNothing
- DAll of them
4Logical operators always evaluated from
- ARight to left
- BNot sure
- CNo difference
- DLeft to right
5When an equation uses more than one type of operator then the order of precedence has to be established with the different types of operators:
- AComparison, logical, arithmetic
- BLogical, arithmetic, comparison
- CArithmetic, comparison, logical
- DArithmetic, logical, comparison
6Precedence for Logical Operators
- AOR, NOT, AND
- BOR, AND, NOT
- CNOT, AND, OR
- DAND, OR, NOT
7How many times the current loop will execute? for (int i = 0; i <= 5; i += 3);
- A2 times
- B3 times
- CNever
- D5 times
- EInfinite loop
8There are two different ways to implement multi selections in C++ language. They are
- AElse- if and switch case
- BIf…else and switch case
- CElse if
- DNot sure
9What is an array?
- AAn array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a unique identifier
- BAn array is a series of elements of the different type placed in contiguous memory locations that can be individually referenced by adding an index to a unique.
- CAn array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by multiplying an index to a unique identifier.
- DAn array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a same identifier.
10The whole array can be passed to a function. However, it can't be changed by the code in that function
- ATrue
- BNothing
- CFalse
- DAll of them
11A two-dimensional array represents data in the form of table with rows and columns
- ATrue
- BFalse
- CNothing
- DAll of them
12Which statement of array is true?
- AInt foo[5]={10,20,30};
- Bint foo[]{10,20,30};
- Cint foo[3] = {10,20,30};
- Dint foo[];
13What are strings?
- AStrings are objects that represent sequences of characters
- BStrings are objects that represent sequences of pointers.
- CStrings are objects that represent sequences of special words.
- DStrings are objects that represent sequences of structures
14In which data type we write text
- Astring
- Bint
- Cfloat
- Ddouble
15Choose the right syntax to define a function
- Aname[parameter1, parameter2]
- Btype (parameters)
- Cparameter1, parameter2 (name)
- Dtype name (parameter1, parameter2)
16A function can return more than one value
- ATrue
- BFalse
17What are the three steps in using a function?
- ADefinition, invocation, argument
- BPrototype, argument, signature.
- CDefinition, prototype, invocation.
18The factorial function.
- Aif (n-1){ return n*factorial(n-1);} else {return 1;}
- Bn! = n*(n+1)!
- Cn! = n-(n-1)! And 1! = 1
- Dn! = n/(n-1)! And 1! = 1
19write mpg() function prototype, that takes two type double arguments and returns a double
- Afloat mpg(int a){ float b = 1; return b;}
- Bvoid mpg(){}
- Cdouble mpg(double a, double b)
- Ddouble mpg(int a, double b)
20What is data structure?
- Ais a group of data elements grouped together under one name.
- Bis a group of data elements grouped together under two names.
- Cis a set of some elements grouped together under value.
- Dis a group of data elements together with some name.
21Which of the following are themselves a collection of different data types?
- Astructure
- Bstring
- Cchar
- Dinteger
22The data elements in structure are also known as what?
- AMembers
- BObjects
- CData
- DNone of the above
23What will be used when terminating a structure?
- ABrackets
- BColon
- CSemicolon
- DDot
24Which of the following is address of operator represented by?
- A$
- B#
- C&
- D@
25Pointers may be compared by using relational operators
- ATrue
- BFalse
26What will be used between the object name and the member name?
- ADot
- BSemicolon
- CColon
- DAnything
27Which stream class is used to both read and write on files?
- Aifstream
- Bofstream
- Ciostream
- Dfstream
28Which stream class is only used to read files?
- Aifstream
- Bofstream
- Ciostream
- Dfstream
29Which of the following shows the correct syntax for if statement?
- Aif expression
- Bif ( expression )
- Cif { expression }
- Dexpression if
30When does the code block following while(x<100) execute?
- AWhile it wishes
- BWhen x is less than one hundred
- CWhen x is greater than one hundred
- DWhen x is equal than one hundred
31Which of the following properly declares struct?
- Astruct {int a;}
- Bstructa_struct {int a;}
- Cstructa_structint a;
- Dstruct_structa {int a;};
32Which of the following properly declares a variable of struct foo?
- AStruct foo;
- Bfoo var;
- Cfoo;
- DInt foo;
33Which of the following correctly declares an array?
- Aint anarray[10];
- Bintanarray;
- Canarray{10};
- Darray anarray[10];
34What is the difference between array and structure?
- AOnly on their declaration
- BNo difference
- CStructure can include members of different data types
- DArrays can include only integers
35There is an array with 29 elements, what is the index number of the last array element?
- A29
- B2
- C28
- DArray does not have element’s index
36What will output from the following program?

- AHello will print three times
- BHello will print once
- CHello will print not be printed three times
- DCompile error
37How many times the current loop will execute for (int i = 0; i <= 4; i += 3);?
- A2 times
- B3 times
- C5 times
- DInfinitely
3838. How many times the current loop will execute for (int i = 0; i <= 10; i++);?
- A11 times
- BNever
- C10 times
- D0
39What is the output from the following program code?

- A10 10 10 10 10
- B11 11 11 11 11
- C10
- D0 1 2 3 4
- EError
40What is the output from the following program ?

- A3^4 is 81
- B3^4 is 80
- C3^4 is 12
- D43
41Write the correct function definition, where function ‘alua’ that takes three integers, x, y and z, and returns an integer?
- Adouble alua(int x, int y, int z)
- Bint alua (int x, int y, int z)
- Cintalua (int x, int y)
- Dintfunct (int x, int y, int z)
42Write correct function prototype for the function ‘intToDouble’ that takes an integer argument ‘number’, and returns a double value.
- Adouble intToDouble( int number);
- Bfloat intToDouble( int number);
- Cdouble intToDouble( double number);
- DintintToDouble( number);
43The OR (||) operator:
- AHas higher precedence that AND (&&) operator
- BStops evaluation upon finding one condition to be true
- CAssociates from right to left
- DTrue if all conditions are true
44Which of the following for headers is not valid for C++ code?
- Afor (int i = 0; i<10; i++)
- Bint i =0;
- Cfor (int i =0; j<10; i++);
- Dint j = 6;
- Eall
45Which conversion is not possible?
- Aint to float
- Bfloat to int
- Cchar to float
- Dall are possible
46What is the correct way to print integer sum to the screen?
- A<xmp>cout<< sum <<endl;</xmp>
- B<xmp>cout"sum"<<endl;</xmp>
- C<xmp>cout>> sum <<endl;</xmp>
- D<xmp>cout< sum <endl;</xmp>
47What will output from the following function printOnNewLine; , if x = 3?

- A3
- B0
- CNothing
- DCompile error, because x is int, function is char.
4848. Which of the following cannot be used to create a random numbers?
- Astructures
- Bfloat
- Cint
- Dnone of the mentioned
49What is the correct value to return to the operating system upon the successful completion of a program?
- A-1
- B1
- C0
- DProgram does not return a value
50Which of the following gives the value stored at the address pointed to by the pointer gala?
- Agala;
- Bval(gala);
- C*gala;
- D&gala;
51What is the only function all C++ programs must contain?
- Astart()
- Bsystem()
- Cmain()
- Dprogram()
52What punctuation is used to signal the beginning and end of code blocks?
- A{ }
- B-> and
- CBEGIN and END
- D( and )
53What punctuation ends most lines of C++ code?
- A.
- B;
- C:
- D‘
54Which of the following is a correct comment?
- A*/comment*/
- B**comment**
- C/*comment*/
- D{comment}
55Which of the following is not a correct variable type?
- Afloat
- BReal
- Cint
- Ddouble
56Which of the following is the correct operator to compare two variables?
- A:=
- B=
- CEqual
- D==
57Which of the following is true for an integer variable?
- A1
- B66
- C-10
- D-1
- EAll of them
58Which of the following is the boolean operator for logical-and?
- A&
- B&&
- C|
- D|&
59Please evaluate !(1 && !(0 || 1)).
- ATrue
- BFalse
- CUnevaluatable
- DNot sure
60What is the final value of x when the code int x; for(x=0; x<50; x++) {} is run?
- A10
- B50
- C0
- D51
61Which is not a loop structure in C++?
- Afor
- Bdo while
- Cwhile
- Drepeat until
62How many times is a do while loop guaranteed to loop?
- A0
- BInfinitely
- C1
- DVariable
63What is the output of the following code ?

- Avalue
- B77.5
- CFloat
- DVariable
64What is the return type of the function with prototype: "int func(char x, float v, double t);"
- Achar
- Bint
- Cfloat
- Ddouble
65Which of the following is a valid function call (assuming the function exists)?
- AFunct@;
- Bfunct x, y;
- Cfunct();
- Dstructfunct();
66Which of the following is a complete function?
- Aintfunct();
- Bint funct(int x) {return x=x+1;}
- Cvoid funct(int) {cout&tl;<"Hello"}
- Dvoid funct(x) {cout<<"Hello"}
67Which of the following is required to avoid falling through from one case to the next?
- AEnd
- BBreak
- CStop
- DA semicolon
68What is the return type of the function with prototype: " float func(char x, float v, double t);"
- Achar
- Bint
- Cfloat
- Ddouble
69Which of the following is the proper declaration of a pointer?
- Aint x;
- Bint&x;
- Cptr x;
- Dint *x;
70Which of the following gives the memory address of integer variable a?
- A*a;
- Ba;
- C&a;
- Daddress(a);
71Which of the following gives the memory address of a pointer a?
- Aa;
- B*a;
- C&a;
- Daddress(a);
72Which of the following gives the value stored at the address pointed to by the pointer a?
- Aa;
- Bval(a);
- C*a;
- D&a;
73Which of the following gives the value stored at the address pointed to by the pointer ptr?
- Aptr;
- Bval(ptr);
- C*ptr;
- D&ptr;
74Which of the following accesses a variable in structure b?
- Ab->var;
- Bb.var;
- Cb-var;
- Db>var;
75Which of the following accesses a variable in structure mystruct?
- Amystruct ->var;
- Bmystruct.var;
- Cmystruct -var;
- Dmystruct>var;
76Which of the following correctly accesses the seventh element stored in alua, an array with 100 elements?
- Aalua[6]
- Balua[7]
- Calua(7)
- Dalua;
77What character ends all strings?
- A‘,’
- B‘ ‘
- C‘\0’
- D‘\n’
78What would be printed from the following C++ program ?

- A2 3 6 8 9
- B1 2 5 7 8
- C1 2 3 5 6 7 8
- D1 2 5 7 8 9
79What is the correct way to write the condition y < x < z?
- A((y < x) && (x < z))
- B((y < x) | (x < z))
- C((y < x) & (x < z))
- D((y < x) AND (x < z))
80The value 132.54 can represented using which data type?
- Adouble
- Binteger
- Cvoid
- Dbool
81What is the index number of the last element of an array with 9 elements?
- A9
- B8
- C0
- DNothing
82What punctuation ends most lines of C++ code?
- ADot
- BSemi-colon
- CColon
- DSingle quote
83Which of the following identifiers (variable names) is invalid?
- Amy*number
- BMyNumber
- Cmynumber
- Dmy7number
84In an assignment statement“ a=b; ” which of the following statement is true?
- AThe variable a and the variable b are equal.
- BThe value of b is assigned to variable a but the later changes on variable b will not effect the value of variable
- CThe value of b is assigned to variable a and the later changes on variable b will effect the value of variable a
- DThe value of variable a is assigned to variable b and the value of variable b is assigned to variable a.
85When following piece of code is executed, what happens, if b=2; a = b++; ?
- Aa contains 2 and b contains 3
- Ba contains 3 and b contains 3
- Ca contains 2 and b contains 2
- Da contains 2 and b contains 4
86Which of the following is output statement in C++?
- Aprint
- Bwrite
- Ccout
- Dcin
87Which of the following is input statement in C++?
- Acin
- Binput
- Cget
- Dnone of them
88The difference between while structure and do structure for looping is
- AIn while statement the condition is tested at the end of first iteration
- BIn do structure the condition is tested at the beginning of first iteration
- CThe do structure decides whether to start the loop code or not whereas while statement decides whether to repeat the code or not
- DIn while structure condition is tested before executing statements inside loop whereas in do structure condition is tested before repeating the statements inside loop
89Which of the following is selection statement in C++?
- Abreak
- Bgoto
- Cexit
- Dswitch
90Which of the following is not a looping statement in C++?
- Awhile
- Buntil
- Cdo
- Dfor
91Looping in a program means?
- AJumping to the specified branch of program
- BRepeat the specified lines of code
- CBoth of above
- DNone of above
92In case of pass by reference
- AThe values of those variables are passed to the function so that it can manipulate them
- BThe location of variable in memory is passed to the function so that it can use the same memory area for its processing
- CThe function declaration should contain ampersand (& in its type declaration
- DAll of them
93A function that calls itself for its processing is known as
- AInline Function
- BNested Function
- COverloaded Function
- DRecursive Function
94We declare a function with ______ if it does not have any return type
- Along
- Bdouble
- Cvoid
- Dint
95Arguments of a functions are separated with
- Acomma (,)
- Bsemicolon (;)
- Ccolon
- DNone of these
96The keyword endl
- AEnds the execution of program where it is written
- BEnds the output in cout statement
- CEnds the line in program. There can be no statements after endl
- DEnds current line and starts a new line in cout statement
97Strings are character arrays. The last index of it contains the null-terminated character
- A\n
- B\t
- C\0
- D\1
98Variables inside parenthesis of functions declarations have _____ level access
- ALocal
- BGlobal
- CModule
- DUniversal
99Array indexing always starts with the number
- A0
- B1
- C-1
- D10
100Which of the following accesses a variable in structure st1?
- Ast1->var;
- Bst1.var;
- Cst1-var;
- Dst1>var;
101Which looping process is best used when the number of iterations is known?
- Afor
- BWhile
- CDo-while
- DNothing
102If there is more than one statement in the block of a for loop, which of the following must be placed at the beginning and the ending of the loop block?
- Aparentheses ( )
- Bbraces { }
- Cbrackets [ ]
- Darrows <>
103A memory address is…
- Awhere a variable is stored.
- Bwhere a variable is defined.
- Cwhere a variable is declares.
- Dwhere a variable is print out.
104The set of instructions that a computer will follow is known as..
- Aprogram
- Bvariable
- Ccomputer
- Dbrackets
105cin>> number; is
- Aan output statement
- Ba colon
- Ca variable
- Dan input statement
106cout<< "How many items would you want?\n"; is
- Aan output statement
- Ba colon
- Ca variable
- Dan input statement
107int number; is
- Aint number; is
- Ba variable declaration
- Ca variable
- Dan input statement
108If x is 0, what is the value of (!x == 0)?
- ATrue
- BFalse
- C2
- D15
109Which class should be included to work with files?
- Aiostream
- Bstring
- Ccmath
- Dfstream
110Which of the following is the output from the following C++ code

- A15 14 13 12 11 10
- B15 14 13 12 11 10 9
- C9
- D15
111If originally x=0,y=1, and z=3, what is the value of x, y, and z after executing the following code ?

- Ax=0 y=3 z=3
- Bx=0 y=1 z=3
- Cx=3 y=3 z=3
- Dx=3 y=1 z=0
112What is the value of x after the following statements ?

- A10
- B33
- C3
- D0
113What is the value of x after the following statements ?

- A15
- B3
- C0
- D4
114Which of the following is the output from the following C++ ?

- A5
- B0
- C4
- D6
115Given the code fragment, what is the final value of y?

- A8
- B2
- C4
- D3
116Which of the following is the output from the following C++ code ?

- A10
- B12
- C3
- D4
117Which of the following is the output from the following C++code ?

- A34.4
- Bvalue
- C1
- D0
118What is the final value of y in the following C++code ?

- A2
- B3
- C22
- D0
119Which of the following is the final value of ‘i’ from the following C++code ?

- A5
- B4
- C0 1 2 3 4
- D0 1 2 3 4 5
120What is the value of x after the following code executes ?

- A10
- B11
- C13
- D0
121What is the output of the following code segment ?

- A15
- B25
- C5
- D0
122What does the following code print to the screen ?

- A7
- Bcout
- Cint
- Dworld
123What is the value of x after the following statements ?

- A15
- B10
- C5
- D25
124What is the value of x after the following statements ?

- A25
- B4
- C5
- D1
125What is the value of x after the following code executes ?

- A10
- B11
- C23
- D13
126Given the code, what is the final value of i?

- A4
- B6
- C5
- D0
127What is the output of the following code fragment ?

- A6
- B0
- C8
- D7
128Which of the following is the valid array declaration
- Aintnum(5)
- Bint mycat[5]
- CArray. double[5] marks
- DMyarray.counterint[5]
129What is the output of the following code ?

- A7
- Bvalue
- C1
- D6
130What is the value of x after the following statements ?

- A11
- B10
- C0
- D12
131What is the output of the following code fragment ?

- A22
- B21
- C20
- D0
132Solve the following piece of code and choose the best answer ?

- AThe function addition is called by passing the values
- BThe function addition is called by passing reference
- CBoth of above
- DNone of above
133If the type specifies of parameters of a function is followed by an ampersand &, that function call is…
- APass by value
- BPass by reference
- CAll of answers
- DNone of answers
134Which of the following gives the memory address of a pointer pt1?
- A*pt1;
- Bpt1;
- C&pt1;
- Daddress(ptr1);
135What is the final value of x after the following fragment of code executes ?

- AInfinite loop
- BNever
- C1
- D0
136What is the value of x after the following statements ?

- A70
- B30
- C3
- D33
137Given the following code fragment, what is the output ?

- A5
- BThat is all. Goodbye
- CX is bigger than 5
- DX
138How many times is "Hi" printed to the screen ?

- A0
- B1
- C14
- D15
139Which libraries should be included to get string in a file?
- A<string> and <fstream>
- B<string> is enough
- C<fstream>is enough
- D<string> or <fstream>
140How to implement array of chars with 10 elements?
- Achar* chs; chs = new char(10);
- Bchar chs; chs = char[10];
- Cchar chs[10];
- Dchar chs[] = new char[10];
141How to get whole string in one line (in command line)?
- Astring s; getline(cin, s);
- Bstring s;getline(cout, s);
- Cstring s;cin>> s;
- Dstring s;cout<< s;
142How to get whole string in one line (in file)?
- Aifstream file; string s; getline(file, s);
- Bifstream file; string s;getline(cin, s);
- Cifstream file; string s;getline(cout, s);
- Difstream file; string s;file >> s;
143Why do we need library <fstream>?
- ATo work with strings.
- BTo work with files.
- CTo work with mathematical functions.
- DTo work with our own libraries.
144Why do we need library <xmp><cmath></xmp>?
- ATo work with strings.
- BTo work with mathematical functions.
- CTo work with command line.
- DTo work with our own libraries.
145Where is the mistake of the code ?

- AVariable “a” do not have any values.
- BLibrary <cmath> didn’t included.
- CLibrary <math.h>didn’t included.
- DLibrary <fstream> didn’t included.
146Where is the mistake of the code ?

- AVariable “a” is not declared.
- BLibrary <cmath> didn’t included.
- CLibrary <math.h> didn’t included.
- DLibrary <fstream>didn’t included.
147What will be printed in the part of the code ?

- A1 4 7 10
- B0 3 6 9
- C3 6 9
- D9 6 3 0
148What does the following statement mean?
int (*fp)(char*)- Apointer to a pointer`
- Bpointer to an array of chars
- Cpointer to function taking a char* argument and returns an int
- Dfunction taking a char* argument and returning a pointer to int
149The operator used for dereferencing or indirection is ____
- A*
- B&
- C->
- D->>
150Choose the right option: string* x; string y;
- Ax is a pointer to a string, y is a string
- By is a pointer to a string, x is a string
- Cboth x and y are pointer to string types
- Dnone of the mentioned
151Which of the following is illegal?
- Aint *ip;
- Bstring s, *sp = 0;
- Cint i; double* dp = &i;
- Dint *pi = 0;
152Where does the execution of the program starts?
- Auser-defined function
- Bmain function
- Cvoid function
- Dnone of the mentioned
153What are mandatory parts in function declaration?
- Areturn type, function name
- Breturn type, function name, parameters
- Cboth a and b
- Dnone of the mentioned
154Which of the following is used to terminate the function declaration?
- A:
- B)
- C;
- Dnone of the mentioned
155Which operator is used for input stream?
- A>
- B>>
- C{}
- D()
156Which of the following correctly declares an array?
- Aint array[10];
- Bint array;
- Carray{10};
- Darray array[10];
157What is the index number of the last element of an array with 9 elements?
- A9
- B8
- C0
- DProgrammer-defined
158What is an array?
- AAn array is a series of elements of the same type in contiguous memory locations
- BAn array is a series of element
- CAn array is a series of elements of the same type placed in non-contiguous memory locations
- DNone of the mentioned
159Which of the following accesses the seventh element stored in array?
- Aarray[6];
- Barray[7];
- Carray(7);
- Darray;
160The constants are also called as
- AVariables
- BPreprocessor
- CLiterals
- Dnone of the mentioned
161What are the parts of the literal constants?
- Ainteger numerals
- Bfloating-point numerals
- Cstrings and boolean values
- Dall of the mentioned
162How the constants are declared?
- Aconst keyword
- B#define pre-processor
- Cboth a and b
- DNone of the mentioned
163If a program uses Inline Function, then the function is expanded inline at______.
- ACompile time
- BRun time
- CBoth a and b
- DNone of these
164If an argument to a function is declared as const, then
- Afunction can modify the argument
- BFunction can’t modify the argument
- Cconstargment to a function is not possible
- DNone of these
165What does C++ append to the end of a string literal constant?
- Aa space
- Ba number sign (#)
- Can asterisk (*)
- Da null character
166You have assigned the address of Value to the pointer P, Which statement will display the value stored in Value?
- Acout<<P;
- Bcout<<*Value;
- Ccout<<&P;
- Dcout<<* P;
167A function that calls itself for its processing is known as
- AInline Function
- BNested Function
- COverloaded Function
- DRecursive Function
168Observe following function declaration and choose the best answer: int divide ( int a, int b = 2 )
- AVariable b is of integer type and will always have value 2
- BVariable a and b are of int type and the initial value of both variables is 2
- CVariable b is international scope and will have value 2
- DVariable b will have value 2 if not specified when calling function
169Variables inside parenthesis of functions declarations have _____ level access.
- ALocal
- BGlobal
- CModule
- DUniversal
170Strings are character arrays. The last index of it contains the null-terminated character
- A\n
- B\t
- C\0
- D\1
171Regarding following statement which of the statements is true?
const int pathwidth=100;- ADeclares a variable pathwidth with 100 as its initial value
- BDeclares a construction pathwidth with 100 as its initial value
- CDeclares a constant pathwidth whose value will be 100
- DConstructs an integer type variable with pathwidth as identifier and 100 as value
172Which of the following are valid array declaration
- Aintnum(5)
- Bfloat avg[5]
- Cdouble[5] marks
- Dcounter int[5]
173Following is the dereferencing operator
- A&&
- B&*
- C&
- D*
174Array elements are accessed using
- A::
- B.
- C->
- DIndex number
175To perform File Input/Output operations, we must use _____________ header file.
- A<ifstream>
- B<ofstream>
- C<fstream>
- DAny of these
176By default, all the files are opened in ___________mode
- ABinary
- Btext
- CNone of these
- DCan’t say
177What punctuation ends most lines of C++ code?
- A. (dot)
- B; (semi-colon)
- C: (colon)
- D' (single quote)
178Which of the following is not a correct variable type in C++?
- Afloat
- Breal
- Cint
- Ddouble
179There is a unique function in C++ program by where all C++ programs start their execution
- Astart()
- Bbegin()
- Cmain()
- Doutput()
180Which of the following cannot be used in identifiers?
- ALetters
- BDigits
- CUnderscores
- DSpaces
181Which of the following is not a valid escape code?
- A\t
- B\v
- C\f
- D\wq
182To increase the value of c by one which of the following statement is wrong?
- Ac++;
- Bc = c + 1;
- Cc + 1 => c;
- Dc += 1;
183When following piece of code is executed, what happens? b=3; a=b++;
- Aa contains 3 and b contains 4
- Ba contains 4 and b contains 4
- Ca contains 4 and b contains 3
- Da contains 3 and b contains 3
184The result of a Relational operation is always
- Aeither True or False
- Bis less than or is more than
- Cis equal or less or more
- DAll of these
185Which of the following is not a valid relational operator?
- A==
- B=>
- C>=
- D<=
186By default, the standard output device for C++ programs is
- APrinter
- BMonitor
- CModem
- DDisk
187By default, the standard input device for C++ program is
- AKeyboard
- BMouse
- CScanner
- DNone of these
188Looping in a program means
- AJumping to the specified branch of program
- BRepeat the specified lines of code
- CBoth of above
- DNone of above
189If the type specifier of parameters of a function is followed by an ampersand &, that function call is
- Apass by value
- Bpass by reference
- CBoth of above
- DNone of above
190What is the final value of x when the code <xmp>int x; for(x=0; x<28; x++) {} </xmp>is run?
- A28
- B27
- C0
- D1
Information
- Description
- Quiz on Untitled, created by Nazerke Ybyrash on 09/01/2017.
- Author
- Nazerke Ybyrash
- Language
- English
- Views
- 101
- Tags
- Rating
- No ratings yet Rate this quiz