Answer:
The correct option for the given question is option(B) i.e dot operator
Explanation:
Structure are collection of different datatypes member element .
Let us consider the example of structure
Struct test
{
int age ;
char name[45];
};
Here test is an "structure" which member is age of "integer" type and name of "String" type.if we have to access the member of structure,firstly we create structure variable name then after that we use dot operator which is also known as member access operator that access the members of structure.
struct test op;// structure variable name
op.age=12; // access the member age
For example
Following is the code in c language :
#include <stdio.h> // header file
struct test // structure declaration
{
int age ;
char name[45];
};
int main() // main function
{
struct test op;// structure variable name
op.age=12; // access the member age
printf("%d",op.age);
return 0;
}
Output:12
so correct answer is "dot operator"
Answer:
See explaination
Explanation:
//class extends Exception
class ParameterNotAllowedException extends Exception {
//Instance variable
private int input;
//Argumented constructor
public ParameterNotAllowedException(String message, int input) {
super(message);
this.input = input;
}
public int getInput() {
return input;
}
public void setInput(int input) {
this.input = input;
}
atOverride // Replace the "at" with at symbol ie shift 2
public String getMessage() {
//Returns the message
return input+" is invalid. "+super.getMessage();
}
}
class Main {
public static void main(String[] args) throws ParameterNotAllowedException {
int n = -1;
//Throw negative not allowed exception
if(n<0){
throw new ParameterNotAllowedException("negative number",n);
}
}
}
Answer:
strVar.replace(pos, n, str);
Explanation:
The strVar.replace() is a javascript function of searching and replacing a string for a defined value, whereby it finds and returns a new string where the defined values are replaced.
For example: to return a string where "Trump" is replaced with "Biden":
We have
var str = "Welcome Trump!";
var res = str.replace("Trump", "Biden", str);
Hence, in this case, the correct answer is strVar.replace(pos, n, str);
<span>Virtual Reality Can Be Used to Treat Anxiety and Post-Traumatic Stress Disorder</span>
Answer:
SPSS is short for Statistical Package for the Social Sciences, and it's used by various kinds of researchers for complex statistical data analysis. ... Most top research agencies use SPSS to analyze survey data and mine text data so that they can get the most out of their research projects. hope that helps love!