ABAP Programming Fundamentals

Test your knowledge of ABAP programming concepts including events, system variables, and control statements.

10 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

import java.lang.*; class A { public static void main(String[] args) { String s1=new String("TCS"); String s2="TCS"; System.out.println(s1==s2); System.out.println(s1.equals(s2)); } } What is the Result?

  1. Compile time error
  2. false true
  3. true false
  4. true true
Question 2 Multiple Choice (Single Answer)

import java.lang.*; class A { public static void main(String[] args) { String s1=new String("TCS"); String s2=s1; System.out.println(s1==s2); System.out.println(s1.equals(s2)); } } What is the Result?

  1. true true
  2. true false
  3. false true
  4. Exception
Question 3 Multiple Choice (Single Answer)

import java.lang.*; class A { public static void main(String[] args) { StringBuilder s1="TCS"; String s2=new String("TCS"); System.out.println(s1==s2); System.out.println(s1.equals(s2)); } } What is the Result?

  1. true false
  2. false true
  3. Compile Error
  4. false false
Question 4 Multiple Choice (Single Answer)

import java.lang.*; class A { public static void main(String[] args) { StringBuilder s1=new StringBuilder("TCS"); StringBuilder s2=new StringBuilder("TCS"); System.out.println(s1==s2); System.out.println(s1.equals(s2)); } } What is the Result?

  1. false true
  2. false false
  3. true false
  4. true true
Question 5 Multiple Choice (Single Answer)

import java.lang.*; class A { public static void main(String[] args) { StringBuilder s1=new StringBuilder("TCS"); StringBuilder s2=s1; System.out.println(s1==s2); System.out.println(s1.equals(s2)); } } What is the Result?

  1. false true
  2. false false
  3. true true
  4. true false
Question 6 Multiple Choice (Single Answer)

What is default event in ABAP program events?

  1. Initialization
  2. Start of Selection.
  3. At Selection-screen output
  4. At Selection-screen.
Question 7 Multiple Choice (Single Answer)

Which event will trigger if program finds STOP statement

  1. Start-of- selection
  2. top-of -page
  3. End-of- Selection.
  4. End- of- page
Question 8 Multiple Choice (Single Answer)

What is system variable to handle the function codes?

  1. SY-INDEX
  2. SY-UCOMM
  3. SY-FDPOS
  4. SY-STEPL
Question 9 Multiple Choice (Single Answer)

Which is control break statement?

  1. AT LAST
  2. AT TOP
  3. AT NEW OF
  4. AT END
Question 10 Multiple Choice (Single Answer)

What is output of the this code? REPORT ZTEST. field-symbols: type c. = '10'. write:/ .

  1. 10
  2. Syntax error
  3. Short dump
  4. No Value