Latest Entries »

DV Run 2016


logo-tfi-1dv run

Pada tanggal 4 Desember 2016, Saya Agustinus Dios mahasiswa dari Bina Nusantara University jurusan Teknik Informatika (1801408792) bersama teman-teman saya pergi ke Pasar Seni Ancol pada pukul 6 pagi dalam rangka charity run yaitu DV Run yang di selenggarakan oleh UKM KMBD dari Universitas Bina Nusantara, didukung oleh Teach For Indonesia dan lainnya. Acara DV Run yang bertema “Unleash The Hero in You” yang memuat harapan kita semua dapat membantu memperjuangkan hak-hak dasar anak Indonesia yang kurang beruntung terutama di bidang pendidikan View full article »

Advertisements

Run For Leprosy adalah charity event untuk kita mengingatkan kita dan membantu pada orang yang terkena penyakit kusta (leprosy) pada event yang di adakan pada tanggal 15 maret 2015 ini, yang pesertanya lebih dari 5000 orang berlari sejauh 5KM dan 10KM dengan awal start dan finish di Binus Alam Sutra. Dana dari acara ini juga disumbangkan untuk orang yang terkena penyakit kusta, dengan berlari kita juga menjadi lebih sehat untuk menghindari penyakit-penyakit. View full article »


7. Assume the following JavaScript program was interpreted using static-scoping rules. What value of x is displayed in function sub1? Under dynamic-scoping rules, what value of x is displayed in function sub1 ?
Answer :
var x;
function sub1() {
document.write(“x = ” + x + “<br />”);
}
function sub2() {
var x;
x = 10;
sub1();
}
x = 5;
sub2();
Answer:
Static scope: x=5, Dynamic scoping: x=10.

View full article »


16. What is the referencing environment of a statement?
Answer :
The referencing environment of a statement is the collection of all variables that are visible in the statement. The referencing environment of a statement in a static-scoped language is the variables declared in its local scope plus the collection of all variables of its ancestor scopes that are visible.

View full article »


6. Given the following grammar and the right sentential form, draw a parse tree and show the phrases and simple phrases, as well as the handle.
Answer :
S → AbB bAc A → Ab aBB B → Ac cBb c a.
a. aAcccbbc
S -> AbB -> aBBbB -> aAcBbB -> aAccBbbB -> aAcccbbc
b. AbcaBccb
S -> AbB -> AbcBb -> AbcAcb -> AbcaBBcb -> AbcaBccb
c. baBcBbbc
S -> bAc -> baBBc -> baBcBbc -> baBcBbbc

View full article »


16. What is the FIRST set for a given grammar and sentential form?
Answer :
FIRST( ) = {a => * a } (If => * , is in FIRST( ))
in which =>* means 0 or more derivation steps
17. Describe the pairwise disjointness test.

View full article »


Questions:

14. Draw parse trees for the sentences aabb and aaaabbbb, as derived from the grammar of Problem 13

15. Convert the BNF of Example 3.1 to EBNF.

16. Convert the BNF of Example 3.3 to EBNF.

17. Convert the following EBNF to BNF: S → A{bA} A → a[b]A

18. What is the difference between an intrinsic attribute and a nonintrinsic synthesized attribute?

View full article »


Questions:

16. In denotational semantics, what are the syntactic and semantic domains?
17. What is stored in the state of a program for denotational semantics?
18. Which semantics approach is most widely known?
19. What two things must be defined for each language entity in order to construct a denotational description of the language?
20. Which part of an inference rule is the antecedent?  View full article »


Questions:

14. What are the arguments both for and against the idea of a typeless language?
15. Are there any logic programming languages other than Prolog?
16. What is your opinion of the argument that languages that are too complex are too dangerous to use, and we should therefore keep all languages small and simple?
17. Do you think language design by committee is a good idea? Support your opinion! View full article »


Questions:

16. In what way are Scheme and Common LISP opposites of each other?
17. What dialect of LISP is used for introductory programming courses at some universities?
18. What two professional organizations together designed ALGOL 60?
19. In what version of ALGOL did block structure appear?
20. What missing language element of ALGOL 60 damaged its chances for widespread use?
21. What language was designed to describe the syntax of ALGOL 60? View full article »