Computer interview questions – page 5
4,197 questions. Tap “Show answer” to check yourself.
-
_____ are grouped by object oriented database.
- Characteristics, attributes & graphics
- Characteristics, attributes & quantity
- Characteristics, attributes & procedures
- Characteristics, color & size
Show answer
C. Characteristics, attributes & procedures
-
Which of the following window is similar to Defaultfilter?
- Condition window
- Query condition window
- Report window
- Form window
Show answer
B. Query condition window
-
_____ of variables declared within a function is extended to the function block and all sub blocks therein.
- Class scope
- File scope
- Local scope
- Function scope
Show answer
D. Function scope
-
_____ functions copies source to target string.
- Stcp ()
- Scpy ()
- Str ()
- Strcpy ()
Show answer
D. Strcpy ()
-
_____ function returns the number of character stored in the array.
- Strlength ()
- Stlen ()
- Str ()
- Strlen ()
Show answer
D. Strlen ()
-
Which of the following is NOT true, related to functions?
- The default value for an argument can be given in between the argument list.
- The default value in the formal parameters can be given in the form of variable initialization.
- The actual parameters can be passed only as variables to formal parameters of reference type.
- The actual parameters can be passed in the form of constants to the formal parameters of value type.
Show answer
A. The default value for an argument can be given in between the argument list.
-
_____ are user defined named entities of memory locations that can store data.
- Char
- Data
- Constant
- Variables
Show answer
D. Variables
-
Switch expression should be evaluated to an _____ constant only.
- float
- variable
- string
- integer
Show answer
D. integer
-
To make a function inline, one has to insert the keyword _____ in the function header.
- line
- mainline
- online
- inline
Show answer
D. inline
-
A destructor name must be
- same as class name prefixed by tilde (~) character
- same as class name
- same as any other member function name
- none of the given
Show answer
A. same as class name prefixed by tilde (~) character
-
Which of the following prototype can be a copy constructor of class myclass?
- myclass (myclass & ×)
- myclass copy (myclass a)
- int copy (myclass mc)
- myclass (int myclass)
Show answer
A. myclass (myclass & ×)
-
A copy constructor is invoked when
- an object is passed by reference to constructor
- a member function returns an object
- an object is passed as a parameter to any of the member function
- all of the above
Show answer
D. all of the above
- Advertisement
-
_____ of a class are data variables that represent the features or properties of a class.
- Access specifiers
- Visibility labels
- Member functions
- Data members
Show answer
D. Data members
-
Declaration and function definitions are two specifications of which of the following
- Comments
- Class
- Data type
- None of the given
Show answer
B. Class
-
The members that can also be accessed from outside the class should be declared as
- Protected
- Private
- Public
- None of these
Show answer
C. Public
-
Members of a class are classified as
- Data functions and member functions
- Data hiding and data abstraction
- Data variables and data hiding
- Data members and member function
Show answer
D. Data members and member function
-
void sum:: input ()<br>The above line tells
- function input is sub function of sum
- function sum is sub function of input
- function input is declared within the class sum
- function sum is declared within the class input
Show answer
C. function input is declared within the class sum
-
Bjarne Stroustrup initially named C++ as
- C with classes
- Advanced C
- Deep C
- D
Show answer
A. C with classes
-
Which of the following statements in NOT true?
- A non member function cannot access the private data of a class
- The return type of a member function cannot be object data type
- Several different classes can use the same function name
- Member functions can be of static type
Show answer
D. Member functions can be of static type
-
int ex:: output ()<br> Which of the following is true with reference to the above line?
- The function output returns integer data type
- The function output returns ex type of data
- The class output returns integer type of data
- The function ex returns integer type of data
Show answer
A. The function output returns integer data type
-
The body of the class starts and ends with
- Braces i.e.., {}
- Semi colon(;)
- Start and stop
- Begin and end
Show answer
A. Braces i.e.., {}
-
Data abstraction in C++ is achieved by
- Encapsulation()
- Data Hiding()
- Polymorphism()
- Inheritance()
Show answer
B. Data Hiding()
-
_____ is not a field type in StarBase.
- Menu
- Float
- Currency
- Date/Time
Show answer
B. Float
-
To edit a record first
- Select the record
- Press the record pointer
- Press the primary key
- Key the record
Show answer
A. Select the record
- Advertisement
-
By pressing which key, one can move to the second field?
- Shift key
- Tab key
- Replace key
- Insert key
Show answer
B. Tab key
-
The key combination used to save the table is
- Ctrl + B
- Ctrl + K
- Ctrl + Z
- Ctrl + S
Show answer
D. Ctrl + S
-
Sorting on more than one field of a table at the same time is called
- Multiple Sorting
- Merging
- Sorting in Ascending order
- Sorting in Descending order
Show answer
A. Multiple Sorting
-
Browsing a selecting list of records is called
- Filtering
- Merging
- Searching
- Sorting
Show answer
A. Filtering
-
To uniquely identify a record in database, the key used is
- Key
- Primary key
- Secondary key
- Third level key
Show answer
B. Primary key
-
Data hiding refers to _____
- not giving names to data
- not specifying members and functions of a class
- declaring members as public
- members and functions of a class are not accessible by members of outside class
Show answer
D. members and functions of a class are not accessible by members of outside class