Examlex

Solved

What Is the Output of the Following Code Snippet

question 120

Multiple Choice

What is the output of the following code snippet?
Int s1 = 20;
If (s1 <= 20)
{
System.out.print("1") ;
}
If (s1 <= 40)
{
System.out.print("2") ;
}
If (s1 <= 20)
{
System.out.print("3") ;
}


Definitions:

Cognitive Therapy

A form of psychotherapy that emphasizes the identification and modification of dysfunctional thinking patterns to alter emotions and behavior.

Systematic Desensitization

A type of exposure therapy that associates a pleasant relaxed state with gradually increasing anxiety-triggering stimuli. Commonly used to treat phobias.

Counterconditioning

A behavior therapy technique that involves replacing an unwanted or negative response to a stimulus with a positive one.

Psychological Disorders

Psychological disorders are patterns of behavioral or psychological symptoms that impact multiple areas of life and/or create distress for the individual suffering from them.

Related Questions