Midterm exam TDT4165 Programming languages Midtsemestereksamen TDT4165 Programmeringsspråk SOLUTIONS / LØSNINGER
|
|
|
- Kristine Knutsen
- 9 år siden
- Visninger:
Transkript
1 Midterm exam TDT4165 Programming languages Midtsemestereksamen TDT4165 Programmeringsspråk SOLUTIONS / LØSNINGER Date / Dato October 18 th 2010 / 18. oktober 2010 Time / Tid Language / Språk 75 minutes English / Bokmål Contact / Kontakt: Hans Christian Falkenberg ( ) Support code / Hjelpemiddelkode: C. No written / handwritten materials. Only specified, simple calculator. Ingen skrevne / håndskrevne hjelpemidler. Kun bestemt, enkel kalkulator. The weighted sum of this and the final exam, with weights being 30% and 70% respectively, is compared to the final exam only (ie. weight 0% and 100% respectively). The best of these two sums will decide your grade. Each task have zero, one or more correct options. Correct options that are marked yield 2 points. Incorrect options that are marked yield minus 1 point. Marks must be made on the given answer sheet, which must have this identifier: 55 All code snippets are Oz code. There are many tasks. Do the ones you find easy first and postpone those more difficult. Each option has been placed in random order, avoiding human bias. Den vektede summen av denne og den elige eksamen, med hhv. 30% og 70% vekt, sammenlignes med kun den elige eksamen (dvs. vektet hhv. 0% og 100%). Den beste av disse to summene vil bestemme karakteren din. Hver oppgave har null, ett eller flere riktige alternativer. Riktige alternativer som er markerte gir 2 poeng. Uriktige alternativer som er markerte gir minus 1 poeng. Markeringer må skje på gitt svarark, som må ha følge svararkidentifikator: 55 Alle kodesnutter er Oz-kode. Det er mange oppgaver. Gjør de du synes er lette først og utsett de som er vanskeligere. Hvert alternativ har blitt plassert i tilfeldig rekkefølge for å unngå menneskelig skjevhet. 1 / 13
2 Task 1 Which strings can be generated by the following grammar? Hvilke strenger kan genereres av den følge grammatikken? V = { a, e, o } S = { b, d, f, g } R = { (a, beb), (a, aa), (a, e), (e, fo), (e, og), (o, ε), (o, dde) } v s = a a) abba This contains variables and is thus not a string of the language b) fddg a -> e -> fo -> fdde -> fddog -> fddεg -> fddg c) edde This contains variables and is thus not a string of the language d) bbg a -> aa -> beba -> bebe -> bebog -> bebεg -> bebg -> (e will produce a symbol) e) fg a -> aa -> ea -> foa -> fεa -> fa -> fe -> fog -> fεg -> fg f) gdd... -> gdde -> (both rules for e contain a symbol) g) ε Only o can produce an empty string, but a symbol will always be produced with o Task 2 Which are context-free languages? Hvilke er kontekst-frie språk? a) Regular languages / Regulære språk Regular languages is a sub-set of context-free languages. b) V = { v }, S = { a, b }, R = { (v, a) }, v s = v All rules (well, there is just one rule) are on the form (v, γ) where v V and γ (V S)*. c) Context-sensitive languages / Kontekst-sensitive språk Context-sensitive languages is a super-set of context-free languages. d) V = { v }, S = { a, b }, R = { (v, va), (v, abba) }, v s = v All rules (both of them...) are on the form (v, γ). e) V = { u, v }, S = { a, b }, R = { (v, va), (uvu, abba) }, v s = u The rule (uvu, abba) is not on the form (v, γ). Task 3 A grammar can be... En grammatikk kan være... a) stateful / tilstandsfull It's programs that are stateful; and semantics that allow them to be. b) written in Backus-Naur form / skrevet i Backus-Naur-form c) ambiguous / tvetydig d) incomplete / ufullstig e) semantics / semantikk If anything, grammar is syntax. 2 / 13
3 This is the syntax of the declarative kernel language defined in chapter 2.3 of CTMCP: Dette er syntaksen for det deklarative kjernespråket definert i CTMCPs kapittel 2.3: <statement> ::= skip <statement> <statement> local <id> in <statement> <id> = <id> <id> = <value> if <id> then <statement> else <statement> case <id> of <pattern> then <statement> else <statement> { <id> { <id> }* } <value> ::= <number> <record> <procedure> <number> ::= <integer> <float> <pattern> ::= <record> <record> ::= <literal> <literal> ( { <feature>:<id> }* ) <procedure> ::= proc { $ { <id> }* } <statement> <literal> ::= <atom> <bool> <feature> ::= <atom> <bool> <integer> <bool> ::= true false Answer sheet / Svarark: 55 <id> starts with an upper case letter, <atom> starts with a lower case letter, <float> has a dot and a fractional part while <integer> has no dot. Beyond that, the exact definitions of these are not important. Task 4 Which are terminals in the grammar above? Hvilke er terminaler i grammatikken ovenfor? a) <statement> b) <pattern> c) <bool> d) <value> All options are non-terminals. Examples of terminals are «true», «local» and «then». Task 5 Which properties applies to the declarative kernel language with the syntax above? Hvilke egenskaper gjelder for det deklarative kjernespråket med syntaksen ovenfor? a) It contains lots of syntactic sugar / Det inneholder mye syntaktisk sukker It's the practical language that has lots of syntactic sugar for constructs on top of the declarative kernel language. b) It supports the object-oriented paradigm well / Det støtter det objektorienterte paradigmet godt Obviously not, there is no syntax for objects. c) It cannot be exted to support exceptions / Det kan ikke utvides til å støtte unntak Yes, it can chapter 2.7 does this. d) It's sequential / Det er sekvensielt The kernel language with concurrency is introduced in chapter 4. e) It's grammar is unambiguous / Dets grammatikk er utvetydig (This option is removed. The intented answer was wrong and it was only vaguely midterm syllabus.) f) It allows recursive procedure calls / Det tillater rekursive prosedyrekall A procedure contains a statement and a statement can be a procedure call. 3 / 13
4 Task 6 Which of the following are valid programs according to the grammar above? Hvilke av de følge er gyldige programmer i følge grammatikken ovenfor? a) local X in if X then skip else skip b) declare local Foo in Foo = 2 c) if X then skip else skip d) local Y in Y = X This is valid in the grammar. Even though the semantics require that X be declared, so it's not a valid Oz program (but that was not the question). e) local R in local VN in VN = nil local V3 in V3 = 3 local V2 in V2 = 2 local T3 in T3 = ' '(1:V3 2:VN) local L in L = ' '(1:V2 2:T3) case 2 3 nil L of H T ' '(1:H 2:T) then R = H else skip Needed additions and subtractions to make all valid marked above. Task 7 ( [ ( skip, { } ) ], { } ) and ( { [ ( skip, { } ) ] }, { } ) are... ( [ ( skip, { } ) ], { } ) og ( { [ ( skip, { } ) ] }, { } ) er... a) valid initial states of the sequential and concurrent abstract machine, respectively / gyldige start-tilstander i hhv. den sekvensielle og samtidige abstrakte maskinen A single semantic statement with an empty environment: ( skip, { } ) This is within a list, the semantic stack. On the right, this is within the multi-set of semantic stacks corresponding to threads. The right empty curly brackets represent empty single-assignment stores. b) valid final states of the concurrent and sequential abstract machine, respectively / gyldige slutt-tilstander i hhv. den samtidige og sekvensielle abstrakte maskinen c) valid final states of the sequential and concurrent abstract machine, respectively / gyldige slutt-tilstander i hhv. den sekvensielle og samtidige abstrakte maskinen d) valid initial states of the concurrent and sequential abstract machine, respectively / gyldige start-tilstander i hhv. den samtidige og sekvensielle abstrakte maskinen 4 / 13
5 Task 8 local Y X = 2 in Y = proc {$ A B C} if A < Limit then C = X * B else local P = Y in local Y in {P A-1 B Y} C = B * Y {Y 2 10 Result} In the code above... I koden ovenfor... a) Y maps to at least three different variables (assuming the else clause would run) / peker Y på minst tre forskjellige variabler (om man antar at else-koden vil kjøre) Y is only declared twice. b) X occurs as an external reference / forekommer X som en ekstern referanse X is used within procedure and declared outside. c) P occurs as an external reference / forekommer P som en ekstern referanse P is declared within the procedure. d) Y occurs as a free identifier / forekommer Y som en fri identifikator The first thing that happens is Y being declared, it cannot be free after that. e) Y occurs as a formal parameter / forekommer Y som et formelt parameter A, B and C are formal parameters. Y is used as an actual paramater. f) X occurs as a free identifier / forekommer X som en fri identifikator The second thing that happens is X being declared, it cannot be free after that. g) Limit occurs as a free identifier / forekommer Limit som en fri identifikator Limit is not declared in the code snippet. h) Limit occurs as an external reference / forekommer Limit som en ekstern referanse Limit is used within the procedure. 5 / 13
6 Task 9 Oz has... / Oz har... a) dynamic typing / dynamisk typing Meaning the type of a variable is determined runtime (when it is bound to a value). b) static scoping / statiske navneområder Also called lexical scoping, this means the environment for a procedure is decided by where it is defined. c) static typing / statisk typing d) weak typing / svak typing e) weak scoping / svake navneområder f) strong scoping / sterke navneområder This is a mix of the expressions «strong typing» and «dynamic scoping», hope you didn't get it mixed up :) g) dynamic scoping / dynamiske navneområder h) strong typing / sterk typing Meaning there is no automatic type conversation. Ie. operations (like +) cannot be performed on two variables of different type. 6 / 13
7 Task 10 What value is shown by the following program? Hvilken verdi vises av det følge programmet? local P X = 1 in local X = 2 in P = proc {$} {Show X} local X = 3 in {P} a) None; it does not compile / Ingen; det kompilerer ikke b) None; it fails when running / Ingen; det feiler når det kjører c) 1 d) 2 e) 3 Task 11 What value would be shown by the program above if Oz used the other major scoping scheme? Hvilken verdi ville blitt vist av programmet ovenfor dersom Oz brukte den andre hovedtypen navneområder? a) 3 b) None; it would fail when running / Ingen; det ville feilet når det kjørte c) 2 d) 1 e) None; it would not compile / Ingen; det ville ikke kompilert 7 / 13
8 Code snippet S1 / Kodesnutt S1: fun {S1 L} case L of H T then 2 + H {S1 T} else nil Code snippet S2 / Kodesnutt S2: fun {S2 Xs} local Result Support in proc {Support Xs Result} case Xs of nil then Result = nil [] Xh Xt then local RestResult in Result = 10 + Xh RestResult {Support Xt RestResult} {Support Xs Result} Result Code snippet S3 / Kodesnutt S3: proc {S3 Ys R} case Ys of nil then R = 0 [] Yh Yt then R = Yh + {S3 Yt $} Code snippet S4 / Kodesnutt S4: fun {S4 Ys R} case Ys of Yh Yt then {S4 Yt Yh + R} else R Code snippet S5 / Kodesnutt S5: fun {S5 L} case L of H T then 10 * H {S5 T} {S5 T} else nil 8 / 13
9 Task 12 Which of the above code snippets have a recursive procedure or function? Hvilke av kodesnuttene ovenfor har en rekursiv prosedyre eller funksjon? a) S3 b) S1 c) S5 d) S2 e) S4 S1, S3 and S4 call themselves, Support calls itself, and S5 even calls itself twice. Task 13 Which of the above code snippets have a tail-recursive procedure or function? Hvilke av kodesnuttene ovenfor har en hale-rekursiv prosedyre eller funksjon? Answer sheet / Svarark: 55 a) S5 The last recursive call is tail-recursive, but prevents the first from being tail-recursive. b) S4 Yh+R is done before the call, there is no stack growth. c) S1 The value to be returned (a list record) is created with an unbound variable before the call. d) S3 The addition must be done after the recursion completes and is put on the stack. e) S2 Obviously tail-recursive, the call is the last statement in Support. Task 14 Which of the above code snippets can do an iterative computation? Hvilke av kodesnuttene ovenfor kan gjøre en iterativ beregning? a) S5 b) S1 c) S3 d) S2 e) S4 The ones that are tail-recursive. Task 15 Which of these functions will well support implementation of the functionality of S1? Hvilke av disse funksjonene vil støttet godt å implementere S1 sin funksjonalitet? a) StreamMap b) StreamSum c) Sum d) StreamFilter e) Filter f) Map Filter = fun { $ List Function }... Map = fun { $ List Function }... Sum = fun { $ List }... Sum takes a list, that would just complicate matters. Below is how to do it with Map. Using StreamMap instead of Map will be identical, except StreamMap would to work in another thread (or several threads if it was implemented lazy). fun {S1 L} {Map S1 fun {$ H} 2 + H } 9 / 13
10 Task 16 What will {S5 [1 2 3]} return? Hva vil {S5 [1 2 3]} returnere? a) [ ] b) [ ] c) Nothing; it never returns / Ingenting; den returnerer aldri d) [10 [20 [30 nil] 30 nil] 20 [30 nil] 30 nil] e) [ nil 30 nil nil 30 nil] Task 17 Given the following abstract machine state, what will be shown (at least one option is correct)? Gitt den følge abstrakt maskin-tilstanden, hva vil vises (minst ett alternativ er riktig)? ( [ ( <s1>, { X = v1 } ), ( <s2>, { X => v2, Y => v3 } ), ( <s3>, X => v4, Y => v5 ) ], { v1=foo(1), v2=2, v3=3, v4=4, v5=5 } ) <s1> = «raise X» <s2> = «catch foo(x) then {Show X#Y} raise X» <s3> = «catch foo(y) then {Show X#Y}» a) 2#5 b) 1#3, 4#1 c) 2#3, 4#5 d) 2#3 e) 4#1 f) 1#5 g) 1#3 The second catch pattern will not match, since the raised value is the number from the first match, not a record. The X in the first catch's environment is hidden by the X in the pattern. Task 18 What does this function do? Hva gjør denne funksjonen? fun {UnknownFunction X Y} (A#B)#(C#D) = X#Y in B = C A#D a) App b) Filter c) Zip d) Enumerate Of two diff lists. Task 19 The function above is a... Funksjonen ovenfor er en... a) Producer / Produsent b) Consumer / Konsument c) Transducer / Omformer Functions of all the kinds listed in the options to list/stream traversal. 10 / 13
11 Task 20 What does this function do? Hva gjør denne funksjonen? fun {UnknownFunction L N T C} case L of nil then N [] X Y then {C {T X} {UnknownFunction Y N T C} } a) Columns (transpose) b) FoldLeft c) FoldRight d) Filter Task 21 What properties does the following stack data structure have? Hvilke egenskaper har den følge stakk-datastrukturen? fun {New} nil fun {Push Stack Item} Item Stack fun {Pop Top Rest?Item} Item = Top Rest fun {IsEmpty Stack} Stack == nil a) Embedded / Innebygget b) Non-embedded / Ikke innebygget c) Unbundled / Ubuntet d) Insecure / Usikker e) Secure / Sikker f) Bundled / Buntet 11 / 13
12 Task 22 What can this program show (at least one option is correct)? Hva kan dette programmet vise (minst ett alternativ er riktig)? local X in proc {X N} if N > 0 then thread {Show N} {X thread N-1 } {X 3} a) 3, 1, 1 All calls of X will have different values of N. b) 3, 1, 2 The showing of 2 could very well be bypassed by the showing of 1 by scheduling. c) 3, 2, 1 This is what is likely to be printed. d) 1, 2, 3 Just put {Delay 1000*N} in front of {Show N} and this will happen. e) 3, 2, 0 N will always be exactly one smaller in each recursive call. The fact that N-1 is computed in a separate thread has no effect on what can be shown (though it might affect probabilities ever so slightly). Task 23 Which are other representations of [1 2 3]? / Hvilke er andre representasjoner av [1 2 3]? a) [1 2 3] nil This is a list of lists (well, a list with only one list, really). b) nil c) d) (1 2 3 X)#X This is a diff list. e) ' '(1:1 2:' '(2 ' '(3 nil))) This is a mix of record and tuple syntax. f) [1 2 3 nil] g) ' '(1 ' '(2 ' '(3 nil))) This is equal to option e), but with only tuple syntax. h) (1 2 3 _)#_ This is potentially also a diff list, but there are two different unbound variables. They may be bound in such a way that we get the diff list representing [1 2 3], but it could easily be bound another way too. If the variable on the right side of # were to be bound to something that the left side does not in, it would not even be a diff list (eg. (1 2 3 nil)#4). 12 / 13
13 Answer sheet / Svarark Candidate number / Kandidatnummer: There are different answer sheets. This is sheet 55. Make sure this matches your front page. Ring each letter corresponding to a correct option for the task. Watch out options appear in random order! Det er forskjellige svarark. Dette er ark 55. Sørg for at dette stemmer overens med forsiden din. Sett en ring rundt hver bokstav som tilsvarer et riktig alternativ for oppgaven. Pass på alternativene forekommer i tilfeldig rekkefølge! Example g d b e a f c h Task 1 e a g c d b h f Task 2 d a h g e c f b Task 3 e g h a d b c f Task 4 c h e g d f b a Task 5 h e a b c g f d Task 6 a h f c e g d b Task 7 d g b c h f a e Task 8 h f g c b d a e Task 9 h b c d a e f g Task 10 c e d a h f b g Task 11 h e c b a f d g Task 12 a e h d c g b f Task 13 g b d f h a e c Task 14 b e c a h f d g Task 15 c b f h d e a g Task 16 d f g h a c e b Task 17 b e c g d h f a Task 18 a h c b e d g f Task 19 b f d g e h c a Task 20 f e h g a c d b Task 21 d g c h e f a b Task 22 g d f a e h c b Task 23 c f g b d a e h 13 / 13
Midterm exam TDT4165 Programming languages Midtsemestereksamen TDT4165 Programmeringsspråk
Midterm exam TDT4165 Programming languages Midtsemestereksamen TDT4165 Programmeringsspråk Date / Dato October 18 th 2010 / 18. oktober 2010 Time / Tid Language / Språk 75 minutes English / Bokmål Contact
Midterm exam TDT4165 Programming languages Midtsemestereksamen TDT4165 Programmeringsspråk SOLUTIONS / LØSNINGER
Midterm exam TDT4165 Programming languages Midtsemestereksamen TDT4165 Programmeringsspråk SOLUTIONS / LØSNINGER Date / Dato October 18 th 2010 / 18. oktober 2010 Time / Tid Language / Språk 75 minutes
Slope-Intercept Formula
LESSON 7 Slope Intercept Formula LESSON 7 Slope-Intercept Formula Here are two new words that describe lines slope and intercept. The slope is given by m (a mountain has slope and starts with m), and intercept
Unit Relational Algebra 1 1. Relational Algebra 1. Unit 3.3
Relational Algebra 1 Unit 3.3 Unit 3.3 - Relational Algebra 1 1 Relational Algebra Relational Algebra is : the formal description of how a relational database operates the mathematics which underpin SQL
Databases 1. Extended Relational Algebra
Databases 1 Extended Relational Algebra Relational Algebra What is an Algebra? Mathematical system consisting of: Operands --- variables or values from which new values can be constructed. Operators ---
UNIVERSITETET I OSLO
UNIVERSITETET I OSLO Det matematisk-naturvitenskapelige fakultet Eksamen i INF 3230 Formell modellering og analyse av kommuniserende systemer Eksamensdag: 4. juni 2010 Tid for eksamen: 9.00 12.00 Oppgavesettet
5 E Lesson: Solving Monohybrid Punnett Squares with Coding
5 E Lesson: Solving Monohybrid Punnett Squares with Coding Genetics Fill in the Brown colour Blank Options Hair texture A field of biology that studies heredity, or the passing of traits from parents to
UNIVERSITY OF OSLO DEPARTMENT OF ECONOMICS
UNIVERSITY OF OSLO DEPARTMENT OF ECONOMICS Postponed exam: ECON420 Mathematics 2: Calculus and linear algebra Date of exam: Tuesday, June 8, 203 Time for exam: 09:00 a.m. 2:00 noon The problem set covers
Syntax/semantics - I INF 3110/ /29/2005 1
Syntax/semantics - I Program program execution Compiling/interpretation Syntax Classes of langauges Regular langauges Context-free langauges Scanning/Parsing Meta models INF 3/4-25 8/29/25 Program
UNIVERSITETET I OSLO
UNIVERSITETET I OSLO Det matematisk-naturvitenskapelige fakultet Eksamen i INF 3230 Formell modellering og analyse av kommuniserende systemer Eksamensdag: 4. april 2008 Tid for eksamen: 9.00 12.00 Oppgavesettet
Dynamic Programming Longest Common Subsequence. Class 27
Dynamic Programming Longest Common Subsequence Class 27 Protein a protein is a complex molecule composed of long single-strand chains of amino acid molecules there are 20 amino acids that make up proteins
EN Skriving for kommunikasjon og tenkning
EN-435 1 Skriving for kommunikasjon og tenkning Oppgaver Oppgavetype Vurdering 1 EN-435 16/12-15 Introduction Flervalg Automatisk poengsum 2 EN-435 16/12-15 Task 1 Skriveoppgave Manuell poengsum 3 EN-435
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT Exam: ECON320/420 Mathematics 2: Calculus and Linear Algebra Eksamen i: ECON320/420 Matematikk 2: Matematisk analyse og lineær algebra Date of exam: Friday, May
Call function of two parameters
Call function of two parameters APPLYUSER USER x fµ 1 x 2 eµ x 1 x 2 distinct e 1 0 0 v 1 1 1 e 2 1 1 v 2 2 2 2 e x 1 v 1 x 2 v 2 v APPLY f e 1 e 2 0 v 2 0 µ Evaluating function application The math demands
Neural Network. Sensors Sorter
CSC 302 1.5 Neural Networks Simple Neural Nets for Pattern Recognition 1 Apple-Banana Sorter Neural Network Sensors Sorter Apples Bananas 2 Prototype Vectors Measurement vector p = [shape, texture, weight]
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT Utsatt ksamen i: ECON3120/4120 Matematikk 2: Matematisk analyse og lineær algebra Postponed exam: ECON3120/4120 Mathematics 2: Calculus and linear algebra Eksamensdag:
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT Bokmål Eksamen i: ECON1210 Forbruker, bedrift og marked Exam: ECON1210 Consumer Behaviour, Firm behaviour and Markets Eksamensdag: 12.12.2014 Sensur kunngjøres:
Trigonometric Substitution
Trigonometric Substitution Alvin Lin Calculus II: August 06 - December 06 Trigonometric Substitution sin 4 (x) cos (x) dx When you have a product of sin and cos of different powers, you have three different
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT Eksamen i: ECON30/40 Matematikk : Matematisk analyse og lineær algebra Exam: ECON30/40 Mathematics : Calculus and Linear Algebra Eksamensdag: Tirsdag 0. desember
UNIVERSITETET I OSLO
UNIVERSITETET I OSLO Det matematisk-naturvitenskapelige fakultet Eksamen i MAT2400 Analyse 1. Eksamensdag: Onsdag 15. juni 2011. Tid for eksamen: 09.00 13.00 Oppgavesettet er på 6 sider. Vedlegg: Tillatte
Hvor mye teoretisk kunnskap har du tilegnet deg på dette emnet? (1 = ingen, 5 = mye)
Emneevaluering GEOV325 Vår 2016 Kommentarer til GEOV325 VÅR 2016 (emneansvarlig) Forelesingsrommet inneholdt ikke gode nok muligheter for å kunne skrive på tavle og samtidig ha mulighet for bruk av power
Moving Objects. We need to move our objects in 3D space.
Transformations Moving Objects We need to move our objects in 3D space. Moving Objects We need to move our objects in 3D space. An object/model (box, car, building, character,... ) is defined in one position
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT Eksamen i: ECON320/420 Matematikk 2: Matematisk analyse og lineær algebra Exam: ECON320/420 Mathematics 2: Calculus and Linear Algebra Eksamensdag: Tirsdag 7. juni
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT BOKMÅL Eksamen i: ECON1210 - Forbruker, bedrift og marked Eksamensdag: 26.11.2013 Sensur kunngjøres: 18.12.2013 Tid for eksamen: kl. 14:30-17:30 Oppgavesettet er
Information search for the research protocol in IIC/IID
Information search for the research protocol in IIC/IID 1 Medical Library, 2013 Library services for students working with the research protocol and thesis (hovedoppgaven) Open library courses: http://www.ntnu.no/ub/fagside/medisin/medbiblkurs
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT Eksamen i: ECON3120/4120 Matematikk 2: Matematisk analyse og lineær algebra Exam: ECON3120/4120 Mathematics 2: Calculus and Linear Algebra Eksamensdag: Tirsdag
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT Eksamen i: ECON20/420 Matematikk 2: Matematisk analyse og lineær algebra Exam: ECON20/420 Mathematics 2: Calculus and Linear Algebra Eksamensdag: Fredag 2. mai
MID-TERM EXAM TDT4258 MICROCONTROLLER SYSTEM DESIGN. Wednesday 3 th Mars Time:
Side 1 av 8 Norwegian University of Science and Technology DEPARTMENT OF COMPUTER AND INFORMATION SCIENCE MID-TERM EXAM TDT4258 MICROCONTROLLER SYSTEM DESIGN Wednesday 3 th Mars 2010 Time: 1615-1745 Allowed
IN2010: Algoritmer og Datastrukturer Series 2
Universitetet i Oslo Institutt for Informatikk S.M. Storleer, S. Kittilsen IN2010: Algoritmer og Datastrukturer Series 2 Tema: Grafteori 1 Publisert: 02. 09. 2019 Utvalgte løsningsforslag Oppgave 1 (Fra
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT Eksamen i: ECON3120/4120 Mathematics 2: Calculus an linear algebra Exam: ECON3120/4120 Mathematics 2: Calculus an linear algebra Eksamensag: Tirsag 3. juni 2008
Oppgave 1a Definer følgende begreper: Nøkkel, supernøkkel og funksjonell avhengighet.
TDT445 Øving 4 Oppgave a Definer følgende begreper: Nøkkel, supernøkkel og funksjonell avhengighet. Nøkkel: Supernøkkel: Funksjonell avhengighet: Data i en database som kan unikt identifisere (et sett
Hvor mye teoretisk kunnskap har du tilegnet deg på dette emnet? (1 = ingen, 5 = mye)
INF234 Er du? Er du? - Annet Hvor mye teoretisk kunnskap har du tilegnet deg på dette emnet? (1 = ingen, 5 = mye) Hvor mye praktisk kunnskap har du tilegnet deg på dette emnet? (1 = ingen, 5 = mye) Hvor
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT Eksamen i: ECON360/460 Samfunnsøkonomisk lønnsomhet og økonomisk politikk Exam: ECON360/460 - Resource allocation and economic policy Eksamensdag: Fredag 2. november
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT Eksamen i: ECON320/420 Matematikk 2: Matematisk analyse og lineær algebra Exam: ECON320/420 Mathematics 2: Calculus and Linear Algebra Eksamensdag: Onsdag 6. desember
TDT4165 PROGRAMMING LANGUAGES. Exercise 01 Introduksjon til Oz
TDT4165 PROGRAMMING LANGUAGES Fall 2012 Exercise 01 Introduksjon til Oz Denne øvingen vil gjøre deg kjent med Emacs og Mozart. Du må kunne bruke disse verktøyene for å gjøre resten av øvingene. Mozart
Hvor mye praktisk kunnskap har du tilegnet deg på dette emnet? (1 = ingen, 5 = mye)
INF247 Er du? Er du? - Annet Ph.D. Student Hvor mye teoretisk kunnskap har du tilegnet deg på dette emnet? (1 = ingen, 5 = mye) Hvor mye praktisk kunnskap har du tilegnet deg på dette emnet? (1 = ingen,
Han Ola of Han Per: A Norwegian-American Comic Strip/En Norsk-amerikansk tegneserie (Skrifter. Serie B, LXIX)
Han Ola of Han Per: A Norwegian-American Comic Strip/En Norsk-amerikansk tegneserie (Skrifter. Serie B, LXIX) Peter J. Rosendahl Click here if your download doesn"t start automatically Han Ola of Han Per:
Eksamen i TDT4165 Programmeringsspråk
Norges Teknisk-Naturvitenskapelige Universitet Fakultet for Informasjonsteknologi, Matematikk og Elektroteknikk Institutt for Datateknikk og Informasjonsvitenskap Eksamen i TDT4165 Programmeringsspråk
Mathematics 114Q Integration Practice Problems SOLUTIONS. = 1 8 (x2 +5x) 8 + C. [u = x 2 +5x] = 1 11 (3 x)11 + C. [u =3 x] = 2 (7x + 9)3/2
Mathematics 4Q Name: SOLUTIONS. (x + 5)(x +5x) 7 8 (x +5x) 8 + C [u x +5x]. (3 x) (3 x) + C [u 3 x] 3. 7x +9 (7x + 9)3/ [u 7x + 9] 4. x 3 ( + x 4 ) /3 3 8 ( + x4 ) /3 + C [u + x 4 ] 5. e 5x+ 5 e5x+ + C
Den som gjør godt, er av Gud (Multilingual Edition)
Den som gjør godt, er av Gud (Multilingual Edition) Arne Jordly Click here if your download doesn"t start automatically Den som gjør godt, er av Gud (Multilingual Edition) Arne Jordly Den som gjør godt,
Exercise 1: Phase Splitter DC Operation
Exercise 1: DC Operation When you have completed this exercise, you will be able to measure dc operating voltages and currents by using a typical transistor phase splitter circuit. You will verify your
Norsk (English below): Guide til anbefalt måte å printe gjennom plotter (Akropolis)
Norsk (English below): Guide til anbefalt måte å printe gjennom plotter (Akropolis) 1. Gå til print i dokumentet deres (Det anbefales å bruke InDesign til forberedning for print) 2. Velg deretter print
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
UNIVERSIEE I OSLO ØKONOMISK INSIU Eksamen i: ECON320/420 Mathematics 2: Calculus and Linear Algebra Exam: ECON320/420 Mathematics 2: Calculus and Linear Algebra Eksamensdag:. desember 207 Sensur kunngjøres:
EXAM TTM4128 SERVICE AND RESOURCE MANAGEMENT EKSAM I TTM4128 TJENESTE- OG RESSURSADMINISTRASJON
Side 1 av 5 NTNU Norges teknisk-naturvitenskapelige universitet Institutt for telematikk EXAM TTM4128 SERVICE AND RESOURCE MANAGEMENT EKSAM I TTM4128 TJENESTE- OG RESSURSADMINISTRASJON Contact person /
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT Utsatt eksamen i: ECON420 Matematikk 2: Matematisk analyse og lineær algebra Postponed exam: ECON420 Mathematics 2: Calculus and Linear Algebra Eksamensdag: Mandag
KROPPEN LEDER STRØM. Sett en finger på hvert av kontaktpunktene på modellen. Da får du et lydsignal.
KROPPEN LEDER STRØM Sett en finger på hvert av kontaktpunktene på modellen. Da får du et lydsignal. Hva forteller dette signalet? Gå flere sammen. Ta hverandre i hendene, og la de to ytterste personene
3/1/2011. I dag. Recursive descent parser. Problem for RD-parser: Top Down Space. Jan Tore Lønning & Stephan Oepen
INF2820 Datalingvistikk V2011 TABELLPARSING Jan Tore Lønning & Stephan Oepen 1. mars 2011 2 I dag Oppsummering fra sist: Recursive-descent og Shift-reduce parser Svakheter med disse Tabellparsing: Dynamisk
Endelig ikke-røyker for Kvinner! (Norwegian Edition)
Endelig ikke-røyker for Kvinner! (Norwegian Edition) Allen Carr Click here if your download doesn"t start automatically Endelig ikke-røyker for Kvinner! (Norwegian Edition) Allen Carr Endelig ikke-røyker
Graphs similar to strongly regular graphs
Joint work with Martin Ma aj 5th June 2014 Degree/diameter problem Denition The degree/diameter problem is the problem of nding the largest possible graph with given diameter d and given maximum degree
AvtaleGiro beskrivelse av feilmeldinger for oppdrag og transaksjoner kvitteringsliste L00202 levert i CSV fil
AvtaleGiro beskrivelse av feilmeldinger for oppdrag og transaksjoner kvitteringsliste L00202 levert i CSV fil Kvitteringsliste L00202 for avviste oppdrag, transaksjoner og informasjonsmeldinger CSV Format:
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT Eksamen i: ECON1910 Poverty and distribution in developing countries Exam: ECON1910 Poverty and distribution in developing countries Eksamensdag: 1. juni 2011 Sensur
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT Eksamen i: ECON1220 Velferd og økonomisk politikk Exam: ECON1220 Welfare and politics Eksamensdag: 29.11.2010 Sensur kunngjøres: 21.12.2010 Date of exam: 29.11.2010
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT Utsatt eksamen i: ECON1410 - Internasjonal økonomi Exam: ECON1410 - International economics Eksamensdag: 18.06.2013 Date of exam: 18.06.2013 Tid for eksamen: kl.
Universitetet i Bergen Det matematisk-naturvitenskapelige fakultet Eksamen i emnet Mat131 - Differensiallikningar I Onsdag 25. mai 2016, kl.
1 MAT131 Bokmål Universitetet i Bergen Det matematisk-naturvitenskapelige fakultet Eksamen i emnet Mat131 - Differensiallikningar I Onsdag 25. mai 2016, kl. 09-14 Oppgavesettet er 4 oppgaver fordelt på
Dagens tema: Eksempel Klisjéer (mønstre) Tommelfingerregler
UNIVERSITETET I OSLO INF1300 Introduksjon til databaser Dagens tema: Eksempel Klisjéer (mønstre) Tommelfingerregler Institutt for informatikk Dumitru Roman 1 Eksempel (1) 1. The system shall give an overview
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT Eksamen i: ECON320/420 Matematikk 2: Matematisk analyse og lineær algebra Exam: ECON320/420 Mathematics 2: Calculus and Linear Algebra Eksamensdag: Mandag 8. desember
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT Eksamen i: ECON20 Forbruker, bedrift og marked, høsten 2004 Exam: ECON20 - Consumer behavior, firm behavior and markets, autumn 2004 Eksamensdag: Onsdag 24. november
INF Logikk og analysemetoder Forslag til løsning på oppgave fra læreboken
INF4170 - Logikk og analysemetoder Forslag til løsning på oppgave 3.2.1 fra læreboken Joakim Hjertås, [email protected] 7. mars 2004 Sammendrag Disse sidene kommer med forslag til løsning på oppgave 3.2.1
GEO231 Teorier om migrasjon og utvikling
U N I V E R S I T E T E T I B E R G E N Institutt for geografi Emnerapport høsten 2013: GEO231 Teorier om migrasjon og utvikling Innhold: 1. Informasjon om emnet 2. Statistikk 3. Egenevaluering 4. Studentevaluering
FIRST LEGO League. Härnösand 2012
FIRST LEGO League Härnösand 2012 Presentasjon av laget IES Dragons Vi kommer fra Härnosänd Snittalderen på våre deltakere er 11 år Laget består av 4 jenter og 4 gutter. Vi representerer IES i Sundsvall
Stationary Phase Monte Carlo Methods
Stationary Phase Monte Carlo Methods Daniel Doro Ferrante G. S. Guralnik, J. D. Doll and D. Sabo HET Physics Dept, Brown University, USA. [email protected] www.het.brown.edu Introduction: Motivations
UNIVERSITY OF OSLO DEPARTMENT OF ECONOMICS
UNIVERSITY OF OSLO DEPARTMENT OF ECONOMICS English Exam: ECON2915 Economic Growth Date of exam: 25.11.2014 Grades will be given: 16.12.2014 Time for exam: 09.00 12.00 The problem set covers 3 pages Resources
0:7 0:2 0:1 0:3 0:5 0:2 0:1 0:4 0:5 P = 0:56 0:28 0:16 0:38 0:39 0:23
UTKAST ENGLISH VERSION EKSAMEN I: MOT100A STOKASTISKE PROSESSER VARIGHET: 4 TIMER DATO: 16. februar 2006 TILLATTE HJELPEMIDLER: Kalkulator; Tabeller og formler i statistikk (Tapir forlag): Rottman: Matematisk
PATIENCE TÅLMODIGHET. Is the ability to wait for something. Det trenger vi når vi må vente på noe
CARING OMSORG Is when we show that we care about others by our actions or our words Det er når vi viser at vi bryr oss om andre med det vi sier eller gjør PATIENCE TÅLMODIGHET Is the ability to wait for
UNIVERSITETET I OSLO
UNIVERSITETET I OSLO Det matematisk-naturvitenskapelige fakultet Eksamen i INF 3230/4230 Formell modellering og analyse av kommuniserende systemer Eksamensdag: 24. mars 2006 Tid for eksamen: 13.30 16.30
Speed Racer Theme. Theme Music: Cartoon: Charles Schultz / Jef Mallett Peanuts / Frazz. September 9, 2011 Physics 131 Prof. E. F.
September 9, 2011 Physics 131 Prof. E. F. Redish Theme Music: Speed Racer Theme Cartoon: Charles Schultz / Jef Mallett Peanuts / Frazz 1 Reading questions Are the lines on the spatial graphs representing
Enkel og effektiv brukertesting. Ida Aalen LOAD september 2017
Enkel og effektiv brukertesting Ida Aalen LOAD.17 21. september 2017 Verktøyene finner du her: bit.ly/tools-for-testing Har dere gjort brukertesting? Vet du hva dette ikonet betyr? Mobil: 53% sa nei Desktop:
Oppgave. føden)? i tråd med
Oppgaver Sigurd Skogestad, Eksamen septek 16. des. 2013 Oppgave 2. Destillasjon En destillasjonskolonne har 7 teoretiske trinn (koker + 3 ideelle plater under føden + 2 ideellee plater over føden + partielll
Perpetuum (im)mobile
Perpetuum (im)mobile Sett hjulet i bevegelse og se hva som skjer! Hva tror du er hensikten med armene som slår ut når hjulet snurrer mot høyre? Hva tror du ordet Perpetuum mobile betyr? Modell 170, Rev.
Final exam TDT4165 Programming languages Endelig eksamen TDT4165 Programmeringsspråk. Contact / Kontakt: Hans Christian Falkenberg ( )
Fal exam TDT4165 Programmg languages Endelig eksamen TDT4165 Programmergsspråk Date / Dato December 1 st 2010 / 1. desember 2010 Time / Tid Language / Språk 4 hours English / Bokmål Contact / Kontakt:
Andrew Gendreau, Olga Rosenbaum, Anthony Taylor, Kenneth Wong, Karl Dusen
Andrew Gendreau, Olga Rosenbaum, Anthony Taylor, Kenneth Wong, Karl Dusen The Process Goal Definition Data Collection Data Preprocessing EDA Choice of Variables Choice of Method(s) Performance Evaluation
Du må håndtere disse hendelsene ved å implementere funksjonene init(), changeh(), changev() og escape(), som beskrevet nedenfor.
6-13 July 2013 Brisbane, Australia Norwegian 1.0 Brisbane har blitt tatt over av store, muterte wombater, og du må lede folket i sikkerhet. Veiene i Brisbane danner et stort rutenett. Det finnes R horisontale
Endringer i neste revisjon av EHF / Changes in the next revision of EHF 1. October 2015
Endringer i neste revisjon av / Changes in the next revision of 1. October 2015 INFORMASJON PÅ NORSK 2 INTRODUKSJON 2 ENDRINGER FOR KATALOG 1.0.3 OG PAKKSEDDEL 1.0.2 3 ENDRINGER FOR ORDRE 1.0.3 4 ENDRINGER
Appendix B, not for publication, with screenshots for Fairness and family background
Appendix B, not for publication, with screenshots for Fairness and family background Ingvild Almås Alexander W. Cappelen Kjell G. Salvanes Erik Ø. Sørensen Bertil Tungodden This document shows screenshots
C13 Kokstad. Svar på spørsmål til kvalifikasjonsfasen. Answers to question in the pre-qualification phase For English: See page 4 and forward
C13 Kokstad Svar på spørsmål til kvalifikasjonsfasen Answers to question in the pre-qualification phase For English: See page 4 and forward Norsk Innhold 1. Innledning... 2 2. Spørsmål mottatt per 28.11.12...
Kartleggingsskjema / Survey
Kartleggingsskjema / Survey 1. Informasjon om opphold i Norge / Information on resident permit in Norway Hvilken oppholdstillatelse har du i Norge? / What residence permit do you have in Norway? YES No
Administrasjon av postnummersystemet i Norge Post code administration in Norway. Frode Wold, Norway Post Nordic Address Forum, Iceland 5-6.
Administrasjon av postnummersystemet i Norge Frode Wold, Norway Post Nordic Address Forum, Iceland 5-6. may 2015 Postnumrene i Norge ble opprettet 18.3.1968 The postal codes in Norway was established in
UNIVERSITY OF OSLO DEPARTMENT OF ECONOMICS
UNIVERSITY OF OSLO DEPARTMENT OF ECONOMICS English Postponed exam: ECON2915 Economic growth Date of exam: 11.12.2014 Time for exam: 09:00 a.m. 12:00 noon The problem set covers 4 pages Resources allowed:
UNIVERSITETET I OSLO ØKONOMISK INSTITUTT
1 UNIVERSITETET I OSLO ØKONOMISK INSTITUTT BOKMÅL Utsatt eksamen i: ECON2915 Vekst og næringsstruktur Eksamensdag: 07.12.2012 Tid for eksamen: kl. 09:00-12:00 Oppgavesettet er på 5 sider Tillatte hjelpemidler:
Vurderingsveiledning SPR3008 Internasjonal engelsk Eleven gir stort sett greie og relevante svar på oppgavene i samsvar med oppgaveordlyden.
Answering Exam Tasks Currently the exam for this course has two tasks. Task 1 is referred to as the short task and task 2 is referred to as the long task. There are sometimes two parts to Task 1, a and
GYRO MED SYKKELHJUL. Forsøk å tippe og vri på hjulet. Hva kjenner du? Hvorfor oppfører hjulet seg slik, og hva er egentlig en gyro?
GYRO MED SYKKELHJUL Hold i håndtaket på hjulet. Sett fart på hjulet og hold det opp. Det er lettest om du sjølv holder i håndtakene og får en venn til å snurre hjulet rundt. Forsøk å tippe og vri på hjulet.
Mannen min heter Ingar. Han er også lege. Han er privatpraktiserende lege og har et kontor på Grünerløkka sammen med en kollega.
Kapittel 2 2.1.1 Familien min Hei, jeg heter Martine Hansen. Nå bor jeg i Åsenveien 14 i Oslo, men jeg kommer fra Bø i Telemark. Jeg bor i ei leilighet i ei blokk sammen med familien min. For tiden jobber
EKSAMENSOPPGAVE I BI2034 Samfunnsøkologi EXAMINATION IN: BI Community ecology
Norges teknisk-naturvitenskapelige universitet Institutt for Biologi EKSAMENSOPPGAVE I BI2034 Samfunnsøkologi EXAMINATION IN: BI2034 - Community ecology - Faglig kontakt under eksamen/contact person/subject
HONSEL process monitoring
6 DMSD has stood for process monitoring in fastening technology for more than 25 years. HONSEL re- rivet processing back in 990. DMSD 2G has been continuously improved and optimised since this time. All
Løsningsforslag for oppgavene i operativsystemer og C, uke 38 ( )
Løsningsforslag for oppgavene i operativsystemer og C, uke 38 (19.9-23.9) På terminalstue: Oppgave 1: List alle filer og kataloger under /usr/bin som har filnavn som begynner på b. ls /usr/bin/b* Oppgave
EMPIC MEDICAL. Etterutdanningskurs flyleger 21. april Lars (Lasse) Holm Prosjektleder Telefon: E-post:
EMPIC MEDICAL Etterutdanningskurs flyleger 21. april 2017 Lars (Lasse) Holm Prosjektleder Telefon: +47 976 90 799 E-post: [email protected] [email protected] Luftfartstilsynet T: +47 75 58 50 00 F: +47 75 58 50
Eksamen ENG1002 og ENG1003 Engelsk fellesfag Elevar og privatistar/elever og privatister. Nynorsk/Bokmål
Eksamen 19.11.2015 ENG1002 og ENG1003 Engelsk fellesfag Elevar og privatistar/elever og privatister Nynorsk/Bokmål Nynorsk Eksamensinformasjon Eksamenstid Hjelpemiddel Eksamen varer i 5 timar. Alle hjelpemiddel
Eksamensoppgave i GEOG1004 Geografi i praksis Tall, kart og bilder
Geografisk institutt Eksamensoppgave i GEOG1004 Geografi i praksis Tall, kart og bilder Faglig kontakt under eksamen: Wenche Larsen Tlf.: 467 90 607 Eksamensdato: 23.05.2014 Eksamenstid: 3 Studiepoeng:
Eksamen ENG1002/1003 Engelsk fellesfag Elevar og privatistar/elever og privatister. Nynorsk/Bokmål
Eksamen 22.11.2012 ENG1002/1003 Engelsk fellesfag Elevar og privatistar/elever og privatister Nynorsk/Bokmål Nynorsk Eksamensinformasjon Eksamenstid Hjelpemiddel Eksamen varer i 5 timar. Alle hjelpemiddel
Assignment. Consequences. assignment 2. Consequences fabulous fantasy. Kunnskapsløftets Mål Eleven skal kunne
Consequences Kunnskapsløftets Mål Eleven skal kunne KRL Filosofi og etikk reflektere over filosofiske temaer knyttet til identitet og livstolkning, natur og kultur, liv og død, rett og galt. gjøre rede
Physical origin of the Gouy phase shift by Simin Feng, Herbert G. Winful Opt. Lett. 26, (2001)
by Simin Feng, Herbert G. Winful Opt. Lett. 26, 485-487 (2001) http://smos.sogang.ac.r April 18, 2014 Introduction What is the Gouy phase shift? For Gaussian beam or TEM 00 mode, ( w 0 r 2 E(r, z) = E
Newtons fargeskive. Regnbuens farger blir til hvitt. Sett skiva i rask rotasjon ved hjelp av sveiva.
Newtons fargeskive Regnbuens farger blir til hvitt. Sett skiva i rask rotasjon ved hjelp av sveiva. Se hva som skjer med fargene. Hvitt lys består av en blanding av alle farger. Når fargeskiva roterer
En praktisk innføring i team-basert læring
En praktisk innføring i team-basert læring Børge Lillebo [email protected] Frank Alexander Kraemer [email protected] Teambasert Læring utviklet av Larry K. Michaelsen i USA aktiv læring flipped
Continuity. Subtopics
0 Cotiuity Chapter 0: Cotiuity Subtopics.0 Itroductio (Revisio). Cotiuity of a Fuctio at a Poit. Discotiuity of a Fuctio. Types of Discotiuity.4 Algebra of Cotiuous Fuctios.5 Cotiuity i a Iterval.6 Cotiuity
