- Messages
- 22
- Reaction score
- 2
- Points
- 3
was it esy guyz??????????????????????
We are currently struggling to cover the operational costs of Xtremepapers, as a result we might have to shut this website down. Please donate if we have helped you and help make a difference in other students' lives!
Click here to Donate Now (View Announcement)
Not as I expected...its HARD!was it esy guyz??????????????????????
Thats trueIt was easy actually if you know Programming.
I agree with you...I never got below 65 for all the 2011 papers (21,22,23)...but lets hope that they will decrease the GT.it was hard i did all 2011's pastpapers they were easy ,,, this paper was full with coding !!!!!!!!
i didnt use the len function ,didnt add 1 after locatint * and didnt put + or & between two strings will i get any marks?Here is the Visual Basic Code for the String Concatenation:
'Declarations Needed
DIM Input1 AS String
DIM Input2 AS String
DIM Length1 AS Integer
DIM Length2 AS Integer
DIM NEW1 AS String
DIM NEW2 AS String
DIM New_Word AS String
Length1 = Len(Input1) 'Gets Length of the Words
Length2 = Len(Input2)
NEW1 = Microsoft.VisualBasic.MID(Input1, Locate("*", Input1) + 1, Length1) 'Gets Characters After Asterisk Becase Locate states Location of Asterisk and + 1 Chooses Next Character
NEW2 = Microsoft.VisualBasic.MID(Input2, Locate("*". Input2) + 1, Length2)
New_Word = NEW1 & NEW2
Dim String1 As String
Dim String2 As String
String1 = InputBox("Enter first String")
String2 = InputBox("Enter Second String")
POS1 = InStr(String1, "*")
Output1 = Right(String1, Len(String1) - POS1)
POS2 = InStr(String2, "*")
Output2 = Right(String2, Len(String2) - POS2)
ROutput = Output1 + Output2
MsgBox ("Your combined string is: " + ROutput)
Damn Man p22 was a bit different and tougher! I was unable to write the code for the 3rd question.The one with string1 and string2 e.g. (DRF*COM) AND (S*PUTER) Does any one know how to write the codes for it? I hope the GT for this Paper will be below 48.
For almost 10 years, the site XtremePapers has been trying very hard to serve its users.
However, we are now struggling to cover its operational costs due to unforeseen circumstances. If we helped you in any way, kindly contribute and be the part of this effort. No act of kindness, no matter how small, is ever wasted.
Click here to Donate Now