Informatik D-MATH/D-PHYS Self-Assessment II,

Ähnliche Dokumente
Informatik I D-ITET Self-Assessment II,

Das folgende Kleingedruckte finden Sie auch auf einer "scharfen" Prüfung. 1. Dauer der Prüfung: 15 Minuten. Exam duration: 15 minutes.

Informatik D-MATH/D-PHYS Self-Assessment IV,

Das folgende Kleingedruckte finden Sie auch auf einer "scharfen" Prüfung. 1. Dauer der Prüfung: 20 Minuten. Exam duration: 20 minutes.

Informatik D-MATH/D-PHYS Self-Assessment III,

Informatik Prüfung Lösung B. Gärtner

Informatik für Mathematiker und Physiker Woche 5. David Sommer

Informatik I (D-BAUG)

Informatik 1 Kurzprüfung 2 LÖSUNG

Informatik Prüfung Lösung B. Gärtner

Informatik Prüfung Lösung B. Gärtner

Informatik für Mathematiker und Physiker Woche 2. David Sommer

Informatik Prüfung B. Gärtner

Übungsstunde: Informatik 1 D-MAVT

Informatik Prüfung Lösung B. Gärtner

Informatik I D-ITET Prüfung Lösung F. Friedrich

Informatik I (D-ITET)

Übersetzen des Quelltexts in ausführbaren Maschinen-Code Translation of source code into executable machine code

Level 2 German, 2013

Informatik für Mathematiker und Physiker Woche 7. David Sommer

SAMPLE EXAMINATION BOOKLET

Level 2 German, 2016

Level 1 German, 2016

D-BAUG Informatik I. Exercise session: week 1 HS 2018

Level 2 German, 2015

1. Fliesskommazahlen

Informatik I Prüfung B. Gärtner

Mock Exam Behavioral Finance

Level 1 German, 2014

Cambridge International Examinations Cambridge International Advanced Subsidiary Level

Informatik I D-ITET Prüfung F. Friedrich

VGM. VGM information. HAMBURG SÜD VGM WEB PORTAL - USER GUIDE June 2016

Cambridge International Examinations Cambridge International Advanced Subsidiary Level

Richtig Rechnen. // Program: fahrenheit.c // Convert temperatures from Celsius to Fahrenheit.

VGM. VGM information. HAMBURG SÜD VGM WEB PORTAL USER GUIDE June 2016

Magic Figures. We note that in the example magic square the numbers 1 9 are used. All three rows (columns) have equal sum, called the magic number.

Cambridge International Examinations Cambridge International Advanced Subsidiary Level

Informatik für Mathematiker und Physiker Woche 6. David Sommer

o feste Anzahl Vorkommastellen (z.b. 7) o feste Anzahl Nachkommastellen (z.b. 3) o Nachteil 1: o feste Anzahl signifikanter Stellen (10)

Paper Reference. German Paper 1F Listening and Responding Foundation Tier Friday 22 May 2009 Morning Time: 30 minutes (+5 minutes reading time)

Level 1 German, 2013

Registration of residence at Citizens Office (Bürgerbüro)

Paper Reference. Paper Reference(s) 1231/4H Edexcel GCSE German Paper 4H Writing Higher Tier Tuesday 12 June 2007 Afternoon Time: 1 hour

GR5W. General Certificate of Education June 2007 Advanced Level Examination. Unit 5 The Cultural and Social Landscape in Focus. Time allowed: 2 hours

o feste Anzahl Vorkommastellen (z.b. 7) o feste Anzahl Nachkommastellen (z.b. 3) o Nachteil 1: o feste Anzahl signifikanter Stellen (10)

Paper Reference. Paper Reference(s) 4375/01 London Examinations IGCSE German Paper 1: Listening

FIRST LANGUAGE GERMAN

Level 1 German, 2011

Microcontroller VU Exam 1 (Programming)

Weather forecast in Accra

Paper Reference. Paper Reference(s) 4375/01 London Examinations IGCSE German Paper 1: Listening

Paper Reference. Paper Reference(s) 4375/01 London Examinations IGCSE German Paper 1: Listening

Paper Reference. Paper Reference(s) 4375/01 London Examinations IGCSE German Paper 1: Listening

Paper Reference. Paper Reference(s) 4375/01 London Examinations IGCSE German Paper 1: Listening

GR5W. General Certificate of Education June 2008 Advanced Level Examination. Unit 5 The Cultural and Social Landscape in Focus. Time allowed: 2 hours

FIRST LANGUAGE GERMAN

Paper Reference. Paper Reference(s) 4375/01 London Examinations IGCSE German Paper 1: Listening

Level 1 German, 2012

*A25321A0116* A25321A W850/T1231/ /6/6/6. Turn over

Where are we now? The administration building M 3. Voransicht

Accelerating Information Technology Innovation

Finite Difference Method (FDM)

Informatik - Übungsstunde

Introduction to Python. Introduction. First Steps in Python. pseudo random numbers. May 2016

*M22525A0116* M22525A W850/T1231/ /4/4/4/4/4/ Turn over

Level 1 German, 2012

KTdCW Artificial Intelligence 2016/17 Practical Exercises - PART A

abc GR5W Unit 5 General Certificate of Education June 2004 Advanced Level Examination Thursday 17 June am to am Time allowed: 2 hours

Prüfung Informatik D-MATH/D-PHYS :00 11:00

Attention: Give your answers to problem 1 and problem 2 directly below the questions in the exam question sheet. ,and C = [ ].

GR5W. General Certificate of Education June 2006 Advanced Level Examination. Unit 5 The Cultural and Social Landscape in Focus. Time allowed: 2 hours

Functional Analysis Final Test, Funktionalanalysis Endklausur,

a < &a[2] a < &a[2] Wert/Value: true

abc GR5W Unit 5 General Certificate of Education June 2005 Advanced Level Examination Thursday 16 June am to am Time allowed: 2 hours

Name: Klasse: Standardisierte kompetenzorientierte schriftliche Reifeprüfung AHS. 18. September Englisch. Schreiben

Infoblatt: Hochschulsport

Ein Stern in dunkler Nacht Die schoensten Weihnachtsgeschichten. Click here if your download doesn"t start automatically

Was heißt Denken?: Vorlesung Wintersemester 1951/52. [Was bedeutet das alles?] (Reclams Universal-Bibliothek) (German Edition)

Aufgabe 1.1. Wählen Sie jene Variablendeklarationen mit Initialisierungen aus, die in Java hinsichtlich der Typen korrekt sind:

Unit 5. General Certificate of Education January 2003 Advanced Level Examination. Wednesday 29 January 2003 Afternoon Session. Time allowed: 2 hours

Paper Reference. Paper Reference(s) 4375/01 London Examinations IGCSE German Paper 1: Listening

Brandbook. How to use our logo, our icon and the QR-Codes Wie verwendet Sie unser Logo, Icon und die QR-Codes. Version 1.0.1

Cambridge International Examinations Cambridge International General Certificate of Secondary Education

Mercedes OM 636: Handbuch und Ersatzteilkatalog (German Edition)

Duell auf offener Straße: Wenn sich Hunde an der Leine aggressiv verhalten (Cadmos Hundebuch) (German Edition)

Das Zeitalter der Fünf 3: Götter (German Edition)

Hausaufgabe 1-4. Name: If homework late, explanation: Last class homework is being accepted: If correction late, explanation: Student Self-Grading

Supplementary material for Who never tells a lie? The following material is provided below, in the following order:

Cambridge International Examinations Cambridge International Advanced Subsidiary Level

Paper Reference. 1231/1F Edexcel GCSE German Paper 1F Listening and Responding. Foundation Tier

Transkript:

Informatik D-MATH/D-PHYS Self-Assessment II, 24.10.2017 Name, Vorname:............................................................. Legi-Nummer:................... Übungsgruppe:................... Diese Selbsteinschätzung dient Ihrer und unserer Orientierung. Sie wird direkt nach der Bearbeitung in der Übungsstunde besprochen und von Ihnen selbst korrigiert. Sie hat keinen Einfluss auf eine spätere Leistungsbewertung. Sie haben 15 Minuten Zeit. Das folgende Kleingedruckte finden Sie auch auf einer "scharfen" Prüfung. Allgemeine Richtlinien: General guidelines: 1. Dauer der Prüfung: 15 Minuten. Exam duration: 15 minutes. 2. Erlaubte Unterlagen: Wörterbuch (für gesprochene Sprachen). Keine eigenen Notizblätter! Bei Bedarf stellen wir Ihnen weitere Blätter zur Verfügung. 3. Benützen Sie einen Kugelschreiber (blau oder schwarz) und keinen Bleistift. Bitte schreiben Sie leserlich. Nur lesbare Resultate werden bewertet. 4. Lösungen sind direkt auf das Aufgabenblatt in die dafür vorgesehenen Boxen zu schreiben (und direkt darunter, falls mehr Platz benötigt wird). Ungültige Lösungen sind deutlich durchzustreichen! Korrekturen bei Multiple- Choice Aufgaben bitte unmissverständlich anbringen! Lösungen auf Notizblättern werden nicht berücksichtigt. Permitted examination aids: dictionary (for spoken languages). No sheets of your own! We will give you extra sheets on demand. Use a pen (black or blue), not a pencil. Please write legibly. We will only consider solutions that we can read. Solutions must be written directly onto the exam sheets in the provided boxes (and directly below, if more space is needed). Invalid solutions need to be crossed out clearly. Provide corrections to answers of multiple choice questions without any ambiguity! Solutions on extra sheets will not be considered. 5. Es gibt keine Negativpunkte für falsche Antworten. There are no negative points for false answers. 6. Störungen durch irgendjemanden oder irgendetwas melden Sie bitte sofort der Aufsichtsperson. 7. Wir sammeln die Prüfung zum Schluss ein. Wichtig: stellen Sie unbedingt selbst sicher, dass Ihre Prüfung von einem Assistenten eingezogen wird. Stecken Sie keine Prüfung ein und lassen Sie Ihre Prüfung nicht einfach am Platz liegen. Dasselbe gilt, wenn Sie früher abgeben wollen: bitte melden Sie sich lautlos, und wir holen die Prüfung ab. Vorzeitige Abgaben sind nur bis 15 Minuten vor Prüfungsende möglich. 8. Wenn Sie zur Toilette müssen, melden Sie dies einer Aufsichtsperson durch Handzeichen. 9. Wir beantworten keine inhaltlichen Fragen während der Prüfung. Kommentare zur Aufgabe schreiben Sie bitte auf das Aufgabenblatt. If you feel disturbed by anyone or anything, let the supervisor of the exam know immediately. We collect the exams at the end. Important: you must ensure that your exam has been collected by an assistant. Do not take any exam with you and do not leave your exam behind on your desk. The same applies when you want to finish early: please contact us silently and we will collect the exam. Handing in your exam ahead of time is only possible until 15 minutes before the exam ends. If you need to go to the toilet, raise your hand and wait for a supervisor. We will not answer any content-related questions during the exam. Please write comments referring to the tasks on the exam sheets. Aufgabe 1 2 3 4 5 Punkte Maximum 6 4 4 4 5 23

1 Typen und Werte (6 Punkte) Die Variablen seien definiert und initialisiert wie folgt. Assume the variables have been initialized as shown below. int i 11; unsigned int u 12; double d 2.0; int j 0; double d1 1; double d2 2; double d3 3; Geben Sie für jeden der folgenden Ausdrücke jeweils C++-Typ (0.5P) und Wert (1P) an! For each of the following expressions, provide the C++ type (0.5P) and value (1P)! (a) i - u > 0 (b) i / 2 / d (c) ++i * j++ (d) d3 > d2 > d1 2 Programmausgaben (4 Punkte) Betrachten Sie das folgende Programm und geben Sie die Programmausgabe direkt in dem dafür vorgesehenen Kästchen an. Consider the following program and write the program output directly in the provided box. Page 2 of 5

#include <iostream> int main(){ unsigned int x 8; do { std::cout << x << " "; x (2 * x + 1) % 11; while (x! 0); return 0; Ausgabe output: 3 Programm Schreiben (4 Punkte) Das folgende Programm soll eine binäre 4- bit Zahl an der Eingabe zu einer Dezimalzahl konvertieren. Beispiel: Eingabe 1 1 0 0 wird zu Ausgabe 12. Vervollständigen Sie den Code entsprechend. The following program is supposed to convert a binary 4-bit number at the standard input to a decimal number at the output. Example: input 1 1 0 0 becomes output 12. Complement accordingly. #include <iostream> int main() { int res 0; for ( ){ int digit; std::cin >> digit; std::cout << res; Page 3 of 5

4 Zahlendarstellungen (4 Punkte) Die Zahl in der linken Spalte der nachfolgenden Tabelle ist jeweils als Literal der Sprache C++ zu verstehen. Berechnen Sie, was jeweils verlangt ist. Anmerkung: Literale der Form 0x... haben Hexadezimalformat, wobei... die Hexadezimalziffern angeben. Literale der Form 0b... haben Binärformat, wobei... die Binärziffern angeben. The number displayed to the left in the following table shall be considered a number literal in C++ language. Compute what is requested. Remark: Literals of the form 0x... are in hexadecimal format, where... are the hexadecimal digits. Literals of the form 0b... are in binary format, where... are the binary digits. 96 Darstellung als Hexadezimalzahl Representation as hexadecimal number 0x400 Darstellung als Dezimalzahl Representation as decimal number 0b11001 Darstellung als Dezimalzahl Representation as decimal number 0xfe Darstellung als Binärzahl Representation as binary number 5 Fliesskommazahlen (5 Punkte) Wir betrachten das im Folgenden angegebene normalisierte Fliesskommazahlensystem F. Beantworten Sie die nachfolgenden Fragen. Anmerkung: Falls nötig runden Sie binär arithmetisch, d.h., eine 1 wird aufgerundet, eine 0 wird abgerundet. Beispiel: in F wird die binäre dargestellte Zahl 1.0010.. zu 1.001 abgerundet, während 1.0011.. zu 1.010 aufgerundet wird. Consider the following normalized floating point number system F. Answer the questions on the right side! Note: If necessary use binary arithmetic rounding, i.e., round up for a 1 and down for a 0. Example: in F the binary represented number 1.0010.. is rounded down to 1.001, while 1.0011.. is rounded up to 1.010. F (β, p, e min, e max ) mit / with β 2, p 4, e min 4, e max 4 Page 4 of 5

(a) Geben Sie folgende Eigenschaften zur Menge der durch F repräsentierbaren Werte als dezimale Zahlen an. Rationale Zahlen dürfen als Brüche geschrieben werden. Provide the following properties about the set of values representable in F in decimal notation. Rational numbers can be provided as fractions. 2 P Anzahl unterschiedlicher positiver Werte in F / Number of different positive values in F Kleinste positive Zahl in F / Smallest positive number in F (b) Rechnen Sie um. Vergessen Sie nicht, allenfalls zu runden. Convert the values. round if required. Do not forget to 3 P Dezimal Binäre Approximation in F 1.5 16.5 1.9 - Platz für Notizen und Anmerkungen / Space for notes and remarks Page 5 of 5