Answer:
Following are the program in the Python Programming Language:
def check(num): #define function
if(num.isdigit()): #set if statement
return "yes"; #return yes if condition is true
else:
return "no";# return no if condition is false
string=input("Enter the numbers 0-9: ") #get input from the user
print(check(string)) #print and call the function
Output:
Enter the numbers 0-9: 1995
yes
Enter the numbers 0-9: 42,000
no
Explanation:
Here, we define a function "check()" and pass an argument in its parameter "num" inside the function.
- we set if-else conditional statement and check the value stored in the variable "num" is the digit by using built in function "isdigit()" then return "yes".
- Then, otherwise it return "no".
Finally, we get the input from the user in the variable "string" then, we call the function through "print()" function.
Answer:
"backdoor" is the correct answer for the above question
Explanation:
- The backdoor is a type of attack which is done by the type of backdoor programs to remotely access the computers without the authorization of the user of the computer.
- It is inserted on the computer with the help of the internet and accessed the computer without using authorization techniques.
- The above question asked about the virus which is used to access the computer without the permission of the right use of the system. Hence the answer is backdoor which is defined above.
Answer: d. should be lowercase.
Explanation:
ID attributes are case sensitive for the most part - DOM and Java Script - which means that the ID attribute does not always have to be lowercase.
It can be uppercase as well. ID attributes can also start with a number and as of HTML 5 can start with a special character as well. Finally, the ID attribute must always be unique within each document.
Answer:
#include <iostream>
using namespace std;
void swap(int& m, int& n) /* passing by reference so that changes will be made in the original values.*/
{
int t=m;
m=n;
n=t;
}
int main()
{
int val1,val2;
cout<<"Enter the values"<<endl;
cin>>val1>>val2;
cout<<"Values before swap "<<val1<<" "<<val2<<endl;
swap(val1,val2);
//calling the function swap..
cout<<"Values after swap "<<val1<<" "<<val2<<endl;
return 0;
}
Explanation:
Created a function swap with 2 arguments m and n passed by reference.
It allows commonly used instructions to be stored for easier access, but the ram gets deleted when ever you restart the computer.