-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CS2030 Finals Q&A #252
Comments
can tell some about the format of final exam, will we write on paper then scan and submit? Will we have MCQ in the exam? |
Where can the answers for the PYP be found? O.o |
Hi, will the answer key be uploaded? |
any info on the format of the exam? |
Could you go through heap stack and meta space and how they would look like in a program run? |
Are we allowed to refer to our own notes or the internet for finals? |
Possibly any info on how in-depth Lazy eval, parallel and asynchronous topics will be tested? |
Do you have any tips on what to study specifically for the upcoming finals? |
Could you re-explain stack and metaspace concepts again? |
Is google allowed for the exam? |
Will sample answers be provided for the uploaded past year papers? |
Any info on the total number of marks for the paper? |
Hi, would like to ask if we will be able to refer to Java 11 API during the exam? |
Hi, what is the breakdown of the marks in finals? |
hello, can the answer key to the past year papers be uploaded? thank you. |
hi, means our finals will be fully coding questions? |
can we use a monitor for finals? |
The return value of the function depends only on the input parameters passed to the function. The execution of the function has no side effects. Pure function is not tested for finals as stated in the announcement |
Yep prof mentioned earlier in the announcement that Lec 12 content wont be tested (part of which entails pure functions) ^ |
thx @jessraphael and @salteefish .... sry didn't attend the last lecture :-( |
Will the format be similar to PYPs like expected outputs for section 1? |
When do we use fork, join and compute? Ie which context do we use it together with? What are the completable Future equivalents for these operations? |
Hello, I would like to ask what is the difference between thenApply() vs thenApplyAsync()? Does it affect the order of execution? |
@JiaJun98 the Async keyword is used to determine if you want your thenApply() or thenApplyAsync() mapper function to run on the same or different thread respectively. Whether it affects the order of execution or not, i think it depends on the context of the question. For e.g. if the same thread is currently busy and you call a thenApply() mapper function, it will be executed at a later time compared to if you call a thenApplyAsync() function. On the other hand, if the same thread is not busy, then the order of execution for both thenApply() and thenApplyAsync() should be the same. Hope that helps! |
@salteefish Thank you for your help |
@lohwenxin i verified with my ta, it seems that there has been a typo with the provided ans key. The solution should be throw instead of throws |
do we need to write java file in the final exam? |
@lohwenxin nice question, was having the same concern |
@Cattttw from what my TA tells me you need to write java files but it does not need to be compliable, with reference to last sems exam |
@wentinggy hellooo wentinggy! I think this question is just testing on our understanding of the map function and how to apply them in a pipeline way? so like from what i understand, option 3 will only work if x is positive. so if the initial x is negative, both bar() methods wont be applied on a. if x is positive but the first function applied makes x negative, the second one wont be applied. but not sure what you aren't sure about this question so if want to elaborate just go ahead! |
Does anyone know about the exam format? |
Hi, is RecursiveTask examinable? |
Hi, is there any written information about the format of the paper? |
all the best for later every1! |
Hi guys in case some of you isn't aware, there's a link here to some additional Q and A. Regarding exam format, (Short ans is no, we won't know the format till we see the paper...) All the best!! |
Hi All,
We will be opening up a section for you to ask anything about Finals and PYP Questions with regards to CS2030. You can refer to https://libportal.nus.edu.sg/frontend/exam-papers to retrieve any PYPs for CS2030. Do note that not all questions in the PYPs are relevant, so please filter them accordingly
For the catch-up session, feel free to use the Finals Q&A Issue template to post any question with regards to that. Do take this opportunity to gain some class ;participation by answering and discussing the answers with your fellow peers.
We will address any outstanding questions after Friday.
Other than that, have a great reading week!
Regards,
CS2030 teaching team
The text was updated successfully, but these errors were encountered: