Saturday, September 20, 2014

70 LATEST TOP JAVASCRIPT Interview Questions and Answers

Below are the list of Latest JAVASCRIPT interview questions and answers for freshers beginners and experienced pdf free download.
 

JAVASCRIPT Interview Questions and Answers


JAVASCRIPT Interview Questions
JAVASCRIPT Interview Questions
What is JavaScript?
A1: JavaScript is a general-purpose programming language designed to let programmers of all skill levels control the behavior of software objects. The language is used most widely today in Web browsers whose software objects tend to represent a variety of HTML elements in a document and the document itself. But the language can be--and is--used with other kinds of objects in other environments. For example, Adobe Acrobat Forms uses JavaScript as its underlying scripting language to glue together objects that are unique to the forms generated by Adobe Acrobat. Therefore, it is important to distinguish JavaScript, the language, from the objects it can communicate with in any particular environment. When used for Web documents, the scripts go directly inside the HTML documents and are downloaded to the browser with the rest of the HTML tags and content.

A2:JavaScript is a platform-independent,event-driven, interpreted client-side scripting and programming language developed by Netscape Communications Corp. and Sun Microsystems.

How is JavaScript different from Java?
JavaScript was developed by Brendan Eich of Netscape; Java was developed at Sun Microsystems. While the two languages share some common syntax, they were developed independently of each other and for different audiences. Java is a full-fledged programming language tailored for network computing; it includes hundreds of its own objects, including objects for creating user interfaces that appear in Java applets (in Web browsers) or standalone Java applications. In contrast, JavaScript relies on whatever environment it's operating in for the user interface, such as a Web document's form elements.
JavaScript was initially called LiveScript at Netscape while it was under development. A licensing deal between Netscape and Sun at the last minute let Netscape plug the "Java" name into the name of its scripting language. Programmers use entirely different tools for Java and JavaScript. It is also not uncommon for a programmer of one language to be ignorant of the other. The two languages don't rely on each other and are intended for different purposes. In some ways, the "Java" name on JavaScript has confused the world's understanding of the differences between the two. On the other hand, JavaScript is much easier to learn than Java and can offer a gentle introduction for newcomers who want to graduate to Java and the kinds of applications you can develop with it.

What’s relationship between JavaScript and ECMAScript?
ECMAScript is yet another name for JavaScript (other names include LiveScript). The current JavaScript that you see supported in browsers is ECMAScript revision 3.

How do you submit a form using Javascript?
Use document.forms[0].submit();
(0 refers to the index of the form – if you have more than one form in a page, then the first one has the index 0, second has index 1 and so on).

How do we get JavaScript onto a web page?
You can use several different methods of placing javascript in you pages.
You can directly add a script element inside the body of page.
1. For example, to add the "last updated line" to your pages, In your page text, add the following:
<p>blah, blah, blah, blah, blah.</p>
<script type="text/javascript" >
<!-- Hiding from old browsers
document.write("Last Updated:" +
document.lastModified);
document.close();
// -->
</script>
<p>yada, yada, yada.</p>

(Note: the first comment, "<--" hides the content of the script from browsers that don't understand javascript. The "// -->" finishes the comment. The "//" tells javascript that this is a comment so javascript doesn't try to interpret the "-->". If your audience has much older browsers, you should put this comments inside your javascript. If most of your audience has newer browsers, the comments can be omitted. For brevity, in most examples here the comments are not shown. )
The above code will look like this on Javascript enabled browsers,
2. Javascript can be placed inside the <head> element
Functions and global variables typically reside inside the <head> element.
<head>
<title>Default Test Page</title>
<script language="JavaScript" type="text/javascript">
var myVar = "";
function timer(){setTimeout('restart()',10);}
document.onload=timer();
</script>
</head>

Javascript can be referenced from a separate file
Javascript may also a placed in a separate file on the server and referenced from an HTML page. (Don't use the shorthand ending "<script ... />). These are typically placed in the <head> element.
<script type="text/javascript" SRC="myStuff.js"></script>

How to read and write a file using javascript?
I/O operations like reading or writing a file is not possible with client-side javascript. However , this can be done by coding a Java applet that reads files for the script.

How to detect the operating system on the client machine?
In order to detect the operating system on the client machine, the navigator.appVersion
string (property) should be used.

How can JavaScript make a Web site easier to use? That is, are there certain JavaScript techniques that make it easier for people to use a Web site?
JavaScript's greatest potential gift to a Web site is that scripts can make the page more immediately interactive, that is, interactive without having to submit every little thing to the server for a server program to re-render the page and send it back to the client. For example, consider a top-level navigation panel that has, say, six primary image map links into subsections of the Web site. With only a little bit of scripting, each map area can be instructed to pop up a more detailed list of links to the contents within a subsection whenever the user rolls the cursor atop a map area. With the help of that popup list of links, the user with a scriptable browser can bypass one intermediate menu page. The user without a scriptable browser (or who has disabled JavaScript) will have to drill down through a more traditional and time-consuming path to the desired content.

What are JavaScript types?
Number, String, Boolean, Function, Object, Null, Undefined.

How do you convert numbers between different bases in JavaScript?
Use the parseInt() function, that takes a string as the first parameter, and the base as a second parameter. So to convert hexadecimal 3F to decimal, use parseInt ("3F", 16);

What does "1"+2+3 evaluate to?
Since 1 is a string, everything is a string, so the result is 123.

How about 3+5+"8"?
Since 3 and 5 are integers, this is number arithmetic, since 8 is a string, it’s concatenation, so 88 is the result.

How do you submit a form using Javascript?
Use document.forms[0].submit();

How do you assign object properties?
obj["age"] = 22 or obj.age = 22.

What’s a way to append a value to an array?
arr[arr.length] = value;

What does isNaN function do?
Return true if the argument is not a number.

What’s relationship between JavaScript and ECMAScript?
ECMAScript is yet another name for JavaScript (other names include LiveScript). The current JavaScript that you see supported in browsers is ECMAScript revision 3.

How to read and write a file using javascript?
I/O operations like reading or writing a file is not possible with client-side javascript.

How do you convert numbers between different bases in JavaScript?
Use the parseInt() function, that takes a string as the first parameter, and the base as a second parameter. So to convert hexadecimal FF to decimal, use parseInt ("FF", 16);

What is negative infinity?
It’s a number in JavaScript, derived by dividing negative number by zero.

How to set a HTML document's background color?
document.bgcolor property can be set to any appropriate color.

What boolean operators does JavaScript support?
&&, and !

How to get the contents of an input box using Javascript?
Use the "value" property.
var myValue = window.document.getElementById("textboxID").value;

How to determine the state of a checkbox using Javascript?
var checkedP = window.document.getElementById("CheckBoxID").checked;

How to set the focus in an element using Javascript?
<script> function setFocus() { if(focusElement != null) { document.forms[0].elements["myelementname"].focus(); } } </script>

How to access an external javascript file that is stored externally and not embedded?
This can be achieved by using the following tag between head tags or between body tags.
<script src="raj.js"></script>How to access an external javascript file that is stored externally and not embedded? where abc.js is the external javscript file to be accessed.

What is the difference between an alert box and a confirmation box?
An alert box displays only one button which is the OK button whereas the Confirm box displays two buttons namely OK and cancel.

What is a prompt box?
A prompt box allows the user to enter input by providing a text box.

Can javascript code be broken in different lines?
Breaking is possible within a string statement by using a backslash \ at the end but not within any other javascript statement.
that is ,
document.write("Hello \ world");
is possible but not document.write \
("hello world");

What looping structures are there in JavaScript?
for, while, do-while loops, but no foreach.

How do you create a new object in JavaScript?
var obj = new Object(); or var obj = {};

What is this keyword?
It refers to the current object.


What is the difference between SessionState and ViewState?
ViewState is specific to a page in a session. Session state refers to user specific data that can be accessed across all pages in the web application.


What looping structures are there in JavaScript?
for, while, do-while loops, but no foreach.

To put a "close window" link on a page ?
<a href='javascript:window.close()' class='mainnav'> Close </a>

How to hide javascript code from old browsers that dont run it?
Use the below specified style of comments <script language=javascript> <!-- javascript code goes here // --> or Use the <NOSCRIPT>some html code </NOSCRIPT> tags and code the display html statements between these and this will appear on the page if the browser does not support javascript

How to comment javascript code?
Use // for line comments and
/*
*/ for block comments

Name the numeric constants representing max,min values
Number.MAX_VALUE
Number.MIN_VALUE

What does javascript null mean?
The null value is a unique value representing no value or no object.
It implies no object,or null string,no valid boolean value,no number and no array object.

How do you create a new object in JavaScript?
var obj = new Object(); or var obj = {};

How do you assign object properties?
obj["age"] = 23 or obj.age = 23.

What’s a way to append a value to an array?
arr[arr.length] = value;


To set all checkboxes to true using JavaScript?
//select all input tags
function SelectAll() {
var checkboxes = document.getElementsByTagName("input");
for(i=0;i<checkboxes.length;i++) {
if(checkboxes.item(i).attributes["type"].value == "checkbox") {
checkboxes.item(i).checked = true;
}
}
}

What does undefined value mean in javascript?
Undefined value means the variable used in the code doesn't exist or is not assigned any value or the property doesn't exist.

What is the difference between undefined value and null value?
(i)Undefined value cannot be explicitly stated that is there is no keyword called undefined whereas null value has keyword called null
(ii)typeof undefined variable or property returns undefined whereas typeof null value returns object

What is variable typing in javascript?
It is perfectly legal to assign a number to a variable and then assign a string to the same variable as follows
example
i = 10;
i = "string";
This is called variable typing

Does javascript have the concept level scope?
No. JavaScript does not have block level scope, all the variables declared inside a function possess the same level of scope unlike c,c++,java.

What are undefined and undeclared variables?
Undeclared variables are those that are not declared in the program (do not exist at all),trying to read their values gives runtime error.But if undeclared variables are assigned then implicit declaration is done .
Undefined variables are those that are not assigned any value but are declared in the program.Trying to read such variables gives special value called undefined value.

What is === operator ?
==== is strict equality operator ,it returns true only when the two operands are having the same value without any type conversion.


How to disable an HTML object ?
document.getElementById("myObject").disabled = true;

How to create a popup warning box?
alert('Warning: Please enter an integer between 0 and 1000.');

How to create a confirmation box?
confirm("Do you really want to launch the missile?");

How to create an input box?
prompt("What is your temperature?");

How to force a page to go to another page using JavaScript ?
<script language="JavaScript" type="text/javascript" ><!-- location.href="http://rajeshstutorials.blogspt.com"; //--></script>

What's Math Constants and Functions using JavaScript?
The Math object contains useful constants such as Math.PI, Math.E

Math.abs(value); //absolute value
Math.max(value1, value2); //find the largest
Math.random() //generate a decimal number between 0 and 1
Math.floor(Math.random()*101) //generate a decimal number between 0 and 100

What does the delete operator do?
The delete operator is used to delete all the variables and objects used in the program ,but it does not delete variables declared with var keyword.

How to get value from a textbox?
alert(document.getElementById('txtbox1').value);

How to get value from dropdown (select) control?
alert(document.getElementById('dropdown1').value);

Tuesday, September 16, 2014

80 LATEST TOP SAP ABAP Multiple Choice Questions and Answers pdf

Below are the List of Top 80 SAP ABAP Internal Tables Interview Questions and Answers for pdf, SAP Certification Questions and Answers for freshers and Experienced.

Sap Abap Interview Questions and Answers

SAP ABAP Questions and Answers

Sap Abap Interview Questions


1. This data type has a default length of one and a blank default value.
A: I
B: N
C: C
D: D
Ans:C

2. A DATA statement may appear only at the top of a program, before START-OFSELECTION.
A: True
B: False
Ans:B

3. If a field, NAME1, is declared as a global data object, what will be output by the
following code?
report zabaprg.
DATA: name1 like KNA1-NAME1 value 'ABAP programmer'.
name1 = 'Customer name'.
CLEAR name1.
perform write_name.
FORM write_name.
name1 = 'Material number'.
WRITE name1.
ENDFORM.
A: Customer name
B: ABAP programmer
C: Material number
D: None of the above
Ans:C

4. All of these allow you to step through the flow of a program line-by-line except:
A: Enter /h then execute
B: Execute in debug mode
C: Enter /i then execute
D: Set a breakpoint
Ans: C

5. Which of the following may NOT be modified using the ABAP Dictionary
transaction?
A: Type groups
B: Search help
C: Lock objects
D: Function groups
Ans:D

6. In a line of code, text-100, is an example of which type of text element?
A: Text symbol
B: Selection text
C: Text title
D: Text identifier
Ans:A

7. The editor function that formats and indents the lines of code automatically is called
____.
A: Auto align
B: Pretty printer
C: Generate version
D: Syntax check
Ans:B

8. A DO loop increments the system field ____.
A: SY-LOOPI
B: SY-TABIX
C: SY-LSIND
D: SY-INDEX
Ans: D

9. The event that is processed after all data has been read but before the list is displayed
is:
A: END-OF-PAGE.
B: START-OF-SELECTION.
C: END-OF-SELECTION.
D: AT LINE-SELECTION.
Ans:A ? C

10. The field declared below is of what data type?
DATA: new_fld(25).
A: P
B: N
C: I
D: C
Ans: D

11. In regard to the INITIALIZATION event, which of the following is NOT a true
statement?
A: Executed before the selection screen is displayed.
B: You should use SET PF-STATUS here.
C: You can assign different values to PARAMETERS and SELECT-OPTIONS here.
D: Executed one time when you start the report.
Ans: B

12. 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

13. The business (non-technical) definition of a table field is determined by the field's
____.
A: domain
B: field name
C: data type
D: data element
Ans: D

14. In regard to the three-tier client/server architecture, which of the following is a true
statement?
A: The presentation server processes the SAP program logic.
B: An application server is responsible for updating database tables.
C: Typically, there is a one-to-one ratio of database servers to presentation servers.
D: The application server layer is the level between a presentation server and a
database server.
Ans: D,B

15. What will be output by the code below?
DATA: alph type I value 3.
write: alph.
WHILE alph > 2.
write: alph.
alph = alph - 1.
ENDWHILE.
A: 3
B: 3 2
C: 3 3 2
D: 3 3
Ans: D

16. To allow the user to enter a single value on a selection screen, use the ABAP
keyword ____.
A: SELECT-OPTIONS.
B: PARAMETERS.
C: RANGES.
D: DATA.
Ans: B

17. 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.
REFRESH itab.
WRITE: /1 itab-fval.
A: 1
B: 2
C: blank
D: 0
Ans: B

18. You can define your own key fields when declaring an internal table.
A: True
B: False
Ans: A

19. When modifying an internal table within LOOP AT itab. _ ENDLOOP. you must
include an index number.
A: True
B: False
Ans : B

20. If itab contains 20 rows, what will SY-TABIX equal when the program reaches the
WRITE statement below?
SY-TABIX = 10.
LOOP AT itab.
count_field = count_field + 1.
ENDLOOP.
WRITE: /1 count_field.
A: 0
B: 10
C: 20
D: 30
Ans: C

More SAP ABAP Interview Questions : Click Here

21. Adding a COMMIT WORK statement between SELECT_ENDSELECT is a good
method for improving performance.
A: True
B: False
Ans:B

22. To select one record for a matching primary key, use ____.
A: SELECT
B: SELECT INTO
C: SELECT SINGLE
D: SELECT ENTRY
Ans: C

23. In regard to MOVE-CORRESPONDING, which of the following is NOT a true
statement?
A: Moves the values of components with identical names.
B: Fields without a match are unchanged.
C: Corresponds to one or more MOVE statements.
D: Moves the values of components according to their location.
Ans: D

24. The ABAP keyword for adding authorizations to a program is ____.
A: AUTH-CHECK
B: AUTHORITY-CHECK
C: AUTHORIZATION-CHECK
D: AUTHORITY-OBJECT
Ans:B

25. To read an exact row number of an internal table, use this parameter of the READ
TABLE statement.
A: INDEX
B: TABIX
C: ROW
D: WHERE
Ans: B ? A

26. To remove lines from a database table, use ____.
A: UPDATE
B: MODIFY
C: ERASE
D: DELETE
Ans: D

27. Which table type would be most appropriate for accessing table rows using an
index.
A: Hashed table
B: Standard table
C: Sorted table
D: None of these may be accessed using an index.
Ans: C

28. 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

29. The following code reorders the rows so that:
DATA: itab LIKE kna1 OCCURS 0 WITH HEADER LINE.
itab-name1 = 'Smith'. itab-ort01 = 'Miami'. APPEND itab.
itab-name1 = 'Jones'. itab-ort01 = 'Chicago'. APPEND itab.
itab-name1 = 'Brown'. itab-ort01 = 'New York'. APPEND itab.
SORT itab BY name1 ort01.
A: Smith appears before Jones
B: Jones appears before Brown
C: Brown appears before Jones
D: Miami appears before New York
Ans: C

30. 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

31. When writing a SELECT statement, you should place as much load as possible on
the database server and minimize the load on the application server.
A: True
B: False
Ans: B

32. All of the following pertain to interactive reporting in ABAP except:
A: Call transactions and other programs from a list.
B: Secondary list shows detail data.
C: Good for processing lists in background.
D: AT USER-COMMAND
Ans:C

33. 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: D

34. Errors to be handled by the calling program are defined in a function module's
____.
A: exceptions interface
B: source code
C: exporting interface
D: main program
Ans :A

35. In regard to the START-OF-SELECTION event, which of the following is a true
statement?
A: Executed before the selection screen is displayed.
B: This is the only event in which a SELECT statement may be coded.
C: Executed when the user double-clicks a list row.
D: Automatically started by the REPORT statement.
Ans:D

36. The order in which an event appears in the ABAP code determines when the event
is processed.
A: True
B: False
Ans: B

37. The SAP service that ensures data integrity by handling locking is called:
A: Update
B: Dialog
C: Enqueue/Dequeue
D: Spool
Ans: C

38. What standard data type is the following user-defined type?
TYPES: user_type.
A: N
B: C
C: I
D: Undefined
Ans: B

39. Which ABAP program attribute provides access protection?
A: Status
B: Application
C: Development class
D: Authorization group
Ans:D

40. Page headers for a secondary list should be coded in which event?
A: TOP-OF-PAGE.
B: START-OF-SELECTION.
C: TOP-OF-PAGE DURING LINE-SELECTION.
D: AT USER-COMMAND.
Ans: C

41. 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

42. The following statement will result in a syntax error.
DATA: price(3) type p decimals 2 value '100.23'.
A: True
B: False
Ans: B

43. The following code indicates:
CALL SCREEN 300.
A: Start the PAI processing of screen 300.
B: Jump to screen 300 without coming back.
C: Temporarily branch to screen 300. *
D: Exit screen 300.
Ans:C

44. Which of the following would be stored in a table as master data?
A: Customer name and address
B: Sales order items
C: Accounting invoice header
D: Vendor credit memo
Ans: A

45. In relation to an internal table as a formal parameter, because of the STRUCTURE
syntax, it is possible to:
A: Use the DESCRIBE statement within a subroutine.
B: Loop through the internal table within a subroutine.
C: Access the internal table fields within a subroutine.
D: Add rows to the internal table within a subroutine.
Ans: C

46. This data type has a default length of one and a default value = '0'.
A: P
B: C
C: N
D: I
Ans: C

47. To prevent duplicate accesses to a master data field:
A: Create an index on the master data field.
B: Remove nested SELECT statements.
C: Use SELECT SINGLE.
D: Buffer the data in an internal table.
Ans: A ? C

48. In regard to the code below, which of the following is not a true statement?
TABLES: KNA1.
GET KNA1.
Write: /1 kna1-kunnr.
END-OF-SELECTION.
A: The GET event is processed while a logical database is running.
B: All the fields from table KNA1 may be used in the GET event.
C: You can code the GET event elsewhere in the same program.
D: None of the above.
Ans: D

49. The following code indicates:
SELECT fld1 FROM tab1 INTO TABLE itab
UP TO 100 ROWS
WHERE fld7 = pfld7.
A: Itab will contain 100 rows.
B: Only the first 100 records of tab1 are read.
C: If itab has less than 100 rows before the SELECT, SY-SUBRC will be set to 4.
D: None of the above.
Ans: D

50. To place a checkbox on a list, use
A: WRITE CHECKBOX.
B: FORMAT CHECKBOX ON.
C: WRITE fld AS CHECKBOX.
D: MODIFY LINE WITH CHECKBOX.
Ans:C

51. Which of the following is NOT a true statement in regard to a sorted internal table
type?
A: May only be accessed by its key.
B: Its key may be UNIQUE or NON-UNIQUE.
C: Entries are sorted according to its key when added.
D: A binary search is used when accessing rows by its key.
Ans: A

52. The following code indicates:
CALL SCREEN 9000 STARTING AT 10 5 ENDING AT 60 20
A: Screen 9000 is called with the cursor at coordinates (10,5)(60,20).
B: Screen 9000 must be of type "Modal dialog box."
C: Display screen 9000 in a full window.
D: Screen 9000 may only contain an ABAP list.
Ans:A

53. 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

54. Function module source code may not call a subroutine.
A: True
B: False
Ans: B

55. This data type has a default length of eight and a default value = '00000000'.
A: P
B: D
C: N
D: C
Ans: B

56. Within the source code of a function module, errors are handled via the keyword:
A: EXCEPTION
B: RAISE
C: STOP
D: ABEND
Ans:B

57. Which of these is NOT a valid type of function module?
A: Normal
B: Update
C: RFC
D: Dialog
Ans:D

58. To call a local subroutine named calculate answer, use this line of code:
A: PERFORM calculate answer.
B: CALL calculate answer.
C: USING calculate answer.
D: SUB calculate answer.
Ans:A

59. Given:
DO.
Write: /1 'E equals MC squared.'.
ENDDO.
This will result in ____.
A: output of 'E equals MC squared.' on a new line one time
B: an endless loop that results in an abend error
C: output of 'E equals MC squared.' on a new line many times
D: a loop that will end when the user presses ESC
Ans.B

60. The following code indicates
write: /5 'I Love ABAP'.
A: Output 'I Lov' on the current line
B: Output 'I Love ABAP' starting at column 5 on the current line
C: Output 'I Lov' on a new line
D: Output 'I Love ABAP' starting at column 5 on a new line
Ans: D

61. 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

62. A select statement has built-in authorization checks.
A: True
B: False
Ans:B

63. 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:B

64. Page footers are coded in the event:
A: TOP-OF-PAGE.
B: END-OF-SELECTION.
C: NEW-PAGE.
D: END-OF-PAGE.
Ans:D

65. Page headers for a secondary/details list can be coded in the event:
A: GET.
B: INITIALIZATION.
C: TOP-OF-PAGE DURING LINE-SELECTION.
D: NEW-PAGE.
Ans:C

66. To both add or change lines of a database table, use ____.
A: INSERT
B: UPDATE
C: APPEND
D: MODIFY
Ans:D

67. To select one record for a matching primary key, use ____.
A: SELECT
B: SELECT INTO
C: SELECT SINGLE
D: SELECT ENTRY
Ans:C

68. After adding rows to an internal table with COLLECT, you should avoid adding
More rows with APPEND.
A: True
B: False
Ans:A

69. The output for the following code will be
report zabaprg.
DATA: my_field type I value 99.
my_field = my_field + 1.
clear my_field.
WRITE: 'The value is', my_field left-justified.
A: The value is 99
B: The value is 100
C: The value is 0
D: None of the above
Ans: C

70. If this code results in an error, the remedy is
SELECT * FROM tab1 WHERE fld3 = pfld3.
WRITE: /1 tab1-fld1, tab1-fld2.
ENDSELECT.
A: Add a SY-SUBRC check.
B: Change the * to fld1 fld2.
C: Add INTO (tab1-fld1, tab1-fld2).
D: There is no error.
Ans: C,D

71. To summarize the contents of several matching lines into a single line, use this
SELECT statement clause.
A: INTO
B: WHERE
C: FROM
D: GROUP BY
Ans:D

72. 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

73. All of the following are considered to be valid ABAP modularization techniques
except:
A: Subroutine
B: External subroutine
C: Field-group
D: Function module
Ans:C


74. To create a list of the top 25 customers, you should use
A: DELETE ADJACENT DUPLICATES
B: READ TABLE itab INDEX 25
C: LOOP AT itab FROM 25
D: APPEND SORTED BY
Ans:D

75. 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:B

76. In an R/3 environment, where is the work of a dialog program performed?
A: On the application server using a dialog work process service.
B: On the presentation server using a dialog work process service.
C: On the database server using a dialog work process service.
D: None of the above.
Ans: A

77. In regard to Native SQL, which of the following is NOT a true statement?
A: A CONNECT to the database is done automatically.
B: You must specify the SAP client.
C: The tables that you address do not have to exist in the ABAP Dictionary.
D: Will run under different database systems.
Ans:D

78. To change one or more lines of a database table, use ____.
A: UPDATE
B: INSERT
C: INTO
D: MOD
Ans:A

79. Which is the correct sequence of events?
A: AT SELECTION-SCREEN, TOP-OF-PAGE, INITIALIZATION
B: START-OF-SELECTION, AT USER-COMMAND, GET dbtab
C: INITIALIZATION, END-OF-SELECTION, AT LINE-SELECTION
D: GET dbtab, GET dbtab LATE, START-OF-SELECTION
Ans:B

80. Which of the following is NOT a numeric data type?
A: I
B: N
C: P
D: F
Ans: B