Answer: Conventions
Explanation: Convention is the writing activity with the components like punctuation,grammar,symbols,note etc to make the written content understandable and clear. This feature is used because people can understand the meaning of content read by them without initializing it later.
As soon as the reader finishing the reading the information should be clear in his/her mind so that they don't have to figure it out after reading.Convention enhances the value of reading and learning by it's feature .
Answer:
Option a is the correct answer for the above question.
Explanation:
- The above question has the option in which two option holds a syntax which is used to declare a variable in PHP language. So the answer is on behalf of the PHP language.
- When a user wants to create an object of any class with the two-parameter in PHP language, then he can do it by the help of "class_name object_name= new class_name($argument1,$argument2)".
- The option 'a' follows the above syntax to create an object of Cart class. Hence it is a correct option while the other is not because:
- Option b states a syntax in which the new keyword is not defined which is used to create a new object.
- Option c states that option in which '$' is not defined to declare a variable.
- Option d states that option in which '$' is not defined to declare a variable.
Answer:
Global variable
Explanation:
You should avoid using global variables in a program because global variables can be accessed by any part of the code and every function or any part of the code has the tendency to alter or modify its value. One can't limit the scope or in other words one cant simply force any part of the program not to use them or modify it's values. Testing of large programs also becomes difficult as it is hard to keep track of the functions reading and modifying the values of global variables
Answer:
Here is my code below: username = 'Polly1220' password = 'Bob' userInput = input("What is your username?\ n") if userInput == username: a=input("Password?\ n") if a == password: print("Welcome!") else: print("That is the wrong password.") else: print("That is the wrong username.")
...............it's - 70% :-)