‎2007 Jul 09 10:29 AM
hi all
Answer the Following,
1)at wch loop "ABC' will be printed.
loop at itab.
do 8 times.
write : ' '.
enddo.
skip.
write : 'ABC'.
endloop.
a)8
b)9
c)10
d)1
2)to sort itab which of the following field will help(more than 1 answer id correct)
data : begin of itab,
a) field(10) type p,
b) field(10) type c,
c) field(10) type n,
d) field(10) type x,
end of itab,
3)which SQL stmt does not LOCK the corresponding DB entries?
a)select single *
b)insert
c)select single update
d)modify
4)data : fielda(10) value 'ABCD'.
if fielda CO 'ABCD'.
what is the value of sy-fdpos.
a)0
b)ABCD
c)A
d)1
5) to delete the contents of itab(with header line)
a)clear itab
b)clear itab[]
c)refresh itab
d)refresh itab[]
6)what will be the value of F1 after submiting
program abc.
data :F1.
F1 = ' '.
perform out.
submit abc1 using F1 exporting list to memory id 'xyz'.
program abc1.
form out.
data : F1.
F1 = '1'.
endform.
a)space
b)1
c)run time error
d)0
reward points will be given for all correct answers....!!
‎2007 Jul 09 10:40 AM
Hi,
1)at wch loop "ABC' will be printed.
loop at itab.
do 8 times.
write : ' '.
enddo.
skip.
write : 'ABC'.
endloop.
a)8
b)9
c)10
d)1
<b>(D)</b> DO is performed every time till the end of itab lines.
2)to sort itab which of the following field will help(more than 1 answer id correct)
data : begin of itab,
a) field(10) type p,
b) field(10) type c,
c) field(10) type n,
d) field(10) type x,
end of itab,
<b>Should be all as all are character type data.</b>
3)which SQL stmt does not LOCK the corresponding DB entries?
a)select single *
b)insert
c)select single update
d)modify
<b>(A)</b>
4)data : fielda(10) value 'ABCD'.
if fielda CO 'ABCD'.
what is the value of sy-fdpos.
a)0
b)ABCD
c)A
d)1
<b>None of them it will be 4</b>.
5) to delete the contents of itab(with header line)
a)clear itab
b)clear itab[]
c)refresh itab
d)refresh itab[]
<b>You need both (A) (B) or (C) (D) Refresh does not clear the headerline.</b>
6)what will be the value of F1 after submiting
program abc.
data :F1.
F1 = ' '.
perform out.
submit abc1 using F1 exporting list to memory id 'xyz'.
program abc1.
form out.
data : F1.
F1 = '1'.
endform.
a)space
b)1
c)run time error
d)0
<b>(C)</b> I think as there is no data in the program to accept the data.
Regards,
Sesh
‎2007 Jul 09 10:40 AM
Hi,
1)at wch loop "ABC' will be printed.
loop at itab.
do 8 times.
write : ' '.
enddo.
skip.
write : 'ABC'.
endloop.
a)8
b)9
c)10
d)1
<b>(D)</b> DO is performed every time till the end of itab lines.
2)to sort itab which of the following field will help(more than 1 answer id correct)
data : begin of itab,
a) field(10) type p,
b) field(10) type c,
c) field(10) type n,
d) field(10) type x,
end of itab,
<b>Should be all as all are character type data.</b>
3)which SQL stmt does not LOCK the corresponding DB entries?
a)select single *
b)insert
c)select single update
d)modify
<b>(A)</b>
4)data : fielda(10) value 'ABCD'.
if fielda CO 'ABCD'.
what is the value of sy-fdpos.
a)0
b)ABCD
c)A
d)1
<b>None of them it will be 4</b>.
5) to delete the contents of itab(with header line)
a)clear itab
b)clear itab[]
c)refresh itab
d)refresh itab[]
<b>You need both (A) (B) or (C) (D) Refresh does not clear the headerline.</b>
6)what will be the value of F1 after submiting
program abc.
data :F1.
F1 = ' '.
perform out.
submit abc1 using F1 exporting list to memory id 'xyz'.
program abc1.
form out.
data : F1.
F1 = '1'.
endform.
a)space
b)1
c)run time error
d)0
<b>(C)</b> I think as there is no data in the program to accept the data.
Regards,
Sesh
‎2007 Jul 09 11:03 AM
1)at wch loop "ABC' will be printed.
loop at itab.
do 8 times.
write : ' '.
enddo.
skip.
write : 'ABC'.
endloop.
a)8
b)9
c)10
d)1
<b>Answer: The first 8 loops are printed 'space' and then at the 9th loop 'ABC' is printed.</b>
2)to sort itab which of the following field will help(more than 1 answer id correct)
data : begin of itab,
a) field(10) type p,
b) field(10) type c,
c) field(10) type n,
d) field(10) type x,
end of itab,
<b>SORT can be done on all the 4 options, here is the syntax where we can sort even Char fields.
SORT itab [ASCENDING|DESCENDING]
[AS TEXT]
[STABLE]
[sort_key].
</b>
3)which SQL stmt does not LOCK the corresponding DB entries?
a)select single *
b)insert
c)select single update
d)modify
<b>It's select single *.</b>
4)data : fielda(10) value 'ABCD'.
if fielda CO 'ABCD'.
what is the value of sy-fdpos.
a)0
b)ABCD
c)A
d)1
<b>The answer for SY-FDPOS is 4.</b>
5) to delete the contents of itab(with header line)
a)clear itab
b)clear itab[]
c)refresh itab
d)refresh itab[]
<b>REFRESH ITAB[].</b>
6)what will be the value of F1 after submiting
program abc.
data :F1.
F1 = ' '.
perform out.
submit abc1 using F1 exporting list to memory id 'xyz'.
program abc1.
form out.
data : F1.
F1 = '1'.
endform.
a)space
b)1
c)run time error
d)0
<b>It's run time error.</b>
Regards,
Pavan P.
‎2007 Jul 09 11:12 AM
Hi Asha,
1. It prints ABC for each and every loop i.e., for all the records in the internal table "itab" but after 8 spaces.
2. You can use any of the four fields to sort. But you have to add OCCURS clause to the data statement.
3. As per me its a... select single *...
4. None of the answers given by you. Even sy-subrc will be not equal to zero if you define it as data : fielda(10) value 'ABCD'. You have to define it as data: fielda(4) value 'ABCD'. In order to get sy-subrc = 0 and in this case, sy-fdpos = 4.
5. clear itab[].
6. It gives Syntax error, as there is no definition for subroutine <b>out</b> in program abc.
Regards,
Phani.
Message was edited by:
Sivapuram Phani Kumar
‎2007 Jul 09 12:44 PM
‎2007 Jul 09 11:21 AM
‎2007 Jul 09 12:07 PM
‎2007 Jul 09 12:46 PM
hi
field a(10)---is decalration for variable 'a' which of type string.
CO----is a string which means Contains Only
‎2007 Jul 09 12:32 PM
1)at wch loop "ABC' will be printed.
loop at itab.
do 8 times.
write : ' '.
enddo.
skip.
write : 'ABC'.
endloop.
a)8
b)9
c)10
d)1
Answer : 'ABC' s printed as many record s there in itab but each 'ABC' printed after 8 spaces.
2)to sort itab which of the following field will help(more than 1 answer id correct)
data : begin of itab,
a) field(10) type p,
b) field(10) type c,
c) field(10) type n,
d) field(10) type x,
end of itab,
Answer : a) field(10) type p and
c) field(10) type n
3)which SQL stmt does not LOCK the corresponding DB entries?
a)select single *
b)insert
c)select single update
d)modify
Answer : Select single *
4)data : fielda(10) value 'ABCD'.
if fielda CO 'ABCD'.
what is the value of sy-fdpos.
a)0
b)ABCD
c)A
d)1
Answer : Sy-fdpos = 4
5) to delete the contents of itab(with header line)
a)clear itab
b)clear itab[]
c)refresh itab
d)refresh itab[]
Answer : clear itab[]
6)what will be the value of F1 after submiting
program abc.
data :F1.
F1 = ' '.
perform out.
submit abc1 using F1 exporting list to memory id 'xyz'.
program abc1.
form out.
data : F1.
F1 = '1'.
endform.
a)space
b)1
c)run time error
d)0
answer : c)
Regards,
Darshana
‎2007 Jul 09 12:46 PM