Q1. Which is the correct statement to print the value of age?
#include <iostream>
using namespace std;
int main() {
int age=19;
return 0;
}
4 (cout << "Age: " << age;)
Q2. What will be the output of following program?
Correct Answer - 1
10
:: is a Scope Resolution Operator, it is used to access the value of global variable and ::a will return the value of global declared variable.
Q3. Which is the correct answer regarding '\n' and endl?
2. '\n' and endl both are used to print new line but endl flushes the buffer after printing new line.
Q4. What will be the output of the following code?
#include <iostream>
using namespace std;
int main() {
cout << "hey my name is Rohan" ;
}
View Answerhey my name is Rohan
Q5. What will be the output of the following code ?
#include <iostream>
using namespace std;
int main(){
cout << "career" << "labs";
}
View Answercareerlabs
70 videos|45 docs|15 tests
|
1. What is Input/Output software development? |
2. Why is Input/Output software development important in computer systems? |
3. What are some common examples of Input/Output operations in software development? |
4. How does Input/Output software development impact the performance of a computer system? |
5. What are some best practices to follow in Input/Output software development? |
|
Explore Courses for Software Development exam
|