Searching for "If"

Q:

What's the difference between Session and Cookie?

Answer

The principle distinction amongst sessions and cookies is that sessions are put away on the server, and cookies are put away on the client's PCs in the content record position. Cookies can not hold various variables,But Session can hold numerous variables.We can set expiry for a cookie,The session just stays dynamic the length of the program is open.Users don't have admittance to the information you put away in Session,Since it is put away in the server. Session is mostly utilized for login/logout reason while cookies utilizing for client movement following.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP
Job Role: Database Administration

Q:

What's the difference between GET() and POST() method?

Answer

We can send 1024 bytes utilizing GET() yet POST() can exchange extensive measure of information and POST is the protected strategy than GET technique .

Report Error

View answer Workspace Report Error Discuss

Subject: PHP
Job Role: Database Administration

Q:

What is the difference between _construct() and _destruct() methods in php?

Answer

These two methods are bulid-in methods  in php. with  construct() we can overwride the parent class method. The inverse of the __construct() PHP capacity while making another class, is the __destruct() technique. The __destruct() technique will consequently keep running, after you've completed with the PHP class.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP
Job Role: Software Architect

Q:

In a certain office, 1/3 of workers are women, 1/2 of the women are married and 1/3 of the married women have children. If 3/4  of the men are married and 2/3  of the married men have children, what part of the workers are without children?

A) 5/18 B) 4/9
C) 11/18 D) 17/36
 
Answer & Explanation Answer: C) 11/18

Explanation:

Let the total number of workers be x. Then, 

 

Number of women = x/3 and number of men = x - x/3  = 2x/3

 

Number of women having children = x/18

 

Number of men having children = x/3

 

Number of workers having children = (x/18) + (x/3) = 7x/18

  

Therefore, workers having no children = x - 7x/18 = 11/18 of all workers.

Report Error

View Answer Report Error Discuss

Filed Under: Arithmetical Reasoning
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

Q:

If it is possible to form a number with the second, the fifth and the eighth digits of the number 31549786, which is the perfect square of a two - digit even number, which of the following will be the second digit of that even number ?

A) 1 B) 4
C) 6 D) None of these
 
Answer & Explanation Answer: B) 4

Explanation:

The 2nd, 5th and 8th digits of the number 31549786 are 1, 9 and 6 respectively.

 

The perfect square of a two - digit even number, formed using the digits 1, 9 and 6 is 196.

And,  14 x 14 = 196 

 

So, the required even number is 14. Clearly, its second digit is 4.

 

Hence, the answer is (b).

Report Error

View Answer Report Error Discuss

Q:

What 5 - digit number has the following features :

If we put the numeral 1 at the beginning, we get a number three times smaller than if we put the numeral 1 at the end of the number?

Answer

Let the 5 digit number be represented by abcde.


Then the 6 digit number, 1abcde x 3 = abcde1 (another 6 digit number)


Now let Y = abcde


Then (100000 + Y) x 3 = (Y x 10) + 1


300000 + 3Y = 10Y + 1


7Y = 299999


Y = 299999 ÷ 7 = 42857

Report Error

View answer Workspace Report Error Discuss

Subject: Math Puzzles

Q:

In a Certain Country 1/2 of 5 = 3. If the same proportion holds, what is the value of 1/3 of 10 ?

A) 4 B) 6
C) 8 D) 10
 
Answer & Explanation Answer: A) 4

Explanation:

Let 1310 = x 

=> 3x = 10

 

Given that 125=3

 

Therefore, 52x = 10 

 

=> x = 10/3 = 4.

Report Error

View Answer Report Error Discuss

Filed Under: Math Puzzles
Exam Prep: CAT , Bank Exams , AIEEE
Job Role: Bank Clerk

Q:

Replace each letter for a unique digit so that the equation is correct

Answer

(1+9+6+8+3) x (1+9+6+8+3) x (1+9+6+8+3) = 19683

Report Error

View answer Workspace Report Error Discuss

Subject: Math Puzzles Exam Prep: Bank Exams , AIEEE
Job Role: Bank Clerk