Technology Questions
Practice Technology MCQs with answers and explanations. Page 24 of 79.
Category
Interview
Topic
Technology
Page
24 / 79
Mode
Practice
Questions
Open any question to view the answer and explanation.
In VSAM, what does a RETURN-CODE value of 28 generally indicate during a read operation on a data set?
Open
View answer
In C++ object oriented programming, which of the following is not a valid access specifier keyword (public, protected, or private)?
Open
View answer
In data structures, which of the following operations is not the name of a standard sorting method or sorting algorithm?
Open
View answer
A binary tree with 7 nodes will have how many null child pointers (empty branches) in its linked representation?
Open
View answer
In external sorting and sequential file organisation, which of the following methods are used when storing or merging sequential files on secondary storage?
Open
View answer
In hash file organisation, what could the bucket size be if a single collision immediately causes an overflow (collision and overlapping occur at the same time)?
Open
View answer
In C++ classes, a default constructor is defined as a constructor that can be called with how many explicit arguments?
Open
View answer
In languages such as C++ and Java, where is a typical reference or pointer variable for a local object stored at runtime?
Open
View answer
How does variable declaration in C++ differ from traditional C (before C99) with respect to where inside a block variables may be declared?
Open
View answer
In C++ object oriented programming, what is a friend function of a class?
Open
View answer
What is the output of the following C++ program using a struct and a pointer to the struct?
#include <iostream>
using namespace std;
struct sec {
int a;
char b;
};
int main() {
sec s = {25, 50};
sec *ps = &s;
cout << ps->a << ps->b;
return 0;
}
Open
View answer
When declaring a function pointer in C or C++, which of the following is mandatory to specify so that the pointer type is correctly defined?
Open
View answer
What is the output of the following C++ program that calls a function through a function pointer?
#include <iostream>
using namespace std;
int n(char c, int i);
int (*p)(char, int) = n;
int main() {
(*p)('d', 9);
p('d', 9);
return 0;
}
int n(char c, int i) {
cout << c << i;
return 0;
}
Open
View answer
In C and C++, which preprocessor directive keyword is used to define macros?
Open
View answer
In C and C++, how many basic types of preprocessor macros are commonly described (object-like macros and function-like macros)?
Open
View answer
In C++, what is the primary purpose of using namespaces in a program?
Open
View answer
In C++, what is the general syntax for accessing a variable or function that is defined inside a namespace?
Open
View answer
For user-defined header files in C and C++, which file extension is most commonly used in source code examples such as #include "myheader.h"?
Open
View answer
In C++, what is an inline function and why is it used by the compiler?
Open
View answer
In C++ classes, the special member function that is invoked automatically whenever an object goes out of scope or is explicitly deleted is called what?
Open
View answer
Practice smarter
Solve a few questions daily and revisit weak topics regularly to improve accuracy.