Skip to content
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

Open
seanlowjk opened this issue Apr 19, 2021 · 39 comments
Open

CS2030 Finals Q&A #252

seanlowjk opened this issue Apr 19, 2021 · 39 comments
Labels
🧠 Finals Q&A Questions related to Finals

Comments

@seanlowjk
Copy link
Contributor

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

@seanlowjk seanlowjk added the 🧠 Finals Q&A Questions related to Finals label Apr 19, 2021
@seanlowjk seanlowjk pinned this issue Apr 19, 2021
@Guo-Yujia
Copy link

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?

@Martini-Chwang
Copy link

Where can the answers for the PYP be found? O.o

@ryyant
Copy link

ryyant commented Apr 19, 2021

Hi, will the answer key be uploaded?

@JoelToh404
Copy link

any info on the format of the exam?

@ShyamalSankar
Copy link

Could you go through heap stack and meta space and how they would look like in a program run?

@itsjiaming
Copy link

Are we allowed to refer to our own notes or the internet for finals?

@ryo-wijaya
Copy link

Possibly any info on how in-depth Lazy eval, parallel and asynchronous topics will be tested?

@KevinTan1203
Copy link

Do you have any tips on what to study specifically for the upcoming finals?

@Joeltan15
Copy link

Could you re-explain stack and metaspace concepts again?

@salteefish
Copy link

Is google allowed for the exam?

@jessraphael
Copy link

Will sample answers be provided for the uploaded past year papers?

@arjann57
Copy link

Any info on the total number of marks for the paper?

@eugenelimnus
Copy link

Hi, would like to ask if we will be able to refer to Java 11 API during the exam?

@Deshun99
Copy link

Hi, what is the breakdown of the marks in finals?

@emilykokfangning
Copy link

hello, can the answer key to the past year papers be uploaded? thank you.

@nauyc
Copy link

nauyc commented Apr 21, 2021

hi, means our finals will be fully coding questions?

@elizabethh07
Copy link

can we use a monitor for finals?

@chamath2030
Copy link

what is a pure function?

image

@jessraphael
Copy link

jessraphael commented Apr 21, 2021

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

@salteefish
Copy link

Yep prof mentioned earlier in the announcement that Lec 12 content wont be tested (part of which entails pure functions) ^

@chamath2030
Copy link

thx @jessraphael and @salteefish .... sry didn't attend the last lecture :-(

@SW-bza
Copy link

SW-bza commented Apr 21, 2021

Will the format be similar to PYPs like expected outputs for section 1?

@chamath2030
Copy link

hi guys, i understand that only the first part of lazy evaluation is tested. can i check if the following question is considered the first part? since we did learn about caching in the first part

image

@ShyamalSankar
Copy link

ShyamalSankar commented Apr 22, 2021

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?

@wentinggy
Copy link

hi friends, I dont really understand what's going on in this question. Thank you!
Screenshot 2021-04-23 at 9 54 10 PM

@JiaJun98
Copy link

JiaJun98 commented Apr 24, 2021

Hello, I would like to ask what is the difference between thenApply() vs thenApplyAsync()? Does it affect the order of execution?

@lohwenxin
Copy link

photo_2021-04-24_22-32-04

Hello! I would like to ask for this qn, if it is throwing a new exception, should the keyword be throw or throws? From the lecture slide the keyword was throw, so I am confused as the solution says throws.

@salteefish
Copy link

@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!

@JiaJun98
Copy link

@salteefish Thank you for your help

@salteefish
Copy link

@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

@Cattttw
Copy link

Cattttw commented Apr 26, 2021

do we need to write java file in the final exam?

@downmeanhigh
Copy link

@lohwenxin nice question, was having the same concern

@SrinivasG99
Copy link

@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

@wenshienyap
Copy link

@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!

@yowyuxuan
Copy link

Does anyone know about the exam format?

@zzikry98
Copy link

Hi, is RecursiveTask examinable?

@Archduck4
Copy link

Hi, is there any written information about the format of the paper?

@chamath2030
Copy link

all the best for later every1!

@chenkang8
Copy link

chenkang8 commented Apr 27, 2021

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!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧠 Finals Q&A Questions related to Finals
Projects
None yet
Development

No branches or pull requests