Answer:
Answered below.
Explanation:
//Program in Python
login_name = "Admin"
password = "PASS"
display = " "
user_login_name = input ("Enter username: ")
user_password = input("Enter your Password: ")
if user_login_name == login_name and user_password == password:
display = "Correct Login"
elif user_login_name != login_name:
display = "wrong username"
elif user_password != password:
display = "wrong password"
print(display)
Answer:








Explanation:
Solving (a): To base 10

We simply multiply each digit by a base of 16 to the power of their position.
i.e.


In hexadecimal

So:



This gives:


In hexadecimal

So:


Solving (b): To base 10

We simply multiply each digit by a base of 2 to the power of their position.
i.e.





Solving (c): To base 16

First, convert to base 10
In (b)

Next, is to divide 781754 by 16 and keep track of the remainder





Write out the remainder from bottom to top

In hexadecimal


So:


In b

Next, is to divide 11057389 by 16 and keep track of the remainder






Write out the remainder from bottom to top

In hexadecimal


So:

Solving (d): To octal

Divide 74510 by 8 and keep track of the remainder






Write out the remainder from bottom to top


Divide 67210 by 8 and keep track of the remainder






Write out the remainder from bottom to top

Answer: Constructors can specify parameters but not return types.
Explanation:
public class Student {
int roll_no;
public Student(int a) {
roll_no = a;
}
public static void main(String[] args) {
Student abs = new Student(10);
System.out.println(abc.roll_no);
}
}
In the above code we have illustrated the working of constructors. We have a class with the name Student. then a constructor is created of the class called as the class constructor. In the main we create an object of the class and with this object we invoke the constructor and also pass a parameter. Here in the code we are passing the roll no of the student.
So we can say that constructor is called during the runtime when the object created invokes the constructor so a constructor can have many arguments but it does not have a return type.
The answer is definitely C. 3