C / C++ Programming
Best Of Luck
1. Which of the following features must be supported by any programming language to become a pure object-oriented programming language?
*
Encapsulation
Inheritance
Polymorphism
All of the above
2. What is the purpose of getc()
*
read a character from STDIN
read a character from a file
read all file
read file random
3. The programming language that has the ability to create new data types is called___.
*
Overloaded
Encapsulated
Reprehensible
Extensible
4. Which of the following is the correct syntax to read the single character to console in the C++ language?
*
Read ch()
Getline vh()
get(ch)
Scanf(ch)
5. If we stored five elements or data items in an array, what will be the index address or the index number of the array's last data item?
*
3
5
4
88
6. C language was invented to develop which Operating System.
*
Android
Linux
Ubuntu
Unix
7. C language is used in the development of ?
*
Databases
Graphic applications
Word Processors
All of the above.
8.Which of the following is the correct syntax for declaring the array?
*
init array []
int array [5];
Array[5];
None of the above
9. Which is not a correct variable type.
*
float
int
double
real
10. C++ programs must contain
*
start()
system()
main()
program()
11. Which operation is used as logical 'AND'
*
Operator-&
Operator-&&
Opeartor +
none of the above
12. A C++ code line ends with___
*
A semicolon(;)
A semicolon(;)
A Comma(,)
A Slash(/)
13. Which of the following is used for comments in C++?
*
// comment
/* comment */
both // comment or /* comment */
//comment */
14.Which of the following is the correct definition of sorting?
*
Sorting is a type of process in which the data or information is ordered into a specific order. Example increasing orders, decreasing.
Sorting information or data only in increasing order
Sorting is a type of process in which data elements are modified or manipulated
None of the above
15. What is this operator called ?:?
*
conditional
relational
casting operator
unrelational
Back
Next
Enter your details to view the result.
Name
*
First Name
Last Name
Email
*
example@example.com
Phone Number
*
Please enter a valid phone number.
Address
*
Street Address
Street Address Line 2
City
State / Province
Postal / Zip Code
Submit
Should be Empty: