Answer:
1) A string is "non-numeric data". In other words, it is text.
2) False, a runtime error means that there is a problem, but it will be with the software, not the hardware.
3) An impossible task such as dividing five by zero is a logical error. Not using quotes on a string would be a syntax error, printing an inaccurate statement is not an error at all (as far as the program is concerned anyway), and using camelcase on a variable with multiple words is a common convention.
4) variableName = "value"
5) The code provided here is illegible, so I can't give a straight answer. It seems to be missing operators.
The correct answers are given as:
- Turning the lens dial clockwise
- Manual settings
- Tone
- File format
- JPEG or RAW
The given questions had to do with taking photos, photography, and the likes and how lenses are used to capture images, and file formats are used to select the size and quality of images.
<h3>What is Photography?</h3>
This refers to the art of taking pictures in a background in a bid to make still images.
Hence, we can see that The correct answers are given:
- Turning the lens dial clockwise
- Manual settings
- Tone
- File format
- JPEG or RAW
The given questions had to do with taking photos, photography, and the likes and how lenses are used to capture images, and file formats are used to select the size and quality of images.
Read more about photography here:
brainly.com/question/13600227
#SPJ1
Answer:
The answer is action eventlistener
Explanation:
It is an event handler and it is easy to implement.In java we call them even listeners it is function or a sub routine or a procedure that waits for an event to occur and respond to an event from a GUI component.
Answer:
#include<iostream>
#include<cstring>
#include <algorithm>
using namespace std;
class Student{
public:
string name;
int rollNo;
Student(){
}
Student(string n, int r){
name = n;
rollNo = r;
}
};
class ClassRoom{
public:
Student stud[10];
int count;
ClassRoom(){
count = 0;
}
void addStudent(string str,int roll){
Student s(str,roll);
stud[count++] = s;
}
Student * getAllStudents(){
return stud;
}
};
int main()
{
string name;
char temp[20];
int rollNo, N, i;
Student * students;
ClassRoom classRoom;
i=0;
while(getline(cin, name) && cin.getline(temp,20)&&i<10){
rollNo = atoi(temp);
classRoom.addStudent(name, rollNo);
i++;
}
N = i;
students = classRoom.getAllStudents();
for(int i=0 ; i < N; i++){
cout << (students+i)->rollNo << " - " << (students+i)->name;
if(i<N-1)
cout<<endl;
}
return 0;
}
Explanation:
- In the addStudent method, increment the counter and as the value of variable s to the the stud array.
- In the getAllStudents method, return all the students.
- Finally in the main method, display the name and roll no. of students.