Professional Documents
Culture Documents
C Aaaaaaaaaaaa
C Aaaaaaaaaaaa
executable file. What word should be filled at block left blank so that translation
process is complete.
A preprocessor
E) None
Q2) what do you get when you run the following program?
#include<iosteam.h>
int main(){
cout<<"hello world!"; return 0;}
A) helloworld
B) error: double quotation mark is not required
C) hello world!
D) error: 'cout' was not declared in this scope
E) error: 'using namespace std' directive is required
D) debugger
Q3) which one of the following best describes what is Identifier is in programming
language.
A) it is a sequence of letters only
B) it is a sequence of letters, underscore and digits
C) it is a sequence of letters, underscore and digits that starts in letter only
D) it is a sequence of letters, underscore and digits that starts with underscore
or letter
E) it is a sequence of letters, underscore and digits that starts with underscore,
letters or digits
F) A &E
G) B & C
Q4) The following code is definition of C++ Class. Which one of the following is
the correct object instantiation for the Class given below?
class Student{
int age;
public:
void setage(int a)
{age=a;}
};
A)student st
B) protected
C) private
every function has at least one statement block which could be empty
A void function can return without using return statement
5-age can be the name of any functions
no place in the program is allowed to call the main function