I'm very green when it comes to this programming stuff, so I had to sit for a bit and really dig down to grasp the concept. For those like me or not:
YEAR = 2022 * 10000 = 20220000
MONTH = 01 * 100 = 100
DAY = 09
PRINT
20220000
+ 100
+ 09
----------------------------
20220109 = YYYYMMDD
Guys listen to me if you feel that makes sense if you don't have a Programming knowledge and wants to solve this for the sake of exam.
see the very last line in question "date=str(......)"
there is + + + in btwn
and outside the bracket there is a string
string is a not a number (integer), string could be anything , like a word or alphabets or characters,
and remember, whenever there is a string and you see + + +,
THAT SIMPLY MEANS IT WILL MAKE THE WHOLE WORD SIT TOGTHER WITH EACH OTHER WITHOUT DOING ANY "ADDTITION", + + + IS TO COMBINE THE THE LETTERS OR WHATEVER IS GIVEN, NOT TO EXECUTE ADDITION
NOW CHECK THE OPTIONS...
D. has YYYYMMDD, means combination of String and + make it sit together.
I hope it is understandable
easy explain for three lines :
It decodes a base64-encoded string, removes newline characters, gets the current date, and then creates a string representation of the date in the format "yyyymmdd". Therefore, the correct answer is:
D.
This section is not available anymore. Please use the main Exam Page.350-401 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
[Removed]
Highly Voted 1 year, 6 months agomyhdtv6
Highly Voted 1 year, 5 months ago[Removed]
Most Recent 7 months agoshefo1
1 year agoabcdabcd666
1 year, 4 months ago[Removed]
2 years, 8 months agoElJetiIngeniero
2 years, 9 months agoaohashi
2 years, 9 months agopacman64
2 years, 11 months agoLabedu_Singh
2 years, 10 months ago