Details for last question I post

the original code for last question I post(about the DataInputStream& EOFException) is here, thanks if anyone will bother to read it
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.io.* ;
public class MasterMindServer
     public MasterMindServer()
          try{
               ServerSocket serverSocket=new ServerSocket(8000);
               Socket socket=serverSocket.accept();
               HandleAClient thread=new HandleAClient(socket);
               thread.start();
               }catch(IOException e){System.out.println("Error:"+e.toString());}
     public static void main(String args[])
          new MasterMindServer();
//inner class
class HandleAClient extends Thread
     DataOutputStream out;
     DataInputStream in;
     BufferedReader fromFile;
     private Socket socket;
     String line;
     public HandleAClient(Socket socket)
          this.socket=socket;
     public void run()
          int x,o;
          try{
                 out=new DataOutputStream(socket.getOutputStream());
               in=new DataInputStream(socket.getInputStream());
               fromFile=new BufferedReader(new FileReader("colorcode.txt"));
              while((line=fromFile.readLine())!=null)
                for(int i=0;i<10;i++)
                  String t=in.readUTF();
                  x=check_column(t);
                   System.out.println(x);
                   o=check_color(t);
                   System.out.println(o);
                   out.writeInt(x);
                   out.writeInt(o);
                   if(x==6) break;
                 out.writeUTF(line);
               socket.close();
               System.out.println("close");
         }catch(IOException e){
         System.out.println("Error:"+e.toString());}
     public int check_column(String s)
          String str;
          str=s;
          int count=0;
          for(int i=0;i<6;i++)
               if(s.charAt(i)==line.charAt(i))
               count++;
          return count;
     public int check_color(String s)
          String str;
          str=s;
          int count=0;
          for(int i=0;i<6;i++)
               if((line.indexOf(s.charAt(i))!=-1)&&(line.charAt(i)!=s.charAt(i)))
               count++;
          return count;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.io.* ;
public class MasterMindClient extends JFrame implements MouseListener,ActionListener
  /** Default constructor */
  //keep track of the row (or trial) and column number
  int trial_num, col_now ;
  Socket socket;
  int count[]={5,5,5,5,5,5};
JPanel A[]  = new JPanel[10];
  JPanel B1[] = new JPanel[10];
  JPanel B2[] = new JPanel[10] ;
  JPanel notice = new JPanel() ;
  JPanel sub_notice = new JPanel();
  JPanel D1, D2 ;
  static JTextField [][]color = new JTextField[10][6] ;
  static JTextField [][]Output = new JTextField[10][2];
  static JTextField [][]Answer = new JTextField[1][6] ;
  static JButton []ok = new JButton[10];  
  JLabel L1 = new JLabel("Click the textfield to change color");
  JLabel L2 , L3, L4 ;
  String colorRange="BCGRYW";
  Color colorName[]={Color.black,Color.cyan,Color.green,Color.red,Color.yellow,Color.white};
  String temp ;
public MasterMindClient() {
    // initialize
    trial_num = 0;
    col_now = 0;
    //sub_notice is Panel where the heading labels are placed
    sub_notice.setLayout(new GridLayout(1,3)) ;
    L2 = new JLabel("  ") ;
    L3 = new JLabel("X");
    L3.setHorizontalAlignment(JTextField.CENTER);
    L4 = new JLabel("O");
    L4.setHorizontalAlignment(JTextField.CENTER);
    L3.setToolTipText("matching color and column");
    L4.setToolTipText("matching color but not matching column" );
    sub_notice.add(L2);
    sub_notice.add(L3);
    sub_notice.add(L4);
    notice.setLayout(new GridLayout(1,2)) ;
    notice.add(L1) ;
    notice.add(sub_notice) ;
    // Get the content pane of the frame
    Container c = getContentPane();
    // Set GridLayout, 4 rows, 3 columns, and gaps 5 between
    // components horizontally and vertically
    c.setLayout(new GridLayout(12, 1, 5, 5));
    c.add(notice);
     JPanel Display = new JPanel() ;
     Display.setLayout(new GridLayout(1,2,5,5)) ;
   //create a Panel for each row to accept use input
   // color[][] textfield is where the user input
   // Output[][] is where to display the number of X and O
    for (int i = 0; i <= A.length-1 ; i++)
    A[i] = new JPanel() ;
    A.setLayout(new GridLayout(1, 2,10,10));
B1[i] = new JPanel();
B1[i].setLayout(new GridLayout(1,6,5,5)) ;
B2[i] = new JPanel();
B2[i].setLayout(new GridLayout(1,3,5,5)) ;
for (int j = 0; j <= color[i].length-1 ; j++)
color[i][j] = new JTextField() ;
color[i][j].setHorizontalAlignment(JTextField.CENTER);
if (i == 0)
{color[i][j].setEditable(true) ;
else
{color[i][j].setEditable(false);
color[i][j].addMouseListener(this);
B1[i].add(color[i][j]) ;
} // j loop
ok[i] = new JButton("SEND");
if(i==0)
     ok[i].setEnabled(true);
else
     ok[i].setEnabled(false);
ok[i].addActionListener(this);
B2[i].add(ok[i]) ;
Output[i][0] = new JTextField();
Output[i][1] = new JTextField();
Output[i][0].setEditable(false);
Output[i][1].setEditable(false);
Output[i][0].setHorizontalAlignment(JTextField.CENTER);
Output[i][1].setHorizontalAlignment(JTextField.CENTER);
B2[i].add(Output[i][0]);
B2[i].add(Output[i][1]);
A[i].add(B1[i]);
A[i].add(B2[i]) ;
c.add(A[i]) ;
} //for i loop
//D panel is where we store the answer[][]
D1 = new JPanel();
D1.setLayout(new GridLayout(1,6)) ;
D2 = new JPanel();
D2.setLayout(new GridLayout(1,2)) ;
for (int j = 0; j <= Answer[0].length-1 ; j++)
Answer[0][j] = new JTextField(0) ;
Answer[0][j].setHorizontalAlignment(JTextField.CENTER);
Answer[0][j].setEditable(false) ;
D1.add(Answer[0][j]) ;
Display.add(D1) ;
Display.add(D2) ;
c.add(Display) ;
public void runClient()
     try
{      socket=new Socket("localhost",8000);
DataInputStream in=new DataInputStream(socket.getInputStream());
int x=0;
int o=0;
try{
while(true)
     while(trial_num<10)
          x=in.readInt();
          //System.out.println(x);
          Output[trial_num][0].setText(String.valueOf(x));
          o=in.readInt();
          //System.out.println(o);
          Output[trial_num][1].setText(String.valueOf(o));
          for(int i=0;i<6;i++)
          color[trial_num][i].setEnabled(false);
     ok[trial_num].setEnabled(false);
     trial_num++;
     col_now=0;
     if(x==6)
               JOptionPane.showMessageDialog( null, "Congratulation, you've won the game !! " );
               //ok[trial_num].setEnabled(false);
break;
     if(trial_num<10)
     {  for(int i=0;i<6;i++)
          color[trial_num][i].setEditable(true);
          count[i]=5;
     ok[trial_num].setEnabled(true);
     if(x!=6)
     {  JOptionPane.showMessageDialog( null, "sorry you did not win the game");
     temp=in.readUTF();
     System.out.println(temp);
     //temp=in.readUTF();
     //System.out.println("can");
     for(int i=0;i<6;i++)
     System.out.println(i);
     char a=temp.charAt(i);
     int index=colorRange.indexOf(String.valueOf(a));
     Answer[0][i].setBackground(colorName[index]);
     trial_num=0;
     for(int j=0;j<10;j++)
     for(int k=0;k<6;k++)
     color[j][k].setBackground(Color.white);
     for(int j=0;j<10;j++)
     for(int k=0;k<2;k++)
     Output[j][k].setText(null);
     for(int i=0;i<6;i++)
          color[trial_num][i].setEditable(true);
          count[i]=5;
     ok[0].setEnabled(true);
     catch(EOFException em){}
     }catch(IOException ex){
          System.out.println("Error:"+ex.toString());}
public void mouseClicked(MouseEvent e)
for(int i=0;i<6;i++)
     if(e.getComponent()==color[trial_num][i])
     {         col_now=i;
     break;
count[col_now]=(count[col_now]+1)%6;
color[trial_num][col_now].setBackground(colorName[count[col_now]]);
public void mouseEntered(MouseEvent e)
public void mouseExited(MouseEvent e)
public void mouseReleased(MouseEvent e)
public void mousePressed(MouseEvent e)
public void actionPerformed(ActionEvent e)
     try{
          send();
     }catch(IOException et){System.out.println("Error:"+et);}
public void send()throws IOException
     DataOutputStream out=new DataOutputStream(socket.getOutputStream());
     char cbuf[]=new char[6];
     for(int i=0;i<6;i++)
          cbuf[i]=colorRange.charAt(count[i]);
System.out.println(cbuf);
     out.writeUTF(new String(cbuf));
/** Main method */
public static void main(String[] args) {
MasterMindClient frame = new MasterMindClient();
frame.setTitle("Master Mind");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setLocation(300,300) ;
frame.setSize(450, 450);
frame.setVisible(true);
frame.runClient();
} // end of class

I notice that you have several hundred lines of GUI code there. None of them have anything to do with the problem you are trying to solve. So put them all aside and write a SMALL test program that does nothing but the little loop you are having a problem with. Shouldn't be more than 20 lines of code.

Similar Messages

  • SR and RMA details for last 1 year

    Hi All,
    I need to download SR and RMA requests for last 1 year from my Company. What I am getting in PMC is for last quarter only. Please help.

    Hello,
    In order to view the SR and RMA requests for an entire year, you will need to download multiple reports.  You can do this in the PMC scorecard page. There are 2 options to complete this:
    1. Select the Quarter Month from the drop down and download the SR and RMA reports. You will need to select the quarter month option multiple times to receive 4 quarterly reports for each metric.
    2. Select the below option on the bottom of PMC Scorecard
    >  request multiple reports
    To make multiple selections,Ctrl-Click(Win) or  Cmd-Click(mac).
    Select Month(s): and  Select Metric(s):
    The reports will be emailed within 24 hours.  You will need to combine all reports in order to have one year of data.
    Regards,
    Jill

  • Installing Update Rollup 4 for R2. Question of post installation task

    I will be installing Update Rollup 4 for Service Manager 2012 R2 on our Orchestrator, Data Warehouse, Service Manager and Portal Server as well as updating the client Consoles.
    Following MS article
    http://support2.microsoft.com/kb/2989601/en-us?sd=rss#install.
    A bit confused about the Post installation tasks. Particularly the following:
    Resynchronize System Center Operations Manager mount point data
    To resynchronize Operations Manager mount point data after you apply this update, follow these steps:
    Disable all the Operations Manager configuration item (CI) connectors in the Service Manager console.
    In Windows PowerShell, check the current execution policy by running the following cmdlet:
    Get-ExecutionPolicy
    If the current execution policy is Restricted, set it to
    Remotesigned by running the following command:
    Set-ExecutionPolicy –force RemoteSigned
    Find the following PowerShell script in your System Center 2012 R2 installation directory:
    OMCIConnector_SyncMetadata_UpdateTimestamp.ps1
    By default, you should find this file in the following location:
    C:\Program Files\Microsoft System Center 2012 R2\Service Manager\PowerShell
    Run the following command from the Primary Management server:
    PowerShell .\OMCIConnector_SyncMetadata_UpdateTimestamp.ps1
    Revert the execution policy to the original value that it had in step 2.
    Enable and synchronize the relevant Operations Manager CI connectors.
    Make sure that all the mount point data is populated in Service Manager.
    I am guessing they are talking about the System Center Configuration Manager Connector but not sure. We don't have a Connector for SCOM. If by OMCIConnector they mean SCOM, then I don't need to worry about this.  If would be nice if they would tell
    you why you are doing this. I don't even know what "Mount Point Data" is.
    Does anyone know if it would cause any problems if I skipped this step? I hate doing stuff when I don't know why I am doing it. For example, step 8 "Make sure that all the mount point data is populated in Service Manager."
    What does that even mean?
    Also, I cannot even find the PowerShell script they are talking about in the C:\Program Files\Microsoft System Center 2012\Service Manager\Powershell folder so are they talking about SCOM or SCCM?

    All of the steps listed refer to the Operations Manager connections. none of these steps relate to the Config Manager connector.  If you are not using SCOM, or don't have a SCOM connector, then you can safely ignore these steps. 

  • Request for Admin-BBY Sticky Post for new Trade In & Trade Up Samsung Galaxy Tab S $50 Offer Details

    Considering some of the problems that people have had in trading in their qualifying working tablets not in Best Buy's trade-in system for a minimum $50 Best Buy Gift Card during the ending Surface 3 promotion... would it be possible for Admin BBY to post a new sticky message for the new promo starting today for trading in any non Nook/ereader tablet without screen/water damage that turns on for a $50 gift card and coupon for $50 off the Samsung Galaxy Tab S? It would be valuable to know if any of the terms of the trade-in have changed, and to head off questions about the inability to use more than one coupon per tablet purchase before you are inundated with complaints.. 
    Thanks in advance! Nothing gets me into a brick and mortar store more assuredly than the promise of a discount off a coveted new piece of technology!

    Hello StellaDallas-
    It’s definitely concerning when customers are experiencing disappointments with one of our promotions and I can certainly understand your desire to see something posted on our community to help head off any future issues.
    The stores are provided with all the information that they need to process these promotions correctly and hopefully, we have also learned from any past mistakes as well when putting them together.  Right now, you can find all the details of the Samsung Tab 3 trade-in promotion here.  From what I can see, it seems to cover all the details of the promotion very well, including stating that only one coupon can be used per transaction.
    Otherwise, as far as I can tell, the promotion is identical to the Surface 3 promotion, with the caveat that the trade-in must be used towards the purchase of a Samsung Galaxy Tab S.
    Thanks for connecting with us!
    Bill|Senior Social Media Specialist | Best Buy® Corporate
     Private Message

  • How do I search for a previous question I posted?

    Hi
    How do I find older questions I had posted on the forum/community?
    I had posted a question a few months prior and had a response.  I'd like to look up that resonse again, but I cannot find it in my history.
    The post is only a few months old, but does not show up in the history of my posts (that I can find).
    How do I search for ALL of my old posts? 

    Click Your Stuff > DIscusssions. This should list all the threads you have contributed to, most recently active first, and paged back to your earliest post.
    If you use the filter for Open Questions or Answered Questions you should see the threads that you started, still open and marked answered respectively.
    If your thread really has disappeared then the usual explanation was that something contentious got added to it and the hosts deceived to evaporate the whole thing.
    tt2

  • Report for Posting Rule details for Functions/items

    Hello
    Is there a standard program in SAP to take a report or listing of extract in MS Excel of the posting rule details configuration settings in SAP-JVA.  I am fairly certain there is a program to extract the details in Excel but I am not sure what is the name of that program and how to use it. I appreciate any ABAP programmer or expert can guide me how to go about this listing.
    Thanks

    Hi Raghavendra,
    In order to do postings in JVA, we create posting methods and under that Posting method we have to create and configure posting rules. Under the posting method, there are SAP JVA processes or functions and function items that are used to create the posting rules. The posting rules details are specified for each function and function item combination and involve the specification of Recovery indicator along with posting keys, SE indicator and billing indicator.
    I am not convinced that the standard codes in my system for posting keys, recovery indicators and billing indicators are exactly the same as the default settings and I need to check it along with the posting rule details.
    Please see the screenshots attached to give you an idea. I am looking for an ABAP program or report program to take out a listing of these posting rules details from the system.
    Spro - JVA - Posting rules fig 0
    Posting method / Posting rules screen - fig 1
    Posting rule item codes for function CCOP
    Posting rule details for function/item CCOP/AC

  • Thanks for the idea. One last question..

    Thanks for the replies, setting it to passive seemed to work
    as I can now upload to my host. Just one last question, I've
    searched the video knowledge base looking for a video on how to use
    the 'Starter Pages' within Dreamweaver to no avail. When I try I
    always get the same message: 'Dreamweaver stores templates in the
    root folder of a site, but there are no sites defined. Please add a
    site.' I have my site all layed out in Dreamweavers FTP, I can
    upload and download with it and still Dreamweaver gives me this.
    Any ideas?
    Thanks once again all

    Using FTP & RDS Server for your site means that you will
    not be able to use
    DW's Templates or Library items. It's usually a very bad
    idea, to boot.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "John Waller" <[email protected]>
    wrote in message
    news:g1a9mi$qtn$[email protected]..
    > F1 Dreamweaver Help files
    >
    > Working with Dreamweaver Sites > Setting up a
    Dreamweaver site
    >
    > --
    > Regards
    >
    > John Waller

  • Slow Wi fi for last 2-3 months

    Bt Infinity - Home Hub  3.
    Superb wi fi speed since new router delivered around 2 years ago until...............2-3 months ago.   Since then download speed anything from 5mbps to 0.19.   Delivery speed to house from the exchange is 18- 19 Mbps even though it was sold by BT as 22-23 Mbps
    So called BT several times  - they remotely re-set the home hub and router or told me to do it manually - speed was better for a while but then just gradually drops off and dies altogether on the Dell PC whereas the laptop has faster speed even when the laptop is sat right next to the Dell PC which has virtually nothing.
    BT engineer has been round and can find nothing wrong although did admit that BT always boost signal strength around the time of the appointment .  Nothing has changed in the house, position of router upstairs and Dell downstairs is same as it has been for last few years.
    ? Faulty dongle (which we are  investigating)?  Currently  use TP Link wireless N adaptor, but no better than when we had the Dell dongle thing that came with the PC stuck in the back  - use or is there some thing odd about the router all of a sudden - do these things wear out?  BT have been of little help other than "re-set your router" - but we rarely (if ever) had to in the past.
    Faulty BT router for wi-fi or faulty PC?  or its wi-fi dongle?   Any suggestions?  Been going on for weeks and weeks now.
    Many Thanks in advance
    Solved!
    Go to Solution.

    Hi OldgrumpyB,
    Thanks for posting back.
    I've checked our email queue and we have received your details.  You're very close to the top so it won't be long until you've received word back to help sort things out.
    All the best,
    Robbie
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • How can i get my call history for last year? Skype...

    Hi,
    I am trying to sponser my wife to Canada. They are asking for communication details of last year. I tried on this site and i could only get the details of last 6 months.
    I am really in a hurry since they want me to send them with in two weeks.
    Highly appriciate if someone can help me.
    Thank you. 
    CA

    Hi, Praveensam2, and welcome to the Community,
    Please note that call history is available only on the computer or laptop where the Skype files are located.  You might see if the chat logging freeware software offered by NirSoft may be of use to you.  http://www.nirsoft.net/utils/skype_log_view.html
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Can any one give me answer for these questions

    Can any one give me answer for these questions. I  got these questions from net plz post the answers you know
    ABAP CERTIFICATION QUESTIONS
    1. If a table does not have MANDT as part of the primary key, it is ____.
    A: A structure
    B: Invalid
    C: Client-independent
    D: Not mandatory
    2. In regard to CALL, which of the following is NOT a valid statement?
    A: CALL FUNCTION
    B: CALL SCREEN
    C: CALL TRANSACTION
    D: CALL PROGRAM
    3. Name the type of ABAP Dictionary table that has these characteristics:
    Same number of fields as the database table
    Same name as database table
    Maps 1:1 to database table
    A: Pooled
    B: Cluster
    C: Transparent
    D: View
    4. An event starts with an event keyword and ends with:
    A: Program execution.
    B: END-OF-EVENT.
    C: Another event keyword.
    D: END-EVENT.
    5. What is the system field for the current date?
    A: SY-DATUM
    B: SY-DATE
    C: SY-DATID
    D: SY-SDATE
    6. The following code indicates:
    SELECT fld1 fld2 FROM tab1 APPENDING TABLE itab
    WHERE fld1 IN sfld1.
    A: Add rows to the existing rows of itab.
    B: Add rows to itab after first deleting any existing rows of itab.
    C: Select rows from tab1 for matching itab entries.
    D: Nothing, this is a syntax error.
    7. You may change the following data object as shown below so that it equals 3.14.
    CONSTANTS: PI type P decimals 2 value '3.1'.
    PI = '3.14'.
    A: True
    B: False
    8. The SAP service that ensures data integrity by handling locking is called:
    A: Update
    B: Dialog
    C: Enqueue/Dequeue
    D: Spool
    9. Which of these sentences most accurately describes the GET VBAK LATE. event?
    A: This event is processed before the second time the GET VBAK event is processed.
    B: This event is processed after all occurrences of the GET VBAK event are completed.
    C: This event will only be processed after the user has selected a basic list row.
    D: This event is only processed if no records are selected from table VBAK.
    10. Which of the following is not a true statement in regard to a hashed internal table type?
    A: Its key must always be UNIQUE.
    B: May only be accessed by its key.
    C: Response time for accessing a row depends on the number of entries in the table.
    D: Declared using internal table type HASHED TABLE.
    11. TO include database-specific SQL statements within an ABAP program, code them between:
    A: NATIVE SQL_ENDNATIVE.
    B: DB SQL_ENDDB.
    C: SELECT_ENDSELECT.
    D: EXEC SQL_ENDEXEC.
    12. To measure how long a block of code runs, use the ABAP statement:
    A: GET TIME .
    B: SET TIME FIELD .
    C: GET RUN TIME FIELD .
    D: SET CURSOR FIELD .
    13. When a secondary list is being processed, the data of the basic list is available by default.
    A: True
    B: False
    14. Given:
    DATA: BEGIN OF itab OCCURS 10,
    qty type I,
    END OF itab.
    DO 25 TIMES. itab-qty = sy-index. APPEND itab. ENDDO.
    LOOP AT itab WHERE qty > 10.
    WRITE: /1 itab-qty.
    ENDLOOP.
    This will result in:
    A: Output of only those itab rows with a qty field less than 10
    B: Output of the first 10 itab rows with a qty field greater than 10
    C: A syntax error
    D: None of the above
    15. After a DESCRIBE TABLE statement SY-TFILL will contain
    A: The number of rows in the internal table.
    B: The current OCCURS value.
    C: Zero, if the table contains one or more rows.
    D: The length of the internal table row structure.
    16. You may declare your own internal table type using the TYPES keyword.
    A: True
    B: False
    17. After adding rows to an internal table with COLLECT, you should avoid adding more rows with APPEND.
    A: True
    B: False
    18. Which of the following is not a component of control break processing when looping at an internal table?
    A: AT START OF
    B: AT FIRST
    C: AT LAST
    D: AT NEW
    19. A dictionary table is made available for use within an ABAP program via the TABLES statement.
    A: True
    B: False
    20. Which of the following would be best for hiding further selection criteria until a function is chosen?
    A: AT NEW SELECTION-SCREEN
    B: SELECTION-SCREEN AT LINE-SELECTION
    C: SUBMIT SELECTION-SCREEN
    D: CALL SELECTION-SCREEN
    21. What must you code in the flow logic to prevent a module from being called unless a field contains a non-initial value (as determined by its data type)?
    A: ON INPUT
    B: CHAIN
    C: FIELD
    D: ON REQUEST
    22. The AT USER-COMMAND event is triggered by functions defined in the ____.
    A: screen painter
    B: ABAP report
    C: menu painter status
    D: ABAP Dictionary
    23. In regard to a function group, which of the following is NOT a true statement?
    A: Combines similar function modules.
    B: Shares global data with all its function modules.
    C: Exists within the ABAP workbench as an include program.
    D: Shares subroutines with all its function modules.
    24. In regard to SET PF-STATUS, you can deactivate unwanted function codes by using ____.
    A: EXCLUDING
    B: IMMEDIATELY
    C: WITHOUT
    D: HIDE
    25. In regard to data transported in PAI when the FIELD statement is used, which of the following is NOT a true statement?
    A: Fields in PBO are transported directly from PAI.
    B: Fields with identical names are transported to the ABAP side.
    C: Fields not defined in FIELD statements are transported first.
    D: Fields that are defined in FIELD statements are transported when their corresponding module is called.
    26. The order in which an event appears in the ABAP code determines when the event is processed.
    A: True
    B: False
    27. A field declared as type T has the following internal representation:
    A: SSMMHH
    B: HHMMSS
    C: MMHHSS
    D: HHSSMM
    28. Which of the following is NOT a component of the default standard ABAP report header?
    A: Date and Time
    B: List title
    C: Page number
    D: Underline
    29. Assuming a pushbutton with function code 'FUNC' is available in the toolbar of a list report, what event is processed when the button is clicked?
    A: AT USER-COMMAND.
    B: AT PFn.
    C: AT SELECTION-SCREEN.
    D: END-OF-SELECTION.
    30. In regard to field selection, what option of the SELECT statement is required?
    A: FOR ALL ENTRIES
    B: WHERE
    C: INTO
    D: MOVE-CORRESPONDING
    31. The following program outputs what?
    report zjgtest1
    write: /1 'Ready_'.
    PARAMETER: test.
    INITIALIZATION.
    write: /1 'Set_'.
    START-OF-SELECTION.
    write: /1 'GO!!'.
    A: Set_ GO!! (each on its own line)
    B: Set_ Ready_ GO!! (all on their own lines)
    C: Ready_ GO!! (each on its own line)
    D: Ready_ Set_ GO!! (all on their own lines)
    32. To declare a selection criterion that does not appear on the selection screen, use:
    A: NO-DISPLAY
    B: INVISIBLE
    C: MODIF ID
    D: OBLIGATORY
    33. An internal table that is nested within another internal table should not contain a header line.
    A: True
    B: False
    34. What is output by the following code?
    DATA: BEGIN OF itab OCCURS 0, letter type c, END OF itab.
    itab-letter = 'A'. APPEND itab. itab-letter = 'B'. APPEND itab.
    itab-letter = 'C'. APPEND itab. itab-letter = 'D'. APPEND itab.
    LOOP AT itab.
    SY-TABIX = 2.
    WRITE itab-letter.
    EXIT.
    ENDLOOP.
    A: A
    B: A B C D
    C: B
    D: B C D
    35. To select all database entries for a certain WHERE clause into an internal table in one step, use
    A: SELECT_INTO TABLE itab_
    B: SELECT_INTO itab_
    C: SELECT_APPENDING itab
    D: SELECT_itab_
    36. After a successful SELECT statement, what does SY-SUBRC equal?
    A: 0
    B: 4
    C: 8
    D: Null
    37. This selection screen syntax forces the user to input a value:
    A: REQUIRED-ENTRY
    B: OBLIGATORY
    C: DEFAULT
    D: SELECTION-SCREEN EXCLUDE
    38. If the following code results in a syntax error, the remedy is:
    DATA: itab TYPE SORTED TABLE OF rec_type WITH UNIQUE KEY field1
    WITH HEADER LINE.
    itab-field1 = 'Company'. itab-field2 = '1234'. INSERT TABLE itab.
    itab-field1 = 'Bank'. itab-field2 = 'ABC'. INSERT TABLE itab.
    SORT itab.
    LOOP AT itab.
    write: /1 itab-field1, itab-field2.
    ENDLOOP.
    A: There is no syntax error here
    B: Remove the SORT statement
    C: Change INSERT to APPEND
    D: Add a WHERE clause to the loop
    39. If this code results in an error, the remedy is:
    SELECT fld1 fld2 FROM tab1 WHERE fld3 = pfld3.
    WRITE: /1 tab1-fld1, tab1-fld2.
    ENDSELECT.
    A: Add a SY-SUBRC check.
    B: Change the WHERE clause to use fld1 or fld2.
    C: Remove the /1 from the WRITE statement.
    D: Add INTO (tab1-fld1, tab1-fld2).
    40. When modifying an internal table within LOOP AT itab. _ ENDLOOP. you must include an index number.
    A: True
    B: False
    41. To allow the user to enter values on the screen for a list field, use:
    A: OPEN LINE.
    B: SET CURSOR FIELD.
    C: WRITE fld AS INPUT FIELD.
    D: FORMAT INPUT ON.
    42. Before a function module may be tested, it must first be:
    A: Linked
    B: Authorized
    C: Released
    D: Active
    43. To include a field on your screen that is not in the ABAP Dictionary, which include program should contain the data declaration for the field?
    A: PBO module include program
    B: TOP include program
    C: PAI module include program
    D: Subroutine include program
    44. If a table contains many duplicate values for a field, minimize the number of records returned by using this SELECT statement addition.
    A: MIN
    B: ORDER BY
    C: DISTINCT
    D: DELETE
    45. The system internal table used for dynamic screen modification is named:
    A: ITAB
    B: SCREEN
    C: MODTAB
    D: SMOD
    46. Within the source code of a function module, errors are handled via the keyword:
    A: EXCEPTION
    B: RAISE
    C: STOP
    D: ABEND
    47. Which system field contains the contents of a selected line?
    A: SY-CUCOL
    B: SY-LILLI
    C: SY-CUROW
    D: SY-LISEL
    48. The following statement writes what type of data object?
    WRITE: /1 'Total Amount:'.
    A: Text literal
    B: Text variable
    C: In-code comment
    D: Text integer
    49. For the code below, second_field is of what data type?
    DATA: first_field type P, second_field like first_field.
    A: P
    B: C
    C: N
    D: D
    50. Which of the following describes the internal representation of a type D data object?
    A: DDMMYYYY
    B: YYYYDDMM
    C: MMDDYYYY
    D: YYYYMMDD
    51. A BDC program is used for all of the following except:
    A: Downloading data to a local file
    B: Data interfaces between SAP and external systems
    C: Initial data transfer
    D: Entering a large amount of data
    52. In regard to PERFORM, which of the following is NOT a true statement?
    A: May be used within a subroutine.
    B: Requires actual parameters.
    C: Recursive calls are allowed in ABAP.
    D: Can call a subroutine in another program.
    53. What is the transaction code for the ABAP Editor?
    A: SE11
    B: SE38
    C: SE36
    D: SE16
    54. In regard to HIDE, which of the following is NOT a true statement?
    A: Saves the contents of variables in relation to a list line's row number.
    B: The hidden variables must be output on a list line.
    C: The HIDE area is retrieved when using the READ LINE statement.
    D: The HIDE area is retrieved when an interactive event is triggered.
    55. Database locks are sufficient in a multi-user environment.
    A: True
    B: False
    56. The complete technical definition of a table field is determined by the field's:
    A: Domain
    B: Field name
    C: Data type
    D: Data element
    57. In regard to LEAVE, which of the following is NOT a true statement?
    A: May be used to return immediately to a calling program.
    B: May be used to stop the current loop pass and get the next.
    C: May be used to start a new transaction.
    D: May be used to go to the next screen.
    58. The following code indicates:
    SELECT fld6 fld3 fld2 fld1 FROM tab1 INTO CORRESPONDING FIELDS OF TABLE itab
    WHERE fld3 = pfld3.
    A: The order of the fields in itab does not matter.
    B: Fill the header line of itab, but not the body.
    C: Table itab can only contain fields also in table tab1.
    D: None of the above.
    59. The ABAP statement below indicates that the program should continue with the next line of code if the internal table itab:
    CHECK NOT itab[] IS INITIAL.
    A: Contains no rows
    B: Contains at least one row
    C: Has a header line
    D: Has an empty header line
    60. What will be output by the following code?
    DATA: BEGIN OF itab OCCURS 0, fval type i, END OF itab.
    itab-fval = 1. APPEND itab.
    itab-fval = 2. APPEND itab.
    FREE itab.
    WRITE: /1 itab-fval.
    A: 2
    B: 0
    C: blank
    D: 1
    61. To allow the user to enter a range of values on a selection screen, use the ABAP keyword:
    A: DATA.
    B: RANGES.
    C: PARAMETERS.
    D: SELECT-OPTIONS.
    62. If an internal table is declared without a header line, what else must you declare to work with the table's rows?
    A: Another internal table with a header line.
    B: A work area with the same structure as the internal table.
    C: An internal table type using the TYPES statement.
    D: A PARAMETER.
    63. Assuming an internal table contains 2000 entries, how many entries will it have after the following line of code is executed?
    DELETE itab FROM 1500 TO 1700.
    A: This is a syntax error.
    B: 1801
    C: 1800
    D: 1799
    64. To remove lines from a database table, use ____.
    A: UPDATE
    B: MODIFY
    C: ERASE
    D: DELETE
    65. All of the following may be performed using SET CURSOR except:
    A: Move the cursor to a specific field on a list.
    B: Move the cursor to a specific list line.
    C: Move the cursor to a specific pushbutton, activating that function.
    D: Move the cursor to a specific row and column on a list.
    66. When is it optional to pass an actual parameter to a required formal parameter of a function module?
    A: The actual parameter is type C.
    B: The formal parameter contains a default value.
    C: The formal parameter's \"Reference\" attribute is turned on.
    D: It is never optional.
    67. Coding two INITIALIZATION events will cause a syntax error.
    A: True
    B: False
    68. Adding a COMMIT WORK statement between SELECT_ENDSELECT is a good method for improving performance.
    A: True
    B: False
    69. To save information on a list line for use after the line is selected, use this keyword.
    A: APPEND
    B: EXPORT
    C: WRITE
    D: HIDE
    70. To bypass automatic field input checks, include this in PAI.
    A: AT EXIT-COMMAND
    B: ON INPUT
    C: ON REQUEST
    D: LEAVE TO SCREEN 0.
    71. Within a function module's source code, if the MESSAGE_RAISING statement is executed, all of the following system fields are filled automatically except:
    A: SY-MSGTY
    B: SY-MSGNO
    C: SY-MSGV1
    D: SY-MSGWA
    72. The following code indicates:
    REPORT ZLISTTST.
    START-OF-SELECTION.
    WRITE: text-001.
    FORMAT HOTSPOT ON.
    WRITE: text-002.
    FORMAT HOTSPOT OFF.
    AT LINE-SELECTION.
    WRITE / text-003.
    A: Text-002 may not be selected.
    B: The value of text-002 is stored in a special memory area.
    C: Text-002 may be clicked once to trigger the output of text-003.
    D: None of the above.
    73. The ____ type of ABAP Dictionary view consists of one or more transparent tables and may be accessed by an ABAP program using Open SQL.
    A: Database view
    B: Projection view
    C: Help view
    D: Entity view
    74. A concrete field is associated with a field-symbol via ABAP keyword
    A: MOVE
    B: WRITE
    C: ASSIGN
    D: VALUE
    75. The output for the following code will be:
    report zabaprg.
    DATA: char_field type C.
    char_field = 'ABAP data'.
    WRITE char_field.
    A: ABAP data
    B: A
    C: Nothing, there is a syntax error
    D: None of the above
    76. Page footers are coded in the event:
    A: TOP-OF-PAGE.
    B: END-OF-SELECTION.
    C: NEW-PAGE.
    D: END-OF-PAGE.
    77. The event AT SELECTION-SCREEN OUTPUT. occurs before the selection screen is displayed and is the best event for assigning default values to selection criteria.
    A: True
    B: False
    78. The TABLES statement declares a data object.
    A: True
    B: False
    79. Assuming tab1-fld7 is not a key field, how can you prevent reading all the table rows?
    SELECT fld1 fld2 fld3 FROM tab1 INTO (fld4, fld5, fld6)
    WHERE fld7 = pfld7.
    WRITE: /1 fld4, fld5, fld6.
    ENDSELECT.
    A: Take fld7 out of the WHERE clause.
    B: Create an index in the ABAP Dictionary for tab1-fld7.
    C: Use INTO TABLE instead of just INTO.
    D: Take the WRITE statement out of the SELECT_ENDSELECT.
    80. Which of the following is NOT a required attribute when creating an ABAP program?
    A: Application
    B: Title
    C: Status
    D: Type
    81. When creating a transparent table in the ABAP Dictionary, which step automatically creates the table in the underlying database?
    A: Adding technical settings to the table
    B: Checking the table syntax
    C: Saving the table
    D: Activating the table
    82. Within the ABAP program attributes, Type = 1 represents:
    A: INCLUDE program
    B: Online program
    C: Module pool
    D: Function group
    E: Subroutine pool
    83. If this code results in an error, the remedy is:
    SELECT fld1 SUM( fld1 ) FROM tab1 INTO_
    A: Remove the spaces from SUM( fld1 ).
    B: Move SUM( fld1 ) before fld1.
    C: Add GROUP BY f1.
    D: Change to SUM( DISTINCT f1 ).
    84. Which keyword adds rows to an internal table while accumulating numeric values?
    A: INSERT
    B: APPEND
    C: COLLECT
    D: GROUP
    85. Assuming itab has a header line, what will be output by the following code?
    READ TABLE itab INDEX 3 TRANSPORTING field1.
    WRITE: /1 itab-field1, itab-field2.
    A: The contents of the third row's itab-field1.
    B: The contents of the third row's itab-field1 and itab-field2.
    C: The contents of the third row's itab-field2.
    D: Nothing.
    86. The following code indicates:
    SELECTION-SCREEN BEGIN OF BLOCK B1.
    PARAMETERS: myparam(10) type C,
    Myparam2(10) type N,
    SELECTION-SCREEN END OF BLOCK.
    A: Draw a box around myparam and myparam2 on the selection screen.
    B: Allow myparam and myparam2 to be ready for input during an error dialog.
    C: Do not display myparam and myparam2 on the selection screen.
    D: Display myparam and myparam2 only if both fields have default values.
    87. Which statement will sort the data of an internal table with fields FRUIT, QTY, and PRICE so that it appears as follows?
    FRUIT QTY PRICE
    Apples 12 22.50
    Apples 9 18.25
    Oranges 15 17.35
    Bananas 20 10.20
    Bananas 15 6.89
    Bananas 5 2.75
    A: SORT itab DESCENDING BY QTY PRICE.
    B: SORT itab BY PRICE FRUIT.
    C: SORT itab.
    D: SORT itab BY PRICE DESCENDING.
    88. Which keyword adds a line anywhere within an internal table?
    A: APPEND
    B: MODIFY
    C: ADD
    D: INSERT
    89. To read a single line of an internal table, use the following:
    A: LOOP AT itab. _ ENDLOOP.
    B: READ itab.
    C: SELECT SINGLE * FROM itab.
    D: READ TABLE itab.
    90. Which Open SQL statement should not be used with cluster databases?
    A: UPDATE
    B: MODIFY
    C: DELETE
    D: INSERT
    91. To include a field on your screen that is not in the ABAP Dictionary, which include program should contain the data declaration for the field?
    A: PBO module include program
    B: TOP include program
    C: PAI module include program
    D: Subroutine include program
    92. This flow logic statement is used to make multiple fields open for input after an error or warning message.
    A: GROUP
    B: FIELD-GROUP
    C: CHAIN
    D: LOOP AT SCREEN
    93. Given:
    PERFORM subroutine USING var.
    The var field is known as what type of parameter?
    A: Formal
    B: Actual
    C: Static
    D: Value

    ANSWERS :
    1. If a table does not have MANDT as part of the primary key, it is ____.
    A: A structure
    B: Invalid
    C: Client-independent
    D: Not mandatory
    Ans : C
    2. In regard to CALL, which of the following is NOT a valid statement?
    A: CALL FUNCTION
    B: CALL SCREEN
    C: CALL TRANSACTION
    D: CALL PROGRAM
    Ans : D
    3. Name the type of ABAP Dictionary table that has these characteristics:
    Same number of fields as the database table
    Same name as database table
    Maps 1:1 to database table
    A: Pooled
    B: Cluster
    C: Transparent
    D: View
    Ans : C
    4. An event starts with an event keyword and ends with:
    A: Program execution.
    B: END-OF-EVENT.
    C: Another event keyword.
    D: END-EVENT.
    Ans: C
    5. What is the system field for the current date?
    A: SY-DATUM
    B: SY-DATE
    C: SY-DATID
    D: SY-SDATE
    Ans : A
    6. The following code indicates:
    SELECT fld1 fld2 FROM tab1 APPENDING TABLE itab
    WHERE fld1 IN sfld1.
    A: Add rows to the existing rows of itab.
    B: Add rows to itab after first deleting any existing rows of itab.
    C: Select rows from tab1 for matching itab entries.
    D: Nothing, this is a syntax error.
    Ans : B
    7. You may change the following data object as shown below so that it equals 3.14.
    CONSTANTS: PI type P decimals 2 value '3.1'.
    PI = '3.14'.
    A: True
    B: False
    Ans : B
    8. The SAP service that ensures data integrity by handling locking is called:
    A: Update
    B: Dialog
    C: Enqueue/Dequeue
    D: Spool
    Ans : C
    9. Which of these sentences most accurately describes the GET VBAK LATE. event?
    A: This event is processed before the second time the GET VBAK event is processed.
    B: This event is processed after all occurrences of the GET VBAK event are completed.
    C: This event will only be processed after the user has selected a basic list row.
    D: This event is only processed if no records are selected from table VBAK.
    Ans :
    10. Which of the following is not a true statement in regard to a hashed internal table type?
    A: Its key must always be UNIQUE.
    B: May only be accessed by its key.
    C: Response time for accessing a row depends on the number of entries in the table.
    D: Declared using internal table type HASHED TABLE.
    Ans : C
    11. TO include database-specific SQL statements within an ABAP program, code them between:
    A: NATIVE SQL_ENDNATIVE.
    B: DB SQL_ENDDB.
    C: SELECT_ENDSELECT.
    D: EXEC SQL_ENDEXEC.
    Ans : D
    12. To measure how long a block of code runs, use the ABAP statement:
    A: GET TIME .
    B: SET TIME FIELD .
    C: GET RUN TIME FIELD .
    D: SET CURSOR FIELD .
    Ans : C
    13. When a secondary list is being processed, the data of the basic list is available by default.
    A: True
    B: False
    Ans : B
    14. Given:
    DATA: BEGIN OF itab OCCURS 10,
    qty type I,
    END OF itab.
    DO 25 TIMES. itab-qty = sy-index. APPEND itab. ENDDO.
    LOOP AT itab WHERE qty > 10.
    WRITE: /1 itab-qty.
    ENDLOOP.
    This will result in:
    A: Output of only those itab rows with a qty field less than 10
    B: Output of the first 10 itab rows with a qty field greater than 10
    C: A syntax error
    D: None of the above
    Ans : B
    15. After a DESCRIBE TABLE statement SY-TFILL will contain
    A: The number of rows in the internal table.
    B: The current OCCURS value.
    C: Zero, if the table contains one or more rows.
    D: The length of the internal table row structure.
    Ans ; A
    16. You may declare your own internal table type using the TYPES keyword.
    A: True
    B: False
    Ans : A
    17. After adding rows to an internal table with COLLECT, you should avoid adding more rows with APPEND.
    A: True
    B: False
    Ans : A
    18. Which of the following is not a component of control break processing when looping at an internal table?
    A: AT START OF
    B: AT FIRST
    C: AT LAST
    D: AT NEW
    Ans : A
    19. A dictionary table is made available for use within an ABAP program via the TABLES statement.
    A: True
    B: False
    Ans : A
    20. Which of the following would be best for hiding further selection criteria until a function is chosen?
    A: AT NEW SELECTION-SCREEN
    B: SELECTION-SCREEN AT LINE-SELECTION
    C: SUBMIT SELECTION-SCREEN
    D: CALL SELECTION-SCREEN
    Ans : D
    21. What must you code in the flow logic to prevent a module from being called unless a field contains a non-initial value (as determined by its data type)?
    A: ON INPUT
    B: CHAIN
    C: FIELD
    D: ON REQUEST
    Ans : A
    22. The AT USER-COMMAND event is triggered by functions defined in the ____.
    A: screen painter
    B: ABAP report
    C: menu painter status
    D: ABAP Dictionary
    Ans : C
    23. In regard to a function group, which of the following is NOT a true statement?
    A: Combines similar function modules.
    B: Shares global data with all its function modules.
    C: Exists within the ABAP workbench as an include program.
    D: Shares subroutines with all its function modules.
    Ans ; C
    24. In regard to SET PF-STATUS, you can deactivate unwanted function codes by using ____.
    A: EXCLUDING
    B: IMMEDIATELY
    C: WITHOUT
    D: HIDE
    Ans : A
    25. In regard to data transported in PAI when the FIELD statement is used, which of the following is NOT a true statement?
    A: Fields in PBO are transported directly from PAI.
    B: Fields with identical names are transported to the ABAP side.
    C: Fields not defined in FIELD statements are transported first.
    D: Fields that are defined in FIELD statements are transported when their corresponding module is called.
    Ans ; C
    26. The order in which an event appears in the ABAP code determines when the event is processed.
    A: True
    B: False
    Ans : B
    27. A field declared as type T has the following internal representation:
    A: SSMMHH
    B: HHMMSS
    C: MMHHSS
    D: HHSSMM
    Ans : B
    28. Which of the following is NOT a component of the default standard ABAP report header?
    A: Date and Time
    B: List title
    C: Page number
    D: Underline
    Ans ; A
    29. Assuming a pushbutton with function code 'FUNC' is available in the toolbar of a list report, what event is processed when the button is clicked?
    A: AT USER-COMMAND.
    B: AT PFn.
    C: AT SELECTION-SCREEN.
    D: END-OF-SELECTION.
    Ans : A
    30. In regard to field selection, what option of the SELECT statement is required?
    A: FOR ALL ENTRIES
    B: WHERE
    C: INTO
    D: MOVE-CORRESPONDING
    Ans : B
    31. The following program outputs what?
    report zjgtest1
    write: /1 'Ready_'.
    PARAMETER: test.
    INITIALIZATION.
    write: /1 'Set_'.
    START-OF-SELECTION.
    write: /1 'GO!!'.
    A: Set_ GO!! (each on its own line)
    B: Set_ Ready_ GO!! (all on their own lines)
    C: Ready_ GO!! (each on its own line)
    D: Ready_ Set_ GO!! (all on their own lines)
    Ans : C
    32. To declare a selection criterion that does not appear on the selection screen, use:
    A: NO-DISPLAY
    B: INVISIBLE
    C: MODIF ID
    D: OBLIGATORY
    Ans : A
    33. An internal table that is nested within another internal table should not contain a header line.
    A: True
    B: False
    Ans : B
    34. What is output by the following code?
    DATA: BEGIN OF itab OCCURS 0, letter type c, END OF itab.
    itab-letter = 'A'. APPEND itab. itab-letter = 'B'. APPEND itab.
    itab-letter = 'C'. APPEND itab. itab-letter = 'D'. APPEND itab.
    LOOP AT itab.
    SY-TABIX = 2.
    WRITE itab-letter.
    EXIT.
    ENDLOOP.
    A: A
    B: A B C D
    C: B
    D: B C D
    Ans : A
    35. To select all database entries for a certain WHERE clause into an internal table in one step, use
    A: SELECT_INTO TABLE itab_
    B: SELECT_INTO itab_
    C: SELECT_APPENDING itab
    D: SELECT_itab_
    36. After a successful SELECT statement, what does SY-SUBRC equal?
    A: 0
    B: 4
    C: 8
    D: Null
    Ans : A
    37. This selection screen syntax forces the user to input a value:
    A: REQUIRED-ENTRY
    B: OBLIGATORY
    C: DEFAULT
    D: SELECTION-SCREEN EXCLUDE
    Ans : B
    38. If the following code results in a syntax error, the remedy is:
    DATA: itab TYPE SORTED TABLE OF rec_type WITH UNIQUE KEY field1
    WITH HEADER LINE.
    itab-field1 = 'Company'. itab-field2 = '1234'. INSERT TABLE itab.
    itab-field1 = 'Bank'. itab-field2 = 'ABC'. INSERT TABLE itab.
    SORT itab.
    LOOP AT itab.
    write: /1 itab-field1, itab-field2.
    ENDLOOP.
    A: There is no syntax error here
    B: Remove the SORT statement
    C: Change INSERT to APPEND
    D: Add a WHERE clause to the loop
    Ans :
    39. If this code results in an error, the remedy is:
    SELECT fld1 fld2 FROM tab1 WHERE fld3 = pfld3.
    WRITE: /1 tab1-fld1, tab1-fld2.
    ENDSELECT.
    A: Add a SY-SUBRC check.
    B: Change the WHERE clause to use fld1 or fld2.
    C: Remove the /1 from the WRITE statement.
    D: Add INTO (tab1-fld1, tab1-fld2).
    Ans : D
    40. When modifying an internal table within LOOP AT itab. _ ENDLOOP. you must include an index number.
    A: True
    B: False
    Ans : A
    41. To allow the user to enter values on the screen for a list field, use:
    A: OPEN LINE.
    B: SET CURSOR FIELD.
    C: WRITE fld AS INPUT FIELD.
    D: FORMAT INPUT ON.
    Ans : C
    42. Before a function module may be tested, it must first be:
    A: Linked
    B: Authorized
    C: Released
    D: Active
    Ans : D
    43. To include a field on your screen that is not in the ABAP Dictionary, which include program should contain the data declaration for the field?
    A: PBO module include program
    B: TOP include program
    C: PAI module include program
    D: Subroutine include program
    Ans : B
    44. If a table contains many duplicate values for a field, minimize the number of records returned by using this SELECT statement addition.
    A: MIN
    B: ORDER BY
    C: DISTINCT
    D: DELETE
    Ans : C
    45. The system internal table used for dynamic screen modification is named:
    A: ITAB
    B: SCREEN
    C: MODTAB
    D: SMOD
    Ans : B
    46. Within the source code of a function module, errors are handled via the keyword:
    A: EXCEPTION
    B: RAISE
    C: STOP
    D: ABEND
    Ans : A
    47. Which system field contains the contents of a selected line?
    A: SY-CUCOL
    B: SY-LILLI
    C: SY-CUROW
    D: SY-LISEL
    Ans : D
    48. The following statement writes what type of data object?
    WRITE: /1 'Total Amount:'.
    A: Text literal
    B: Text variable
    C: In-code comment
    D: Text integer
    Ans : A
    49. For the code below, second_field is of what data type?
    DATA: first_field type P, second_field like first_field.
    A: P
    B: C
    C: N
    D: D
    Ans : A
    50. Which of the following describes the internal representation of a type D data object?
    A: DDMMYYYY
    B: YYYYDDMM
    C: MMDDYYYY
    D: YYYYMMDD
    Ans : A
    51. A BDC program is used for all of the following except:
    A: Downloading data to a local file
    B: Data interfaces between SAP and external systems
    C: Initial data transfer
    D: Entering a large amount of data
    Ans : A
    52. In regard to PERFORM, which of the following is NOT a true statement?
    A: May be used within a subroutine.
    B: Requires actual parameters.
    C: Recursive calls are allowed in ABAP.
    D: Can call a subroutine in another program.
    Ans : B
    53. What is the transaction code for the ABAP Editor?
    A: SE11
    B: SE38
    C: SE36
    D: SE16
    Ans : B
    54. In regard to HIDE, which of the following is NOT a true statement?
    A: Saves the contents of variables in relation to a list line's row number.
    B: The hidden variables must be output on a list line.
    C: The HIDE area is retrieved when using the READ LINE statement.
    D: The HIDE area is retrieved when an interactive event is triggered.
    Ans : B
    55. Database locks are sufficient in a multi-user environment.
    A: True
    B: False
    Ans : B
    56. The complete technical definition of a table field is determined by the field's:
    A: Domain
    B: Field name
    C: Data type
    D: Data element
    Ans : A
    57. In regard to LEAVE, which of the following is NOT a true statement?
    A: May be used to return immediately to a calling program.
    B: May be used to stop the current loop pass and get the next.
    C: May be used to start a new transaction.
    D: May be used to go to the next screen.
    Ans : B
    58. The following code indicates:
    SELECT fld6 fld3 fld2 fld1 FROM tab1 INTO CORRESPONDING FIELDS OF TABLE itab
    WHERE fld3 = pfld3.
    A: The order of the fields in itab does not matter.
    B: Fill the header line of itab, but not the body.
    C: Table itab can only contain fields also in table tab1.
    D: None of the above.
    Ans : C
    59. The ABAP statement below indicates that the program should continue with the next line of code if the internal table itab:
    CHECK NOT itab[] IS INITIAL.
    A: Contains no rows
    B: Contains at least one row
    C: Has a header line
    D: Has an empty header line
    Ans : B
    60. What will be output by the following code?
    DATA: BEGIN OF itab OCCURS 0, fval type i, END OF itab.
    itab-fval = 1. APPEND itab.
    itab-fval = 2. APPEND itab.
    FREE itab.
    WRITE: /1 itab-fval.
    A: 2
    B: 0
    C: blank
    D: 1
    Ans : A
    61. To allow the user to enter a range of values on a selection screen, use the ABAP keyword:
    A: DATA.
    B: RANGES.
    C: PARAMETERS.
    D: SELECT-OPTIONS.
    Ans : D
    62. If an internal table is declared without a header line, what else must you declare to work with the table's rows?
    A: Another internal table with a header line.
    B: A work area with the same structure as the internal table.
    C: An internal table type using the TYPES statement.
    D: A PARAMETER.
    Ans : B
    63. Assuming an internal table contains 2000 entries, how many entries will it have after the following line of code is executed?
    DELETE itab FROM 1500 TO 1700.
    A: This is a syntax error.
    B: 1801
    C: 1800
    D: 1799
    Ans : A
    64. To remove lines from a database table, use ____.
    A: UPDATE
    B: MODIFY
    C: ERASE
    D: DELETE
    Ans : D
    65. All of the following may be performed using SET CURSOR except:
    A: Move the cursor to a specific field on a list.
    B: Move the cursor to a specific list line.
    C: Move the cursor to a specific pushbutton, activating that function.
    D: Move the cursor to a specific row and column on a list.
    Ans : C
    66. When is it optional to pass an actual parameter to a required formal parameter of a function module?
    A: The actual parameter is type C.
    B: The formal parameter contains a default value.
    C: The formal parameter's \"Reference\" attribute is turned on.
    D: It is never optional.
    Ans : B
    67. Coding two INITIALIZATION events will cause a syntax error.
    A: True
    B: False
    Ans : B
    68. Adding a COMMIT WORK statement between SELECT_ENDSELECT is a good method for improving performance.
    A: True
    B: False
    Ans : B
    69. To save information on a list line for use after the line is selected, use this keyword.
    A: APPEND
    B: EXPORT
    C: WRITE
    D: HIDE
    Ans : D
    70. To bypass automatic field input checks, include this in PAI.
    A: AT EXIT-COMMAND
    B: ON INPUT
    C: ON REQUEST
    D: LEAVE TO SCREEN 0.
    Ans : A
    71. Within a function module's source code, if the MESSAGE_RAISING statement is executed, all of the following system fields are filled automatically except:
    A: SY-MSGTY
    B: SY-MSGNO
    C: SY-MSGV1
    D: SY-MSGWA
    Ans : D
    72. The following code indicates:
    REPORT ZLISTTST.
    START-OF-SELECTION.
    WRITE: text-001.
    FORMAT HOTSPOT ON.
    WRITE: text-002.
    FORMAT HOTSPOT OFF.
    AT LINE-SELECTION.
    WRITE / text-003.
    A: Text-002 may not be selected.
    B: The value of text-002 is stored in a special memory area.
    C: Text-002 may be clicked once to trigger the output of text-003.
    D: None of the above.
    Ans : C
    73. The ____ type of ABAP Dictionary view consists of one or more transparent tables and may be accessed by an ABAP program using Open SQL.
    A: Database view
    B: Projection view
    C: Help view
    D: Entity view
    Ans : A
    74. A concrete field is associated with a field-symbol via ABAP keyword
    A: MOVE
    B: WRITE
    C: ASSIGN
    D: VALUE
    Ans : C
    75. The output for the following code will be:
    report zabaprg.
    DATA: char_field type C.
    char_field = 'ABAP data'.
    WRITE char_field.
    A: ABAP data
    B: A
    C: Nothing, there is a syntax error
    D: None of the above
    Ans : B
    76. Page footers are coded in the event:
    A: TOP-OF-PAGE.
    B: END-OF-SELECTION.
    C: NEW-PAGE.
    D: END-OF-PAGE.
    Ans : D
    77. The event AT SELECTION-SCREEN OUTPUT. occurs before the selection screen is displayed and is the best event for assigning default values to selection criteria.
    A: True
    B: False
    Ans : B
    78. The TABLES statement declares a data object.
    A: True
    B: False
    Ans : A
    79. Assuming tab1-fld7 is not a key field, how can you prevent reading all the table rows?
    SELECT fld1 fld2 fld3 FROM tab1 INTO (fld4, fld5, fld6)
    WHERE fld7 = pfld7.
    WRITE: /1 fld4, fld5, fld6.
    ENDSELECT.
    A: Take fld7 out of the WHERE clause.
    B: Create an index in the ABAP Dictionary for tab1-fld7.
    C: Use INTO TABLE instead of just INTO.
    D: Take the WRITE statement out of the SELECT_ENDSELECT.
    Ans :
    80. Which of the following is NOT a required attribute when creating an ABAP program?
    A: Application
    B: Title
    C: Status
    D: Type
    Ans : A
    81. When creating a transparent table in the ABAP Dictionary, which step automatically creates the table in the underlying database?
    A: Adding technical settings to the table
    B: Checking the table syntax
    C: Saving the table
    D: Activating the table
    Ans : D
    82. Within the ABAP program attributes, Type = 1 represents:
    A: INCLUDE program
    B: Online program
    C: Module pool
    D: Function group
    E: Subroutine pool
    Ans : B
    83. If this code results in an error, the remedy is:
    SELECT fld1 SUM( fld1 ) FROM tab1 INTO_
    A: Remove the spaces from SUM( fld1 ).
    B: Move SUM( fld1 ) before fld1.
    C: Add GROUP BY f1.
    D: Change to SUM( DISTINCT f1 ).
    Ans : C
    84. Which keyword adds rows to an internal table while accumulating numeric values?
    A: INSERT
    B: APPEND
    C: COLLECT
    D: GROUP
    Ans : C
    85. Assuming itab has a header line, what will be output by the following code?
    READ TABLE itab INDEX 3 TRANSPORTING field1.
    WRITE: /1 itab-field1, itab-field2.
    A: The contents of the third row's itab-field1.
    B: The contents of the third row's itab-field1 and itab-field2.
    C: The contents of the third row's itab-field2.
    D: Nothing.
    Ans ; A
    86. The following code indicates:
    SELECTION-SCREEN BEGIN OF BLOCK B1.
    PARAMETERS: myparam(10) type C,
    Myparam2(10) type N,
    SELECTION-SCREEN END OF BLOCK.
    A: Draw a box around myparam and myparam2 on the selection screen.
    B: Allow myparam and myparam2 to be ready for input during an error dialog.
    C: Do not display myparam and myparam2 on the selection screen.
    D: Display myparam and myparam2 only if both fields have default values.
    Ans : A
    87. Which statement will sort the data of an internal table with fields FRUIT, QTY, and PRICE so that it appears as follows?
    FRUIT QTY PRICE
    Apples 12 22.50
    Apples 9 18.25
    Oranges 15 17.35
    Bananas 20 10.20
    Bananas 15 6.89
    Bananas 5 2.75
    A: SORT itab DESCENDING BY QTY PRICE.
    B: SORT itab BY PRICE FRUIT.
    C: SORT itab.
    D: SORT itab BY PRICE DESCENDING.
    Ans : D
    88. Which keyword adds a line anywhere within an internal table?
    A: APPEND
    B: MODIFY
    C: ADD
    D: INSERT
    Ans : D
    89. To read a single line of an internal table, use the following:
    A: LOOP AT itab. _ ENDLOOP.
    B: READ itab.
    C: SELECT SINGLE * FROM itab.
    D: READ TABLE itab.
    Ans : D
    90. Which Open SQL statement should not be used with cluster databases?
    A: UPDATE
    B: MODIFY
    C: DELETE
    D: INSERT
    Ans :
    91. To include a field on your screen that is not in the ABAP Dictionary, which include program should contain the data declaration for the field?
    A: PBO module include program
    B: TOP include program
    C: PAI module include program
    D: Subroutine include program
    Ans : B
    92. This flow logic statement is used to make multiple fields open for input after an error or warning message.
    A: GROUP
    B: FIELD-GROUP
    C: CHAIN
    D: LOOP AT SCREEN
    Ans ; C
    93. Given:
    PERFORM subroutine USING var.
    The var field is known as what type of parameter?
    A: Formal
    B: Actual
    C: Static
    D: Value
    Ans : B

  • How to get Maximum Number of Concurrent users for last few days?

    Hi,
    How I can get maximum number of concurrent users which were logged in to the system (ECC 5.0) I mean I want to check the hostory for last few weeks. Is there any way to get the same? I know that I can get Cumulative number of users in st03 under Expert mode but that is the number of users logged into the system during the day. Is there any place where SAP maintians the High Watermark of Number of concurrent users reached in the system?
    Thanks in advance...
    Regards,
    Pravin

    Sorry I really missed that I have posted a question here on sdn. I wanted to know this for planning the system hardware requirements. Activities like PM ( Performance Management ) happens once a year and during that activity we see heavy user loan on the system so if I have the exact stats of 1 or 2 years data I can size the system better next time. Fortunately last 2 years PM was very smooth for us. In that look for the improvement because each time we had little extra Harware. By doing the exact analysis we can save a Cost of ownership...
    I was looking for R/3 users. I could see the number in st07 but I want to know the exact number at particular time.. I believe that st07 stores only for few days.
    Thanks
    Pravin

  • JAR creation failed. See details for additional information.-invalid header

    Hi
    I am working with 2 databases , 1 is oracle and the other is sybase in my java application.
    The java application gets data from both the databases and creates 3 output files and 1 audit log file .
    Now i tried creating the jar file
    my manifest file looks like this :
    Manifest-Version: 1.0
    Sealed: true
    Main-Class: tableA
    Class-Path:jtds-1.2.jar;classes12.jar ----------------------------> is this correct .
    Now when i try to create the jar file it gives me an err
    JAR creation failed. See details for additional information.-
    invalid header field
    invalid header field
    ANyone pls help me ... I am creating the jar file like rhis
    export -> selecting JAR file -> selecting 1 and 3 rd checkboxes ->location of the jar file -> next->selecting 2 checkboxes in JAR PACKAGING OPTIONS -> ( my question is how to create the manifest file with class-path , their is no option ) so i am creating the manifest file and creating the jar file and then adding the class-path to the manifest file and removing the jar file and recreating the jar file now selecting the manifest file .
    is this giving the above error --> if so how to create the manifest file before creating the jar file with class-path and main class

    Double post: [http://forums.sun.com/thread.jspa?threadID=5358017&messageID=10559776#10559776]

  • Find aging of concurrent jobs execution for last one year in R12

    DB:11.2.0.3.0
    EBS: 12.1.3
    O/S: Red Hat Linux
    Hi all,
    Could anyone please share the resolution for the below question in R12 ?
    1)      Considering only 3 weeks of data is maintained in FND tables, which means we cannot use fnd_concurrent_requests to get list of jobs submitted in last one year. Is there any other way what we can get to find out aging of jobs execution for last one year?
    Thanks for your time!
    Regards,

    Locking this thread - Pl continue the discussion in your original post - Identifying customizations in R12
    Unless you have backups of the deleted data, this is not possible

  • Query need for following question

    ORD :
    ORD_ID
    ORD_DATE
    CUST_ID
    ORD_TOTAL
    CUST :
    CUST_ID
    CUST_NAME
    CITY
    Quest:
    ORD_ID either less than 10 or greate than 50 also ORD_TOTAL >5000 ?

    What have you tried yourself sofar?
    And again:
    Quit polluting this forum, please.
    You're not providing any details reqarding your requirement, database version and so on...
    Read: http://tkyte.blogspot.com/2005/06/how-to-ask-questions.html
    And use CREATE TABLE + INSERT INTO statements, formatted by using the {noformat}{noformat}tag when you want to post an example.
    For example, if you post:
    {noformat} select *
    from emp;
    {noformat}
    it will appear as: select *
    from emp;
    on this forum.
    Tags are explained in the FAQ, so read that too: http://forums.oracle.com/forums/help.jspa                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • You'll be able to view billing details for this ac...

    Is there something wrong with the online accounts, or is it just me getting the message:
    You'll be able to view billing details for this account within 48 hours.
    If you can't see them after 48 hours, please use a different log-in or create a new profile.
    Solved!
    Go to Solution.

    Looks like you're on your own minusdot
    Did you get access to these ok now?  If not let me know and I'll get on the case for you.
    ta
    Craig
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)”
    td-p/30">Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

Maybe you are looking for

  • FrontRow.app gone

    Hey all, I've got a problem. I've been using my new 1.66ghz Intel core duo Mac Mini as a TV system for watching dvd's on my hdtv via a dvi to hdmi cable, and playing itunes via optical to my speaker system and have been loving it. But, the other day,

  • I need a CTP sample

    hello , I am a newbie to CRM. I need information about CTP ( capable to promise) in e-selling order scenario..if possible could you send me some screenshots that show what is CPT ?.. i'm also looking for any  tutorials or papers about realtion betwee

  • Char NUMC(5) - need to store value at database level without leading Zeros.

    Hi All We have 0Mat_Item like infoobjects in SAP BI, which have data type Char NUMC(5). Here if u load value '1', it would show us '1' at front end (BI or reporting level) but at database level stores as u201800001u2019. My requirement is to store th

  • Robohelp 7- .chm file

    Hello, I am currently working on Robo Help 7 to generate a .chm help file. I am trying to change the image of TOC book and Toc topic, i have a image of our own and want to replace. i am unable to find an option to do it for .chm file format. Please g

  • What condition does an iPhone have to be in to get a replacement one?

    I have an iPhone 4 and it has a smashed screen and back and the ring around the camera has fallen off and some of the glass has fallen off the back. But it still fully works fine. I rang up the apple store and they said its £120 for a replacement/rec