studium 0.16.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of studium might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/README.md +3211 -0
- data/bin/ask_exam_question +7 -0
- data/bin/check_description_of_these_lectures +7 -0
- data/bin/curriculum_module_displayer +7 -0
- data/bin/cycle +7 -0
- data/bin/d10 +7 -0
- data/bin/d100 +7 -0
- data/bin/d15 +7 -0
- data/bin/d20 +7 -0
- data/bin/d25 +7 -0
- data/bin/d3 +7 -0
- data/bin/d30 +7 -0
- data/bin/d5 +7 -0
- data/bin/determine_curricula +7 -0
- data/bin/display_lecture_url +7 -0
- data/bin/exam_registration_at +7 -0
- data/bin/exam_statistics +7 -0
- data/bin/exams_per_month +9 -0
- data/bin/finished_exams_at_this_university +7 -0
- data/bin/flashcards +7 -0
- data/bin/from_curriculum_id_to_university +9 -0
- data/bin/location_to_this_exam_topic.rb +7 -0
- data/bin/mandatory_continuous_assessment +7 -0
- data/bin/mandatory_upcoming_courses +10 -0
- data/bin/n_ECTS +7 -0
- data/bin/n_exam_questions_already_answered +16 -0
- data/bin/nquestions +7 -0
- data/bin/nsolved +7 -0
- data/bin/open_last_exam_question_asked_file +7 -0
- data/bin/passed_exams +7 -0
- data/bin/passed_pr/303/274fungsimmanente_courses +7 -0
- data/bin/pdf_for +7 -0
- data/bin/random_exam_topic +7 -0
- data/bin/report_solved_topics +7 -0
- data/bin/return_n_ects_from_this_file +7 -0
- data/bin/return_n_questions_solved_in_total +7 -0
- data/bin/rti_conflict +7 -0
- data/bin/search_for_n_ects +7 -0
- data/bin/show_lectures_on_the_commandline +7 -0
- data/bin/show_passed_exams_having_this_grade +7 -0
- data/bin/show_themes +7 -0
- data/bin/solved +9 -0
- data/bin/solved_ects +7 -0
- data/bin/studienkennzahl +7 -0
- data/bin/studium +7 -0
- data/bin/studium_skeleton +7 -0
- data/bin/ufind +7 -0
- data/bin/upcoming_exams +7 -0
- data/bin/week_parser +7 -0
- data/doc/ECTS_CONSIDERATIONS/ECTS_CONSIDERATIONS.md +82 -0
- data/doc/HOW_TO_DETERMINE_WHICH_PART_IS_THE_QUESTION_AND_WHICH_PART_IS_THE_ANSWER/HOW_TO_DETERMINE_WHICH_PART_IS_THE_QUESTION_AND_WHICH_PART_IS_THE_ANSWER.md +44 -0
- data/doc/README.gen +3164 -0
- data/doc/SQL_database_specification/SQL_database_specification.md +46 -0
- data/doc/deprecated_components/deprecated_components.md +46 -0
- data/doc/documentation_for_the_file_lecture_information/documentation_for_the_file_lecture_information.md +311 -0
- data/doc/elegant_colours/elegant_colours.md +21 -0
- data/doc/statistics/yearly_statistics.md +8 -0
- data/doc/todo/todo_for_the_graphical_parts_of_the_studium_gem_including_www_related_aspects.md +92 -0
- data/doc/todo/todo_for_the_studium_gem.md +55 -0
- data/img/STUDIES.png +0 -0
- data/lib/studium/autoinclude.rb +7 -0
- data/lib/studium/base/base.rb +3229 -0
- data/lib/studium/base/colours.rb +246 -0
- data/lib/studium/base/commandline_arguments_module/commandline_arguments_module.rb +115 -0
- data/lib/studium/base/prototype/prototype.rb +230 -0
- data/lib/studium/base/runmode_module/runmode_module.rb +103 -0
- data/lib/studium/c/README.md +2 -0
- data/lib/studium/c/a.out +0 -0
- data/lib/studium/c/obtain_random_entry.c +11 -0
- data/lib/studium/check_and_sanitize/README.md +15 -0
- data/lib/studium/check_and_sanitize/check_curriculum_for_correct_separation_of_bachelor_and_master.rb +141 -0
- data/lib/studium/check_and_sanitize/check_for_all_exam_topics_being_registered.rb +118 -0
- data/lib/studium/check_and_sanitize/check_for_correct_themes_of_each_course.rb +100 -0
- data/lib/studium/check_and_sanitize/check_for_existing_description_of_this_lecture.rb +194 -0
- data/lib/studium/check_and_sanitize/check_important_exams.rb +132 -0
- data/lib/studium/check_and_sanitize/check_the_lecture_information_file.rb +166 -0
- data/lib/studium/check_and_sanitize/find_duplicate_lectures.rb +124 -0
- data/lib/studium/check_and_sanitize/missing_priority_entry.rb +44 -0
- data/lib/studium/check_and_sanitize/sanitize_lecture_information.rb +427 -0
- data/lib/studium/check_and_sanitize/sanitize_this_string_containing_the_lva_dates.rb +79 -0
- data/lib/studium/colours/colours.rb +587 -0
- data/lib/studium/colours/sfancy.rb +49 -0
- data/lib/studium/colours/sfile.rb +39 -0
- data/lib/studium/colours/simp.rb +40 -0
- data/lib/studium/colours/use_colours.rb +39 -0
- data/lib/studium/colours/use_this_colour_for_exam_questions_and_exam_answers.rb +80 -0
- data/lib/studium/commandline/commandline.rb +1839 -0
- data/lib/studium/constants/colours.rb +16 -0
- data/lib/studium/constants/constants.rb +533 -0
- data/lib/studium/constants/curricula_related_constants.rb +504 -0
- data/lib/studium/constants/exam_topics.rb +156 -0
- data/lib/studium/constants/file_lecture_information.rb +55 -0
- data/lib/studium/constants/image_constants.rb +272 -0
- data/lib/studium/constants/regexes.rb +58 -0
- data/lib/studium/constants/roebe_specific_constants.rb +216 -0
- data/lib/studium/constants/standalone_constants.rb +372 -0
- data/lib/studium/constants/web_constants.rb +28 -0
- data/lib/studium/css/project.css +267 -0
- data/lib/studium/curricula/attribute_lecture_to_curriculum/attribute_boku_lecture_to_curriculum.rb +384 -0
- data/lib/studium/curricula/attribute_lecture_to_curriculum/attribute_lecture_to_curriculum.rb +238 -0
- data/lib/studium/curricula/curricula_from_this_website/curricula_from_this_website.rb +141 -0
- data/lib/studium/curricula/curriculum.rb +213 -0
- data/lib/studium/curricula/curriculum_as_string.rb +280 -0
- data/lib/studium/curricula/curriculum_module_displayer/constants.rb +33 -0
- data/lib/studium/curricula/curriculum_module_displayer/curriculum_module_displayer.rb +417 -0
- data/lib/studium/curricula/curriculum_module_displayer/initialize.rb +25 -0
- data/lib/studium/curricula/curriculum_module_displayer/menu.rb +45 -0
- data/lib/studium/curricula/curriculum_module_displayer/reset.rb +74 -0
- data/lib/studium/curricula/curriculum_module_displayer/run.rb +20 -0
- data/lib/studium/curricula/curriculum_module_displayer/set_use_this_curriculum.rb +93 -0
- data/lib/studium/curricula/curriculum_module_displayer/show_and_report.rb +190 -0
- data/lib/studium/curricula/determine_curricula/constants.rb +11 -0
- data/lib/studium/curricula/determine_curricula/determine_curricula.rb +36 -0
- data/lib/studium/curricula/determine_curricula/help.rb +39 -0
- data/lib/studium/curricula/determine_curricula/initialize.rb +48 -0
- data/lib/studium/curricula/determine_curricula/menu.rb +151 -0
- data/lib/studium/curricula/determine_curricula/misc.rb +403 -0
- data/lib/studium/curricula/determine_curricula/report.rb +143 -0
- data/lib/studium/curricula/determine_curricula/reset.rb +59 -0
- data/lib/studium/curricula/determine_curricula/run.rb +19 -0
- data/lib/studium/curricula/determine_elective_courses_in_this_curriculum.rb +112 -0
- data/lib/studium/curricula/display_bachelor_curricula.rb +90 -0
- data/lib/studium/curricula/handle_curricula/README.md +9 -0
- data/lib/studium/curricula/handle_curricula/handle_curricula.rb +100 -0
- data/lib/studium/curricula/handle_curricula/misc.rb +798 -0
- data/lib/studium/curricula/mitteilungsbl/303/244tter/mitteilungsbl/303/244tter.rb +323 -0
- data/lib/studium/curricula/modules/display_on_the_commandline.rb +319 -0
- data/lib/studium/curricula/modules/return_n_ects_in_this_module.rb +75 -0
- data/lib/studium/curricula/n_percent_solved_in_this_curriculum.rb +75 -0
- data/lib/studium/curricula/prepare_individual_curriculum.rb +304 -0
- data/lib/studium/curricula/random_curriculum_creator/random_curriculum_creator.rb +164 -0
- data/lib/studium/curricula/show_all_unfinished_courses_of_this_curriculum/show_all_unfinished_courses_of_this_curriculum.rb +116 -0
- data/lib/studium/curricula/show_lectures_of_this_curriculum.rb +114 -0
- data/lib/studium/curricula/show_lectures_of_this_curriculum_id/show_lectures_of_this_curriculum_id.rb +554 -0
- data/lib/studium/curricula/show_solved_percentage_among_the_registered_curricula.rb +87 -0
- data/lib/studium/curricula/sorted_individual_curricula.rb +121 -0
- data/lib/studium/ects/boku_ects_splitter.rb +128 -0
- data/lib/studium/ects/ects_per_university/ects_per_university.rb +179 -0
- data/lib/studium/ects/ects_scanner.rb +141 -0
- data/lib/studium/ects/ects_to_university_parser.rb +142 -0
- data/lib/studium/ects/last_entry_is_curriculum.rb +150 -0
- data/lib/studium/ects/n_ects_in_these_lectures.rb +196 -0
- data/lib/studium/ects/n_ects_points_in_mandatory_presence_courses.rb +50 -0
- data/lib/studium/ects/return_n_ects_from_this_file.rb +59 -0
- data/lib/studium/ects/return_n_ects_from_this_url.rb +197 -0
- data/lib/studium/ects/search_for_n_ects/OLD_search_for_n_ects.rb +0 -0
- data/lib/studium/ects/search_for_n_ects/search_for_n_ects.rb +719 -0
- data/lib/studium/ects/show_completed_ects_in_all_curricula.rb +232 -0
- data/lib/studium/ects/show_passed_credits_per_curriculum.rb +276 -0
- data/lib/studium/ects/simple_total_ects_points.rb +135 -0
- data/lib/studium/ects/solved_ects/constants.rb +19 -0
- data/lib/studium/ects/solved_ects/reset.rb +51 -0
- data/lib/studium/ects/solved_ects/solved_ects.rb +325 -0
- data/lib/studium/ects/solved_ects_per_university/reset.rb +25 -0
- data/lib/studium/ects/solved_ects_per_university/solved_ects_per_university.rb +106 -0
- data/lib/studium/ects/still_missing.rb +129 -0
- data/lib/studium/ects/sum_of_ects.rb +144 -0
- data/lib/studium/encoding/encoding.rb +109 -0
- data/lib/studium/exam_topics/RNAi_siRNA_and_miRNA +100 -0
- data/lib/studium/exam_topics/abfall_als_ressource +86 -0
- data/lib/studium/exam_topics/advanced_biochemistry +927 -0
- data/lib/studium/exam_topics/advanced_biotechnology +234 -0
- data/lib/studium/exam_topics/advanced_cellbiology +219 -0
- data/lib/studium/exam_topics/advanced_chemistry +527 -0
- data/lib/studium/exam_topics/advanced_immunology +152 -0
- data/lib/studium/exam_topics/advanced_microbiology +44 -0
- data/lib/studium/exam_topics/advanced_topics_in_plant_sciences +109 -0
- data/lib/studium/exam_topics/advanced_virology +245 -0
- data/lib/studium/exam_topics/ageing +153 -0
- data/lib/studium/exam_topics/agrar_ecology +67 -0
- data/lib/studium/exam_topics/agrarmarkt +73 -0
- data/lib/studium/exam_topics/agrarphysik +35 -0
- data/lib/studium/exam_topics/alcohols +31 -0
- data/lib/studium/exam_topics/algorithms +77 -0
- data/lib/studium/exam_topics/allergie +76 -0
- data/lib/studium/exam_topics/allgemeine_genetik +1006 -0
- data/lib/studium/exam_topics/allgemeine_mikrobiologie +1008 -0
- data/lib/studium/exam_topics/aminoacids +464 -0
- data/lib/studium/exam_topics/analytische_chemie_1 +133 -0
- data/lib/studium/exam_topics/analytische_chemie_2 +31 -0
- data/lib/studium/exam_topics/anatomie +295 -0
- data/lib/studium/exam_topics/anorganische_chemie +350 -0
- data/lib/studium/exam_topics/anthropologie +138 -0
- data/lib/studium/exam_topics/antibodies_and_antigens +791 -0
- data/lib/studium/exam_topics/apoptosis +35 -0
- data/lib/studium/exam_topics/archaea +112 -0
- data/lib/studium/exam_topics/archaeo_viruses +7 -0
- data/lib/studium/exam_topics/architecture +8 -0
- data/lib/studium/exam_topics/artificial_intelligence +89 -0
- data/lib/studium/exam_topics/atomemissionsspektrometrie +6 -0
- data/lib/studium/exam_topics/audio +11 -0
- data/lib/studium/exam_topics/bacteriophages +266 -0
- data/lib/studium/exam_topics/basic_biochemistry +1008 -0
- data/lib/studium/exam_topics/basic_biotechnology +1011 -0
- data/lib/studium/exam_topics/basic_chemistry +1007 -0
- data/lib/studium/exam_topics/basic_virology +1007 -0
- data/lib/studium/exam_topics/bauwesen +6 -0
- data/lib/studium/exam_topics/betriebssysteme +128 -0
- data/lib/studium/exam_topics/betriebswirtschaftslehre +29 -0
- data/lib/studium/exam_topics/bioanalytik_und_biosensoren +391 -0
- data/lib/studium/exam_topics/biochips +79 -0
- data/lib/studium/exam_topics/bioelektrochemie +57 -0
- data/lib/studium/exam_topics/biofilms +54 -0
- data/lib/studium/exam_topics/bioinformatics +511 -0
- data/lib/studium/exam_topics/biological_therapeutics +156 -0
- data/lib/studium/exam_topics/biologie +149 -0
- data/lib/studium/exam_topics/biomarkers +137 -0
- data/lib/studium/exam_topics/biomaterials +90 -0
- data/lib/studium/exam_topics/biomembranes +6 -0
- data/lib/studium/exam_topics/bionik +65 -0
- data/lib/studium/exam_topics/biophysik +34 -0
- data/lib/studium/exam_topics/biopolymers +10 -0
- data/lib/studium/exam_topics/bioprozesstechnik +149 -0
- data/lib/studium/exam_topics/bioressourcenmanagement +78 -0
- data/lib/studium/exam_topics/birds +5 -0
- data/lib/studium/exam_topics/bodenkunde +384 -0
- data/lib/studium/exam_topics/bodenmikrobiologie +40 -0
- data/lib/studium/exam_topics/cancerbiology +484 -0
- data/lib/studium/exam_topics/cell_cultures +229 -0
- data/lib/studium/exam_topics/cellbiology +1011 -0
- data/lib/studium/exam_topics/cellular_transport_and_protein_secretion +27 -0
- data/lib/studium/exam_topics/cellular_vesicles +11 -0
- data/lib/studium/exam_topics/cellulose +6 -0
- data/lib/studium/exam_topics/chemische_technologie_anorganischer_stoffe +209 -0
- data/lib/studium/exam_topics/chemische_technologie_organischer_stoffe +25 -0
- data/lib/studium/exam_topics/chemisches_labor +60 -0
- data/lib/studium/exam_topics/chemokines_and_cytokines +45 -0
- data/lib/studium/exam_topics/chemotaxis_quorum_sensing_and_motility_in_prokaryotes +116 -0
- data/lib/studium/exam_topics/citric_acid_cycle +84 -0
- data/lib/studium/exam_topics/clinical_microbiology +516 -0
- data/lib/studium/exam_topics/computer_science +308 -0
- data/lib/studium/exam_topics/computer_vision_and_computer_graphics +13 -0
- data/lib/studium/exam_topics/crispr +51 -0
- data/lib/studium/exam_topics/cyanobacteria +44 -0
- data/lib/studium/exam_topics/cytogenetics_and_chromosome_biology +579 -0
- data/lib/studium/exam_topics/databases_and_sql +126 -0
- data/lib/studium/exam_topics/dna_mutation_and_dna_repair +70 -0
- data/lib/studium/exam_topics/dna_replication +67 -0
- data/lib/studium/exam_topics/ecogenetics +26 -0
- data/lib/studium/exam_topics/ecological_agriculture +12 -0
- data/lib/studium/exam_topics/ecology +330 -0
- data/lib/studium/exam_topics/economy +218 -0
- data/lib/studium/exam_topics/electron_microscopy +7 -0
- data/lib/studium/exam_topics/elektronenmikroskopie +356 -0
- data/lib/studium/exam_topics/elektrophorese +132 -0
- data/lib/studium/exam_topics/elektrotechnik_und_elektrizit/303/244t +42 -0
- data/lib/studium/exam_topics/elisa +55 -0
- data/lib/studium/exam_topics/embryologie_und_entwicklung +650 -0
- data/lib/studium/exam_topics/endospores_and_spores +104 -0
- data/lib/studium/exam_topics/enzymes_and_cofactors +393 -0
- data/lib/studium/exam_topics/epigenetik +187 -0
- data/lib/studium/exam_topics/erste_hilfe +174 -0
- data/lib/studium/exam_topics/ethik +143 -0
- data/lib/studium/exam_topics/evolution_and_evolutionary_genetics +367 -0
- data/lib/studium/exam_topics/excel +7 -0
- data/lib/studium/exam_topics/fish +19 -0
- data/lib/studium/exam_topics/fluorescence_microscopy +10 -0
- data/lib/studium/exam_topics/food_microbiology_and_food_biotechnology +92 -0
- data/lib/studium/exam_topics/forensik +11 -0
- data/lib/studium/exam_topics/forstwirtschaft +53 -0
- data/lib/studium/exam_topics/fortgeschrittene_genetik +643 -0
- data/lib/studium/exam_topics/fortgeschrittene_gentechnik +218 -0
- data/lib/studium/exam_topics/fortgeschrittene_physik +6 -0
- data/lib/studium/exam_topics/fungi +119 -0
- data/lib/studium/exam_topics/genetische_krankheiten +198 -0
- data/lib/studium/exam_topics/genexpression +1008 -0
- data/lib/studium/exam_topics/genomics_and_metagenomics +280 -0
- data/lib/studium/exam_topics/gentechnik_und_praktische_biochemie +954 -0
- data/lib/studium/exam_topics/geochemistry +67 -0
- data/lib/studium/exam_topics/geography +9 -0
- data/lib/studium/exam_topics/geologie_und_mineralogie +624 -0
- data/lib/studium/exam_topics/geometrie +56 -0
- data/lib/studium/exam_topics/geschichte +95 -0
- data/lib/studium/exam_topics/gluconeogenesis +72 -0
- data/lib/studium/exam_topics/glycogen +45 -0
- data/lib/studium/exam_topics/glycolysis +118 -0
- data/lib/studium/exam_topics/glykomik +121 -0
- data/lib/studium/exam_topics/glyoxylatzyklus +31 -0
- data/lib/studium/exam_topics/grassland_cultivation +32 -0
- data/lib/studium/exam_topics/hormone +148 -0
- data/lib/studium/exam_topics/html +8 -0
- data/lib/studium/exam_topics/human_ecology +8 -0
- data/lib/studium/exam_topics/hygiene +224 -0
- data/lib/studium/exam_topics/imaging_and_microscopy +267 -0
- data/lib/studium/exam_topics/immunanalytik +94 -0
- data/lib/studium/exam_topics/immunologie +1011 -0
- data/lib/studium/exam_topics/informatik +117 -0
- data/lib/studium/exam_topics/innate_immunity +42 -0
- data/lib/studium/exam_topics/insekten +64 -0
- data/lib/studium/exam_topics/insulin_and_diabetes +57 -0
- data/lib/studium/exam_topics/java +618 -0
- data/lib/studium/exam_topics/javascript +20 -0
- data/lib/studium/exam_topics/klima +6 -0
- data/lib/studium/exam_topics/kryptographie +9 -0
- data/lib/studium/exam_topics/landtechnik +26 -0
- data/lib/studium/exam_topics/lebensmittel_und_getr/303/244nke +223 -0
- data/lib/studium/exam_topics/lebensmitteltechnologie +16 -0
- data/lib/studium/exam_topics/light_microscopy +19 -0
- data/lib/studium/exam_topics/linux_and_unix +36 -0
- data/lib/studium/exam_topics/lipids +141 -0
- data/lib/studium/exam_topics/macroeconomics +39 -0
- data/lib/studium/exam_topics/marketing +7 -0
- data/lib/studium/exam_topics/mathematics +297 -0
- data/lib/studium/exam_topics/medizin_und_biomedizinische_technik +254 -0
- data/lib/studium/exam_topics/medizinische_chemie_und_pharmazie +437 -0
- data/lib/studium/exam_topics/messtechnik_und_regeltechnik +104 -0
- data/lib/studium/exam_topics/metabolismus +478 -0
- data/lib/studium/exam_topics/meteorologie_und_atmosph/303/244re +120 -0
- data/lib/studium/exam_topics/microbial_ecology +36 -0
- data/lib/studium/exam_topics/microcontrollers +11 -0
- data/lib/studium/exam_topics/mikrobielle_lebensgemeinschaften +54 -0
- data/lib/studium/exam_topics/mikrobielle_physiologie +285 -0
- data/lib/studium/exam_topics/mitochondria +40 -0
- data/lib/studium/exam_topics/mixed +287 -0
- data/lib/studium/exam_topics/molecular_biology_of_plants +272 -0
- data/lib/studium/exam_topics/molekulare_medizin +133 -0
- data/lib/studium/exam_topics/nanotechnologie +453 -0
- data/lib/studium/exam_topics/nature_conservation_and_biodiversity +244 -0
- data/lib/studium/exam_topics/naturstoffe +9 -0
- data/lib/studium/exam_topics/netzwerke +63 -0
- data/lib/studium/exam_topics/neurobiology +307 -0
- data/lib/studium/exam_topics/nucleotide_sequencing +41 -0
- data/lib/studium/exam_topics/nutztierethologie +11 -0
- data/lib/studium/exam_topics/object_oriented_modeling +14 -0
- data/lib/studium/exam_topics/obstbau +249 -0
- data/lib/studium/exam_topics/organische_chemie +1007 -0
- data/lib/studium/exam_topics/organische_chemie_2 +136 -0
- data/lib/studium/exam_topics/paleobiology +39 -0
- data/lib/studium/exam_topics/parasitic_diseases_and_molecular_infection_biology +336 -0
- data/lib/studium/exam_topics/patent_law +55 -0
- data/lib/studium/exam_topics/pathologie +731 -0
- data/lib/studium/exam_topics/pcr +155 -0
- data/lib/studium/exam_topics/pentosephosphatweg +61 -0
- data/lib/studium/exam_topics/peroxisomes_glycosomes_and_lysosomes +66 -0
- data/lib/studium/exam_topics/pflanzenanatomie +261 -0
- data/lib/studium/exam_topics/pflanzenbau +24 -0
- data/lib/studium/exam_topics/pflanzenschutz +35 -0
- data/lib/studium/exam_topics/pflanzenwissenschaften +1009 -0
- data/lib/studium/exam_topics/pharmaceutical_biotechnology +251 -0
- data/lib/studium/exam_topics/physik +446 -1
- data/lib/studium/exam_topics/physikalische_chemie +79 -0
- data/lib/studium/exam_topics/physiology_and_histology +536 -0
- data/lib/studium/exam_topics/phytochemie +33 -0
- data/lib/studium/exam_topics/plant_biotechnology +131 -0
- data/lib/studium/exam_topics/plant_breeding +64 -0
- data/lib/studium/exam_topics/plant_development +50 -0
- data/lib/studium/exam_topics/populationsgenetik +138 -0
- data/lib/studium/exam_topics/posttranslationale_modifikation_von_proteinen +197 -0
- data/lib/studium/exam_topics/projektmanagement +220 -0
- data/lib/studium/exam_topics/prokaryote_genetics +562 -0
- data/lib/studium/exam_topics/protein_engineering +35 -0
- data/lib/studium/exam_topics/proteolyse +38 -0
- data/lib/studium/exam_topics/proteomik +41 -0
- data/lib/studium/exam_topics/protozoans +24 -0
- data/lib/studium/exam_topics/prozesstechnik +95 -0
- data/lib/studium/exam_topics/psychologie +18 -0
- data/lib/studium/exam_topics/python +372 -0
- data/lib/studium/exam_topics/quality_management +266 -0
- data/lib/studium/exam_topics/rechtsgrundlagen +123 -0
- data/lib/studium/exam_topics/research_topics_in_immunobiology +42 -0
- data/lib/studium/exam_topics/rna_and_dna +519 -0
- data/lib/studium/exam_topics/rna_seq +13 -0
- data/lib/studium/exam_topics/robotics +12 -0
- data/lib/studium/exam_topics/ruby +238 -0
- data/lib/studium/exam_topics/ruby_on_rails +63 -0
- data/lib/studium/exam_topics/scientific_writing_and_publishing +38 -0
- data/lib/studium/exam_topics/semisynthese_von_proteinen_und_nukleotiden +120 -0
- data/lib/studium/exam_topics/sexualbiologie +183 -0
- data/lib/studium/exam_topics/signal_transduction_and_laser_systems +212 -0
- data/lib/studium/exam_topics/sozialbiologie +9 -0
- data/lib/studium/exam_topics/splicing_exons_and_introns +65 -0
- data/lib/studium/exam_topics/statistik +268 -0
- data/lib/studium/exam_topics/stemcells +181 -0
- data/lib/studium/exam_topics/stickstofffixierung +91 -0
- data/lib/studium/exam_topics/structural_bioinformatics +54 -0
- data/lib/studium/exam_topics/strukturbiologie +423 -0
- data/lib/studium/exam_topics/system_biology_and_synthetic_biology +108 -0
- data/lib/studium/exam_topics/systematische_zoologie +439 -0
- data/lib/studium/exam_topics/technical_ecology +144 -0
- data/lib/studium/exam_topics/technische_chemie +208 -0
- data/lib/studium/exam_topics/technische_grundlagen_der_informatik +39 -0
- data/lib/studium/exam_topics/technische_mikrobiologie +393 -0
- data/lib/studium/exam_topics/technisches_zeichnen +5 -0
- data/lib/studium/exam_topics/the_bacterial_cell_wall +98 -0
- data/lib/studium/exam_topics/the_c_plus_plus_programming_language +531 -0
- data/lib/studium/exam_topics/the_c_programming_language +133 -0
- data/lib/studium/exam_topics/the_cellcycle +98 -0
- data/lib/studium/exam_topics/the_european_union +121 -0
- data/lib/studium/exam_topics/the_interferon_system +39 -0
- data/lib/studium/exam_topics/the_microbiome +164 -0
- data/lib/studium/exam_topics/the_universe +31 -0
- data/lib/studium/exam_topics/theoretische_chemie +5 -0
- data/lib/studium/exam_topics/theoretische_informatik +161 -0
- data/lib/studium/exam_topics/thermodynamics +21 -0
- data/lib/studium/exam_topics/tierzucht +139 -0
- data/lib/studium/exam_topics/toxikologie +453 -0
- data/lib/studium/exam_topics/transcription +185 -0
- data/lib/studium/exam_topics/translation_ribosomes_and_translational_control +154 -0
- data/lib/studium/exam_topics/umweltbiotechnologie +64 -0
- data/lib/studium/exam_topics/umweltchemie +233 -0
- data/lib/studium/exam_topics/urbanism_and_traffic +19 -0
- data/lib/studium/exam_topics/urea_cycle +56 -0
- data/lib/studium/exam_topics/vaccines_and_vaccination +250 -0
- data/lib/studium/exam_topics/vectors_and_gene_therapy +247 -0
- data/lib/studium/exam_topics/verfahrenstechnik +37 -0
- data/lib/studium/exam_topics/verhaltensbiologie +56 -0
- data/lib/studium/exam_topics/veterinary_medicine +10 -0
- data/lib/studium/exam_topics/vitamine +32 -0
- data/lib/studium/exam_topics/wasserkunde +138 -0
- data/lib/studium/exam_topics/weinbau +86 -0
- data/lib/studium/exam_topics/wissenschaft +20 -0
- data/lib/studium/exam_topics/yeast +104 -0
- data/lib/studium/exam_topics/zoologie +334 -0
- data/lib/studium/exams/afterburn/afterburn.rb +304 -0
- data/lib/studium/exams/ask_exam_from_the_upcoming_exams_pool.rb +150 -0
- data/lib/studium/exams/ask_exam_question/ask_exam_question.rb +2757 -0
- data/lib/studium/exams/ask_exam_topic_question.rb +112 -0
- data/lib/studium/exams/ask_question_from_alias.rb +141 -0
- data/lib/studium/exams/ask_question_from_any_of_the_still_missing_lectures.rb +130 -0
- data/lib/studium/exams/ask_question_from_grouped_themes.rb +141 -0
- data/lib/studium/exams/ask_question_from_last_topic.rb +91 -0
- data/lib/studium/exams/ask_random_question.rb +195 -0
- data/lib/studium/exams/autoinclude.rb +7 -0
- data/lib/studium/exams/average_grade/average_grade.rb +402 -0
- data/lib/studium/exams/csv/create_csv_passed_exams_file.rb +217 -0
- data/lib/studium/exams/cycle.rb +291 -0
- data/lib/studium/exams/dataset/dataset.rb +128 -0
- data/lib/studium/exams/designate_ten_random_exam_topics/designate_ten_random_exam_topics.rb +88 -0
- data/lib/studium/exams/exam/exam.rb +130 -0
- data/lib/studium/exams/exam_bubble/exam_bubble.rb +445 -0
- data/lib/studium/exams/exam_bubble/menu_for_the_main_loop.rb +111 -0
- data/lib/studium/exams/exam_question/README.md +3 -0
- data/lib/studium/exams/exam_question/exam_question.rb +427 -0
- data/lib/studium/exams/exam_registration_at/constants.rb +49 -0
- data/lib/studium/exams/exam_registration_at/exam_registration_at.rb +242 -0
- data/lib/studium/exams/exam_registration_at/help.rb +46 -0
- data/lib/studium/exams/exam_registration_at/menu.rb +81 -0
- data/lib/studium/exams/exam_registration_at/report_and_show.rb +133 -0
- data/lib/studium/exams/exam_registration_at/reset.rb +54 -0
- data/lib/studium/exams/exam_statistics_from_this_file/exam_statistics_from_this_file.rb +119 -0
- data/lib/studium/exams/exam_topics.rb +194 -0
- data/lib/studium/exams/exams.rb +20 -0
- data/lib/studium/exams/exams_per_month/exams_per_month.rb +2429 -0
- data/lib/studium/exams/exams_this_week.rb +182 -0
- data/lib/studium/exams/fix_exam_dates.rb +121 -0
- data/lib/studium/exams/frozen.rb +36 -0
- data/lib/studium/exams/last_exams/last_exams.rb +398 -0
- data/lib/studium/exams/lectures_without_exam_entry.rb +137 -0
- data/lib/studium/exams/mandatory_continuous_assessment/mandatory_continuous_assessment.rb +1359 -0
- data/lib/studium/exams/move_all_unsolved_exam_questions_to_the_top_of_the_file.rb +173 -0
- data/lib/studium/exams/move_the_last_exam_question_to_the_top_of_the_file/move_the_last_exam_question_to_the_top_of_the_file.rb +111 -0
- data/lib/studium/exams/n_exams_in_these_topics.rb +477 -0
- data/lib/studium/exams/next_exam.rb +107 -0
- data/lib/studium/exams/next_exams.rb +378 -0
- data/lib/studium/exams/open_exam_associated_url/open_exam_associated_url.rb +154 -0
- data/lib/studium/exams/open_last_exam_question_asked_file/constants.rb +15 -0
- data/lib/studium/exams/open_last_exam_question_asked_file/initialize.rb +29 -0
- data/lib/studium/exams/open_last_exam_question_asked_file/open_last_exam_question_asked_file.rb +110 -0
- data/lib/studium/exams/push_solved_questions_on_top.rb +180 -0
- data/lib/studium/exams/questions_solved_from_day_to_day/questions_solved_from_day_to_day.rb +374 -0
- data/lib/studium/exams/remote_ftp_url.rb +52 -0
- data/lib/studium/exams/repeat_last_question.rb +78 -0
- data/lib/studium/exams/report_total_amount_of_questions_and_answers_for.rb +116 -0
- data/lib/studium/exams/show_all_passed_exams_of_this_university.rb +252 -0
- data/lib/studium/exams/show_backlog_of_exams/show_backlog_of_exams.rb +116 -0
- data/lib/studium/exams/show_next_exams_for.rb +133 -0
- data/lib/studium/exams/show_themes/constants.rb +28 -0
- data/lib/studium/exams/show_themes/menu.rb +61 -0
- data/lib/studium/exams/show_themes/misc.rb +537 -0
- data/lib/studium/exams/show_themes/reset.rb +62 -0
- data/lib/studium/exams/show_themes/show_themes.rb +27 -0
- data/lib/studium/exams/show_upcoming_exams/show_upcoming_exams.rb +1375 -0
- data/lib/studium/exams/solve_all_questions_from_this_topic.rb +114 -0
- data/lib/studium/exams/solved/constants.rb +32 -0
- data/lib/studium/exams/solved/help.rb +24 -0
- data/lib/studium/exams/solved/initialize.rb +55 -0
- data/lib/studium/exams/solved/menu.rb +41 -0
- data/lib/studium/exams/solved/reset.rb +28 -0
- data/lib/studium/exams/solved/solved.rb +326 -0
- data/lib/studium/exams/timetable/constants.rb +142 -0
- data/lib/studium/exams/timetable/timetable.rb +450 -0
- data/lib/studium/exams/unsolve_all_questions_from_this_topic.rb +163 -0
- data/lib/studium/exams/upcoming_exams/upcoming_exams.rb +556 -0
- data/lib/studium/exams/upcoming_exams_at_the_boku/constants.rb +23 -0
- data/lib/studium/exams/upcoming_exams_at_the_boku/html.rb +64 -0
- data/lib/studium/exams/upcoming_exams_at_the_boku/upcoming_exams_at_the_boku.rb +194 -0
- data/lib/studium/exams/upcoming_exams_dataset.rb +247 -0
- data/lib/studium/exams/upcoming_registered_exams/upcoming_registered_exams.rb +257 -0
- data/lib/studium/exams/upload_exam_topics.rb +360 -0
- data/lib/studium/graphviz/README.md +4 -0
- data/lib/studium/graphviz/bachelor_vector_based_strategies.dot +160 -0
- data/lib/studium/graphviz/master_vector_based_strategies.dot +46 -0
- data/lib/studium/gui/gtk3/README.md +1 -0
- data/lib/studium/gui/gtk3/ask_exam_question/ask_exam_question.config +6 -0
- data/lib/studium/gui/gtk3/ask_exam_question/ask_exam_question.rb +760 -0
- data/lib/studium/gui/gtk3/ask_exam_question/manifest.yml +12 -0
- data/lib/studium/gui/gtk3/control_panel/control_panel.rb +39 -0
- data/lib/studium/gui/gtk3/curriculum_viewer/curriculum_viewer.rb +513 -0
- data/lib/studium/gui/gtk3/ects_per_university/ects_per_university.rb +217 -0
- data/lib/studium/gui/gtk3/exam_question_widget/exam_question_widget.rb +1889 -0
- data/lib/studium/gui/gtk3/expand_time_range/expand_time_range.rb +34 -0
- data/lib/studium/gui/gtk3/information_about_a_lecture/information_about_a_lecture.rb +34 -0
- data/lib/studium/gui/gtk3/lecture_information/lecture_information.rb +200 -0
- data/lib/studium/gui/gtk3/show_upcoming_exams/show_upcoming_exams.rb +34 -0
- data/lib/studium/gui/java/exam_question/ExamQuestion$1.class +0 -0
- data/lib/studium/gui/java/exam_question/ExamQuestion.class +0 -0
- data/lib/studium/gui/java/exam_question/ExamQuestion.java +215 -0
- data/lib/studium/gui/javafx/exam_question_widget/exam_question_widget.rb +58 -0
- data/lib/studium/gui/jruby/exam_question_widget/exam_question_widget.rb +317 -0
- data/lib/studium/gui/libui/ask_exam_question/ask_exam_question.rb +349 -0
- data/lib/studium/gui/shared_code/control_panel/control_panel_module.rb +314 -0
- data/lib/studium/gui/shared_code/exam_question_widget/exam_question_widget_module.rb +39 -0
- data/lib/studium/gui/shared_code/expand_time_range/expand_time_range.css +0 -0
- data/lib/studium/gui/shared_code/expand_time_range/expand_time_range_module.rb +190 -0
- data/lib/studium/gui/shared_code/information_about_a_lecture/information_about_a_lecture_module.rb +180 -0
- data/lib/studium/gui/shared_code/show_upcoming_exams/show_upcoming_exams_module.rb +206 -0
- data/lib/studium/images/libui_ask_exam_question.png +0 -0
- data/lib/studium/images/outdated.png +0 -0
- data/lib/studium/images/small_logos/DNA.png +0 -0
- data/lib/studium/images/small_logos/README.md +2 -0
- data/lib/studium/images/small_logos/solved.png +0 -0
- data/lib/studium/images/studies_favicon.png +0 -0
- data/lib/studium/java/README.md +5 -0
- data/lib/studium/java/studium/AskExamQuestion.java +461 -0
- data/lib/studium/java/studium/Base.java +123 -0
- data/lib/studium/java/studium/Constants.java +122 -0
- data/lib/studium/java/studium/EnsureThatTheLogDirectoryExists.java +57 -0
- data/lib/studium/java/studium/Mkdir.java +13 -0
- data/lib/studium/java/studium/OpenLastExamQuestionurlLinkViaTheBrowser.java +90 -0
- data/lib/studium/java/studium/ReturnNQuestionsSolvedInTotal.java +69 -0
- data/lib/studium/java/studium/Solved.java +112 -0
- data/lib/studium/java/studium/Test.java +60 -0
- data/lib/studium/java/studium/studium/AskExamQuestion.class +0 -0
- data/lib/studium/java/studium/studium/Base.class +0 -0
- data/lib/studium/java/studium/studium/Constants.class +0 -0
- data/lib/studium/java/studium/studium/EnsureThatTheLogDirectoryExists.class +0 -0
- data/lib/studium/java/studium/studium/Mkdir.class +0 -0
- data/lib/studium/java/studium/studium/OpenLastExamQuestionurlLinkViaTheBrowser.class +0 -0
- data/lib/studium/java/studium/studium/ReturnNQuestionsSolvedInTotal.class +0 -0
- data/lib/studium/java/studium/studium/Solved.class +0 -0
- data/lib/studium/java/studium/studium/Test.class +0 -0
- data/lib/studium/jobs/jobs.rb +80 -0
- data/lib/studium/logging/README.md +2 -0
- data/lib/studium/logging/ensure_that_the_log_directory_exists.rb +58 -0
- data/lib/studium/logging/html_log_directory.rb +42 -0
- data/lib/studium/logging/log_directory.rb +112 -0
- data/lib/studium/logging/store_last_question_asked_into_file.rb +137 -0
- data/lib/studium/parsers/README.md +2 -0
- data/lib/studium/parsers/custom_exam_results_parser.rb +209 -0
- data/lib/studium/parsers/parse_lva_dates.rb +233 -0
- data/lib/studium/parsers/parse_remote_lecture.rb +331 -0
- data/lib/studium/project/project.rb +88 -0
- data/lib/studium/requires/common_popular_requires.rb +37 -0
- data/lib/studium/requires/commonly_used_requires.rb +14 -0
- data/lib/studium/requires/require_class_exams_solved.rb +7 -0
- data/lib/studium/requires/require_ects_scripts.rb +27 -0
- data/lib/studium/requires/require_encoding.rb +7 -0
- data/lib/studium/requires/require_the_check_and_sanitize_files.rb +31 -0
- data/lib/studium/requires/require_the_curricula_files.rb +28 -0
- data/lib/studium/requires/require_the_exam_question_class.rb +7 -0
- data/lib/studium/requires/require_the_exams_files.rb +46 -0
- data/lib/studium/requires/require_the_logging_files.rb +23 -0
- data/lib/studium/requires/require_the_parsers.rb +28 -0
- data/lib/studium/requires/require_the_studium_constants.rb +10 -0
- data/lib/studium/requires/require_the_studium_project.rb +70 -0
- data/lib/studium/requires/require_the_toplevel_methods.rb +27 -0
- data/lib/studium/requires/require_the_utility_scripts.rb +34 -0
- data/lib/studium/requires/require_upcoming_exams.rb +7 -0
- data/lib/studium/requires/require_yaml.rb +7 -0
- data/lib/studium/requires/return_remote_homepage_of_this_lecture.rb +7 -0
- data/lib/studium/requires/with_GUI.rb +13 -0
- data/lib/studium/requires/www_mode.rb +17 -0
- data/lib/studium/statistics/README.md +4 -0
- data/lib/studium/statistics/best_exam_months.rb +92 -0
- data/lib/studium/statistics/curriculum_comparer/curriculum_comparer.rb +386 -0
- data/lib/studium/statistics/determine_exam_statistics_from_this_file.rb +142 -0
- data/lib/studium/statistics/exam_topics_that_are_about_to_be_completed.rb +119 -0
- data/lib/studium/statistics/max_stats.rb +170 -0
- data/lib/studium/statistics/new_questions_per_year.rb +147 -0
- data/lib/studium/statistics/report_how_many_ects_points_per_curriculum_were_completed.rb +167 -0
- data/lib/studium/statistics/report_how_many_exam_questions_were_answered.rb +474 -0
- data/lib/studium/statistics/show_exam_statistics.rb +66 -0
- data/lib/studium/statistics/show_which_courses_are_in_a_bachelor_or_master_curriculum_respectively.rb +104 -0
- data/lib/studium/statistics/top_stats.rb +127 -0
- data/lib/studium/toplevel_methods/all_passed_exams.rb +37 -0
- data/lib/studium/toplevel_methods/already_solved_this_lecture.rb +101 -0
- data/lib/studium/toplevel_methods/available_topics.rb +161 -0
- data/lib/studium/toplevel_methods/calculate_pr/303/274fungsimmanente_lectures_from_this_file.rb +55 -0
- data/lib/studium/toplevel_methods/copy_the_last_backup_of_file_lecture_information.rb +34 -0
- data/lib/studium/toplevel_methods/curriculum_related_code.rb +1038 -0
- data/lib/studium/toplevel_methods/does_this_course_require_mandatory_presence.rb +52 -0
- data/lib/studium/toplevel_methods/download.rb +161 -0
- data/lib/studium/toplevel_methods/e.rb +16 -0
- data/lib/studium/toplevel_methods/ects_from_lectures.rb +250 -0
- data/lib/studium/toplevel_methods/editor.rb +67 -0
- data/lib/studium/toplevel_methods/esystem.rb +29 -0
- data/lib/studium/toplevel_methods/filter_away_invalid_questions.rb +77 -0
- data/lib/studium/toplevel_methods/find_exam_topic_and_exam_title.rb +3807 -0
- data/lib/studium/toplevel_methods/has_this_lecture_been_already_passed_but_the_id_was_changed_lateron.rb +42 -0
- data/lib/studium/toplevel_methods/has_this_module_been_completed.rb +208 -0
- data/lib/studium/toplevel_methods/install_the_project_on_the_given_hostsystem.rb +32 -0
- data/lib/studium/toplevel_methods/is_on_roebe.rb +27 -0
- data/lib/studium/toplevel_methods/is_this_exam_topic_included.rb +46 -0
- data/lib/studium/toplevel_methods/is_this_homepage_registered.rb +32 -0
- data/lib/studium/toplevel_methods/is_this_lecture_a_practical_course.rb +93 -0
- data/lib/studium/toplevel_methods/is_this_lecture_registered_in_upcoming_exams.rb +45 -0
- data/lib/studium/toplevel_methods/java.rb +32 -0
- data/lib/studium/toplevel_methods/lecture_information.rb +108 -0
- data/lib/studium/toplevel_methods/lva_numbers.rb +358 -0
- data/lib/studium/toplevel_methods/main_dataset.rb +73 -0
- data/lib/studium/toplevel_methods/map_input_to_this_curriculum_filename.rb +607 -0
- data/lib/studium/toplevel_methods/methods_related_to_files_and_directories.rb +481 -0
- data/lib/studium/toplevel_methods/misc.rb +580 -0
- data/lib/studium/toplevel_methods/n_questions_available.rb +141 -0
- data/lib/studium/toplevel_methods/n_topics_available.rb +63 -0
- data/lib/studium/toplevel_methods/names_of_all_solved_exams.rb +77 -0
- data/lib/studium/toplevel_methods/note_down_the_start_time_and_how_many_exams_have_been_already_solved.rb +69 -0
- data/lib/studium/toplevel_methods/opnn.rb +27 -0
- data/lib/studium/toplevel_methods/passed_this_exam_on.rb +105 -0
- data/lib/studium/toplevel_methods/read_delay_between_questions_from_file.rb +36 -0
- data/lib/studium/toplevel_methods/regexes.rb +90 -0
- data/lib/studium/toplevel_methods/registered_for_this_exam.rb +83 -0
- data/lib/studium/toplevel_methods/remove_comments.rb +27 -0
- data/lib/studium/toplevel_methods/remove_exam_topics_that_were_already_answered.rb +27 -0
- data/lib/studium/toplevel_methods/remove_tags.rb +35 -0
- data/lib/studium/toplevel_methods/report.rb +439 -0
- data/lib/studium/toplevel_methods/return_all_exams_on_this_day.rb +69 -0
- data/lib/studium/toplevel_methods/return_dataset_for_this_exam_topic.rb +45 -0
- data/lib/studium/toplevel_methods/return_ects_from_this_lecture_stored_in_the_file_lecture_information.rb +194 -0
- data/lib/studium/toplevel_methods/return_hash_of_already_solved_lectures.rb +46 -0
- data/lib/studium/toplevel_methods/return_last_exam_question.rb +34 -0
- data/lib/studium/toplevel_methods/return_lva_number_of_this_lecture.rb +72 -0
- data/lib/studium/toplevel_methods/return_n_percent_solved_from_this_topic.rb +90 -0
- data/lib/studium/toplevel_methods/return_n_questions_were_answered_for_this_topic.rb +62 -0
- data/lib/studium/toplevel_methods/return_proper_university_image.rb +86 -0
- data/lib/studium/toplevel_methods/return_question_answer_string_from_this_topic.rb +63 -0
- data/lib/studium/toplevel_methods/return_remote_homepage_of_this_lecture.rb +11311 -0
- data/lib/studium/toplevel_methods/return_remote_moodle_link_of_this_lecture.rb +2405 -0
- data/lib/studium/toplevel_methods/return_sanitized_dataset_from_the_file_lecture_information.rb +110 -0
- data/lib/studium/toplevel_methods/return_theme_of_the_next_upcoming_exam.rb +40 -0
- data/lib/studium/toplevel_methods/runmode.rb +97 -0
- data/lib/studium/toplevel_methods/sanitized_dataset_from_file_passed_exams_per_month.rb +53 -0
- data/lib/studium/toplevel_methods/set_last_file_for_exam_questions.rb +64 -0
- data/lib/studium/toplevel_methods/set_this_cd_alias_to.rb +92 -0
- data/lib/studium/toplevel_methods/spacer.rb +18 -0
- data/lib/studium/toplevel_methods/time.rb +297 -0
- data/lib/studium/toplevel_methods/total_ects_points_passed.rb +73 -0
- data/lib/studium/toplevel_methods/try_to_guess_the_most_likely_lva_id.rb +58 -0
- data/lib/studium/toplevel_methods/try_to_return_the_expanded_name_of_this_lecture.rb +64 -0
- data/lib/studium/toplevel_methods/unfinished.rb +51 -0
- data/lib/studium/toplevel_methods/url.rb +106 -0
- data/lib/studium/toplevel_methods/verbose_truth.rb +36 -0
- data/lib/studium/toplevel_methods/when_was_this_lecture_passed.rb +54 -0
- data/lib/studium/toplevel_methods/word_wrap.rb +56 -0
- data/lib/studium/toplevel_methods/write_into_file_related_functionality.rb +197 -0
- data/lib/studium/toplevel_methods/yes_or_no_ja_oder_nein.rb +33 -0
- data/lib/studium/universities_in_austria/README.md +2 -0
- data/lib/studium/universities_in_austria/boku/README.md +4 -0
- data/lib/studium/universities_in_austria/boku/boku_/303/266ffnungszeiten.rb +28 -0
- data/lib/studium/universities_in_austria/boku/show_three_pillars_of_these_lectures.rb +110 -0
- data/lib/studium/universities_in_austria/boku/three_pillars.rb +237 -0
- data/lib/studium/universities_in_austria/tu_vienna/README.md +6 -0
- data/lib/studium/universities_in_austria/tu_vienna/tu_ferien.rb +42 -0
- data/lib/studium/universities_in_austria/tu_vienna/tu_/303/266ffnungszeiten.rb +34 -0
- data/lib/studium/university_course/university_course.rb +409 -0
- data/lib/studium/utility_scripts/attribute_lectures_to_university/attribute_lectures_to_university.rb +375 -0
- data/lib/studium/utility_scripts/audio_stats.rb +171 -0
- data/lib/studium/utility_scripts/auto_stud/auto_stud.rb +252 -0
- data/lib/studium/utility_scripts/auto_stud/constants.rb +18 -0
- data/lib/studium/utility_scripts/auto_stud/initialize.rb +23 -0
- data/lib/studium/utility_scripts/auto_stud/misc.rb +18 -0
- data/lib/studium/utility_scripts/autopurge_this_lecture_date.rb +93 -0
- data/lib/studium/utility_scripts/average_grade_of_this_curriculum.rb +155 -0
- data/lib/studium/utility_scripts/blocked_courses.rb +146 -0
- data/lib/studium/utility_scripts/calendar/README.md +2 -0
- data/lib/studium/utility_scripts/calendar/calendar.rb +251 -0
- data/lib/studium/utility_scripts/calendar/misc.rb +35 -0
- data/lib/studium/utility_scripts/check_description_of_these_lectures.rb +221 -0
- data/lib/studium/utility_scripts/course_registrations/course_registrations.rb +98 -0
- data/lib/studium/utility_scripts/courses/courses.rb +177 -0
- data/lib/studium/utility_scripts/create/README.md +2 -0
- data/lib/studium/utility_scripts/create/webpage_of_university.rb +129 -0
- data/lib/studium/utility_scripts/create/webpage_of_university_BOKU.rb +61 -0
- data/lib/studium/utility_scripts/create/webpage_of_university_TU.rb +60 -0
- data/lib/studium/utility_scripts/create/webpage_of_university_UniWien.rb +60 -0
- data/lib/studium/utility_scripts/create_database/create_database.rb +106 -0
- data/lib/studium/utility_scripts/current_lectures_belonging_to_both_bachelor_and_master_curriculum.rb +113 -0
- data/lib/studium/utility_scripts/currently_participating_in_these_lectures/currently_participating_in_these_lectures.rb +104 -0
- data/lib/studium/utility_scripts/display_lecture_url/display_lecture_url.rb +176 -0
- data/lib/studium/utility_scripts/expand_time_range/expand_time_range.rb +521 -0
- data/lib/studium/utility_scripts/finished_exams_at_this_university/finished_exams_at_this_university.rb +173 -0
- data/lib/studium/utility_scripts/foreign_language_percentage/constants.rb +23 -0
- data/lib/studium/utility_scripts/foreign_language_percentage/foreign_language_percentage.rb +149 -0
- data/lib/studium/utility_scripts/foreign_language_percentage/help.rb +31 -0
- data/lib/studium/utility_scripts/foreign_language_percentage/initialize.rb +25 -0
- data/lib/studium/utility_scripts/foreign_language_percentage/menu.rb +158 -0
- data/lib/studium/utility_scripts/foreign_language_percentage/report.rb +62 -0
- data/lib/studium/utility_scripts/foreign_language_percentage/reset.rb +50 -0
- data/lib/studium/utility_scripts/foreign_language_percentage/run.rb +19 -0
- data/lib/studium/utility_scripts/generate_spreadsheet/generate_spreadsheet.rb +354 -0
- data/lib/studium/utility_scripts/generate_spreadsheet/misc.rb +144 -0
- data/lib/studium/utility_scripts/holidays/holidays.rb +156 -0
- data/lib/studium/utility_scripts/homepage_of_these_courses/homepage_of_these_courses.rb +125 -0
- data/lib/studium/utility_scripts/lectures_attributed_to_universities/lectures_attributed_to_universities.rb +336 -0
- data/lib/studium/utility_scripts/lva_dates_of_the_important_courses.rb +111 -0
- data/lib/studium/utility_scripts/lva_nummer/lva_nummer.rb +431 -0
- data/lib/studium/utility_scripts/mandatory_lectures_in_this_month/mandatory_lectures_in_this_month.rb +316 -0
- data/lib/studium/utility_scripts/moodle/moodle.rb +213 -0
- data/lib/studium/utility_scripts/name_of_this_lva_id/name_of_this_lva_id.rb +110 -0
- data/lib/studium/utility_scripts/new_stud.rb +324 -0
- data/lib/studium/utility_scripts/next_week/next_week.rb +103 -0
- data/lib/studium/utility_scripts/not_yet_registered/not_yet_registered.rb +120 -0
- data/lib/studium/utility_scripts/open_last_exam_question_url_link_via_the_browser.rb +76 -0
- data/lib/studium/utility_scripts/passed_ects_per_year/passed_ects_per_year.rb +313 -0
- data/lib/studium/utility_scripts/passed_pr/303/274fungsimmanente_courses/passed_pr/303/274fungsimmanente_courses.rb +181 -0
- data/lib/studium/utility_scripts/pdf/README.md +2 -0
- data/lib/studium/utility_scripts/pdf/create_pdf_file_for_this_exam_topic.rb +355 -0
- data/lib/studium/utility_scripts/pdf/hexapdf_support.rb +50 -0
- data/lib/studium/utility_scripts/preparatory_meetings/preparatory_meetings.rb +317 -0
- data/lib/studium/utility_scripts/priority/priority.rb +164 -0
- data/lib/studium/utility_scripts/priority_points/priority_points.rb +263 -0
- data/lib/studium/utility_scripts/publish_my_exams/publish_my_exams.rb +174 -0
- data/lib/studium/utility_scripts/regexes/README.md +1 -0
- data/lib/studium/utility_scripts/regexes/generate_regex.rb +314 -0
- data/lib/studium/utility_scripts/regexes/generate_regexes_for_the_available_moodle_links.rb +55 -0
- data/lib/studium/utility_scripts/regexes/generate_regexes_for_the_registered_lectures.rb +48 -0
- data/lib/studium/utility_scripts/report_outdated_timetable_entries/report_outdated_timetable_entries.rb +142 -0
- data/lib/studium/utility_scripts/report_whether_this_lecture_is_registered_in_the_file_lecture_information/report_whether_this_lecture_is_registered_in_the_file_lecture_information.rb +128 -0
- data/lib/studium/utility_scripts/resolve_practical_courses_date_conflicts/individual_resolve_practical_courses_date_conflicts.rb +254 -0
- data/lib/studium/utility_scripts/resolve_practical_courses_date_conflicts/resolve_practical_courses_date_conflicts.rb +265 -0
- data/lib/studium/utility_scripts/scrape_remote_university_url.rb +138 -0
- data/lib/studium/utility_scripts/semester_schedule_creator/semester_container.rb +144 -0
- data/lib/studium/utility_scripts/semester_schedule_creator/semester_schedule_creator.rb +374 -0
- data/lib/studium/utility_scripts/semesterplaner/semesterplaner.rb +311 -0
- data/lib/studium/utility_scripts/set_aliases_based_on_this_file.rb +97 -0
- data/lib/studium/utility_scripts/show_all_passed_master_lectures/show_all_passed_master_lectures.rb +126 -0
- data/lib/studium/utility_scripts/show_conflicting_lva_lectures/show_conflicting_lva_lectures.rb +1385 -0
- data/lib/studium/utility_scripts/show_descriptions_of_lectures_belonging_to_this_module/constants.rb +23 -0
- data/lib/studium/utility_scripts/show_descriptions_of_lectures_belonging_to_this_module/menu.rb +63 -0
- data/lib/studium/utility_scripts/show_descriptions_of_lectures_belonging_to_this_module/reset.rb +33 -0
- data/lib/studium/utility_scripts/show_descriptions_of_lectures_belonging_to_this_module/run.rb +50 -0
- data/lib/studium/utility_scripts/show_descriptions_of_lectures_belonging_to_this_module/show_descriptions_of_lectures_belonging_to_this_module.rb +145 -0
- data/lib/studium/utility_scripts/show_lecturers/show_lecturers.rb +147 -0
- data/lib/studium/utility_scripts/show_lectures/show_lectures.rb +910 -0
- data/lib/studium/utility_scripts/show_lectures_fitting_to_this_language/show_lectures_fitting_to_this_language.rb +121 -0
- data/lib/studium/utility_scripts/show_lectures_fitting_to_this_theme/show_lectures_fitting_to_this_theme.rb +105 -0
- data/lib/studium/utility_scripts/show_lectures_on_the_commandline/show_lectures_on_the_commandline.rb +3167 -0
- data/lib/studium/utility_scripts/show_lectures_on_this_day/show_lectures_on_this_day.rb +150 -0
- data/lib/studium/utility_scripts/show_lva_dates_of_this_lecture/show_lva_dates_of_this_lecture.rb +182 -0
- data/lib/studium/utility_scripts/show_mixed_bachelor_master_courses/show_mixed_bachelor_master_courses.rb +92 -0
- data/lib/studium/utility_scripts/show_outdated_lva_dates/show_outdated_lva_dates.rb +214 -0
- data/lib/studium/utility_scripts/show_passed_exams_having_this_grade/show_passed_exams_having_this_grade.rb +91 -0
- data/lib/studium/utility_scripts/show_solved_english_lectures/show_solved_english_lectures.rb +139 -0
- data/lib/studium/utility_scripts/steop/README.md +4 -0
- data/lib/studium/utility_scripts/steop/show_all_steop_lectures.rb +93 -0
- data/lib/studium/utility_scripts/steop/steop_lectures_in_this_curriculum.rb +284 -0
- data/lib/studium/utility_scripts/steop/steop_lva_dates.rb +119 -0
- data/lib/studium/utility_scripts/studienkennzahl/studienkennzahl.rb +116 -0
- data/lib/studium/utility_scripts/studium_skeleton/studium_skeleton.rb +242 -0
- data/lib/studium/utility_scripts/stundenplan.rb +600 -0
- data/lib/studium/utility_scripts/sync_studium_relevant_entries_one_level_downwards.rb +217 -0
- data/lib/studium/utility_scripts/ufind/ufind.rb +106 -0
- data/lib/studium/utility_scripts/upcoming_mandatory_presence_courses/constants.rb +26 -0
- data/lib/studium/utility_scripts/upcoming_mandatory_presence_courses/run.rb +20 -0
- data/lib/studium/utility_scripts/upcoming_mandatory_presence_courses/upcoming_mandatory_presence_courses.rb +187 -0
- data/lib/studium/utility_scripts/video_lecture_downloader/video_lecture_downloader.rb +107 -0
- data/lib/studium/utility_scripts/week_parser/constants.rb +23 -0
- data/lib/studium/utility_scripts/week_parser/help.rb +32 -0
- data/lib/studium/utility_scripts/week_parser/menu.rb +59 -0
- data/lib/studium/utility_scripts/week_parser/misc.rb +373 -0
- data/lib/studium/utility_scripts/week_parser/reset.rb +65 -0
- data/lib/studium/utility_scripts/week_parser/run.rb +18 -0
- data/lib/studium/utility_scripts/week_parser/show.rb +236 -0
- data/lib/studium/utility_scripts/week_parser/week_parser.rb +49 -0
- data/lib/studium/utility_scripts/weekday_parser.rb +155 -0
- data/lib/studium/utility_scripts/weekly_schedule.rb +198 -0
- data/lib/studium/utility_scripts/wochenplanung/wochenplanung.rb +267 -0
- data/lib/studium/version/version.rb +46 -0
- data/lib/studium/www/exams/exams.cgi +54 -0
- data/lib/studium/www/fast_ask_exam_question/fast_ask_exam_question.cgi +156 -0
- data/lib/studium/www/handle_curricula/handle_curricula.cgi +154 -0
- data/lib/studium/www/next_generation_exam_question_trainer/next_generation_exam_question_trainer.cgi +112 -0
- data/lib/studium/www/next_generation_exam_question_trainer/solved.cgi +26 -0
- data/lib/studium/www/sinatra/app.rb +231 -0
- data/lib/studium/www/sinatra/curriculum_displayer/curriculum_displayer.rb +162 -0
- data/lib/studium/www/sinatra/misc.rb +115 -0
- data/lib/studium/www/statistics/statistics.cgi +82 -0
- data/lib/studium/www/upcoming_exams/upcoming_exams.cgi +36 -0
- data/lib/studium/yaml/ad_hoc_trainer/README.md +2 -0
- data/lib/studium/yaml/ad_hoc_trainer/exam_topics.md +22 -0
- data/lib/studium/yaml/allowed_themes_for_courses/allowed_themes_for_courses.yml +348 -0
- data/lib/studium/yaml/array_allowed_entries_for_the_file_lecture_information/array_allowed_entries_for_the_file_lecture_information.yml +71 -0
- data/lib/studium/yaml/available_exam_topics/available_exam_topics.yml +234 -0
- data/lib/studium/yaml/backlog_of_exams.yml +37 -0
- data/lib/studium/yaml/colours/custom_colours.yml +50 -0
- data/lib/studium/yaml/colours/use_colours.yml +1 -0
- data/lib/studium/yaml/current_exams.yml +30 -0
- data/lib/studium/yaml/curricula/README.md +39 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_agrarwissenschaften_033255.yml +147 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_biologie_basisblock_033630.yml +71 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_biologie_botanik_033630.yml +100 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_biologie_ecology_033630.yml +74 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_biologie_mikrobiologie_und_genetik_033630.yml +122 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_biologie_molekulare_biologie_033630.yml +106 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_biologie_zoologie_033630.yml +87 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_chemie_033662.yml +165 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_dummy_curriculum.yml +182 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_elektrotechnik_und_informationstechnik_033235.yml +13 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_forstwirtschaft_033225.yml +115 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_informatik_033521.yml +136 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_ktww_033231.yml +84 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_lmbt_033217.yml +121 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_medizinische_informatik_033533.yml +283 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_molekularbiologie_033665.yml +95 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_nutrition_science_033638.yml +119 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_pharmazie_033305.yml +170 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_technische_chemie_033290.yml +131 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_technische_informatik_033535.yml +23 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_ubrm_033227.yml +142 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_verfahrenstechnik_033273.yml +167 -0
- data/lib/studium/yaml/curricula/bachelor/bachelor_wirtschaftsinformatik_033526.yml +29 -0
- data/lib/studium/yaml/curricula/experimental/bachelor_informatik_in_den_lebenswissenschaften.yml +137 -0
- data/lib/studium/yaml/curricula/individual/bachelor_formale_logik.yml +88 -0
- data/lib/studium/yaml/curricula/individual/bachelor_informatik_und_molekulare_biologie.yml +1161 -0
- data/lib/studium/yaml/curricula/individual/bachelor_vector_based_strategies_in_life_sciences_molecular_medicine_and_biotechnology.yml +1157 -0
- data/lib/studium/yaml/curricula/individual/master_bioinformatics_and_nanobiotechnology_in_molecular_medicine.yml +306 -0
- data/lib/studium/yaml/curricula/individual/master_vector_based_strategies_in_life_sciences_molecular_medicine_and_biotechnology.yml +741 -0
- data/lib/studium/yaml/curricula/master/master_bioinformatik_066875.yml +75 -0
- data/lib/studium/yaml/curricula/master/master_biologie_molekulare_mikrobiologie_mikrobielle_oekologie_und_immunbiologie_066830.yml +78 -0
- data/lib/studium/yaml/curricula/master/master_biologische_chemie_066863.yml +66 -0
- data/lib/studium/yaml/curricula/master/master_dummy_curriculum.yml +197 -0
- data/lib/studium/yaml/curricula/master/master_genetik_und_entwicklungsbiologie_066877.yml +89 -0
- data/lib/studium/yaml/curricula/master/master_lmbt_066418.yml +112 -0
- data/lib/studium/yaml/curricula/master/master_molecular_biology_066865.yml +72 -0
- data/lib/studium/yaml/curricula/master/master_molekulare_biologie_066834.yml +151 -0
- data/lib/studium/yaml/curricula/master/master_pharmazie_066605.yml +176 -0
- data/lib/studium/yaml/curricula/master/master_technische_chemie_066490.yml +123 -0
- data/lib/studium/yaml/curricula/outdated/master_bioinformatics_and_molecular_biotechnology_including_aspects_from_molecular_medicine.yml +438 -0
- data/lib/studium/yaml/curricula/outdated/master_food_science_and_plant_biotechnology.yml +31 -0
- data/lib/studium/yaml/curricula.yml +562 -0
- data/lib/studium/yaml/daily_questions_solved/daily_questions_solved.yml +1849 -0
- data/lib/studium/yaml/default_delay.yml +4 -0
- data/lib/studium/yaml/default_encoding.yml +1 -0
- data/lib/studium/yaml/directory_to_the_exam_topics.yml +0 -0
- data/lib/studium/yaml/editor.yml +1 -0
- data/lib/studium/yaml/exams/next_exams_to_do.md +9 -0
- data/lib/studium/yaml/file_for_exam_questions.yml +1 -0
- data/lib/studium/yaml/german/README.md +2 -0
- data/lib/studium/yaml/german/german_to_english_month_names.yml +16 -0
- data/lib/studium/yaml/grouped_themes/grouped_themes.yml +258 -0
- data/lib/studium/yaml/holidays/holidays.yml +201 -0
- data/lib/studium/yaml/important_exams.yml +274 -0
- data/lib/studium/yaml/inscription_dates_of_universities.yml +60 -0
- data/lib/studium/yaml/lecture_aliases.yml +138 -0
- data/lib/studium/yaml/lecture_information/lecture_information.yml +63818 -0
- data/lib/studium/yaml/log_dir.yml +1 -0
- data/lib/studium/yaml/main_topic/main_topic.yml +11 -0
- data/lib/studium/yaml/max_stats.yml +256 -0
- data/lib/studium/yaml/meta_themes +1 -0
- data/lib/studium/yaml/mitbelegung/README.md +4 -0
- data/lib/studium/yaml/mitbelegung/mitbelegung.yml +21 -0
- data/lib/studium/yaml/mitteilungsbl/303/244tter/mitteilungsbl/303/244tter.yml +363 -0
- data/lib/studium/yaml/n_total_questions.yml +1 -0
- data/lib/studium/yaml/rename_konsole_tab.yml +1 -0
- data/lib/studium/yaml/semester_planner/README.md +4 -0
- data/lib/studium/yaml/semester_planner/semester_planner.yml +189 -0
- data/lib/studium/yaml/show_topic.yml +1 -0
- data/lib/studium/yaml/statistics/lecture_information.yml +1 -0
- data/lib/studium/yaml/statistics/max_stats.yml +239 -0
- data/lib/studium/yaml/statistics/statistics.yml +77 -0
- data/lib/studium/yaml/week/01_monday.yml +25 -0
- data/lib/studium/yaml/week/02_tuesday.yml +68 -0
- data/lib/studium/yaml/week/03_wednesday.yml +63 -0
- data/lib/studium/yaml/week/04_thursday.yml +20 -0
- data/lib/studium/yaml/week/05_friday.yml +31 -0
- data/lib/studium/yaml/week/06_saturday.yml +16 -0
- data/lib/studium/yaml/week/07_sunday.yml +0 -0
- data/lib/studium/yaml/week/README.md +10 -0
- data/lib/studium.rb +5 -0
- data/studium.gemspec +82 -0
- data/test/testing_colourized_question_and_answer.rb +18 -0
- data/test/testing_studium.rb +244 -0
- data/test/testing_studium_base_class.rb +31 -0
- data/test/testing_the_file_lecture_information.rb +18 -0
- data/test/testing_time_component.rb +29 -0
- metadata +1101 -0
@@ -0,0 +1,372 @@
|
|
1
|
+
# =========================================================================== #
|
2
|
+
# === Python tag
|
3
|
+
#
|
4
|
+
# Everything about the python programming language.
|
5
|
+
# =========================================================================== #
|
6
|
+
|
7
|
+
- In Python: what is meant with <one>a higher-order function</one>? This is the case <one>when a function is passed as an argument to another function</one>.
|
8
|
+
- How does the <one>while loop</one> in Python work? This is a trick question: <one>there is no do-while loop in Python</one>.
|
9
|
+
- In Python: say that we have a string stored in <one>x</one> that <two>contains newlines</two>. How do we <three>split this string into a list</three>, based on these newlines? Use: <one>x.splitlines()</one> []
|
10
|
+
- In Python: from the syntax point of view alone, what is the difference between <one>a list</one> and <one>a tuple</one>? A <one>tuple</one> is enclosed within parentheses, aka <two>()</two>. []
|
11
|
+
- In Python: die <one>Mathematikfunktionen</one> für <two>komplexe Zahlen</two> befinden sich in welchem Modul? Im Modul <one>cmath</one>; <two>import cmath</two>.
|
12
|
+
- In Python: gegeben sei folgender Code: <one>s = 'Das ist ein Test.'; s[:7]</one>. <two>Wie interpretiert Python dies</two>? Python nimmt an das <one>s[:7]</one> eigentlich <one>s[0:7]</one> ist.
|
13
|
+
- In Python: was ist das <one>Gegenteil</one> von <two>__add__()</two>? <one>__sub__()</one>
|
14
|
+
- In Python: <one>how</one> to calculate the <two>square root of 9</two>? <one>9 ** (1</one>/<one>2.0)</one> # => <two>3.0</two>
|
15
|
+
- Die <one>mathematischen Funktionen</one> befinden sich, in Python, <two>in welchem Modul</two>? Im Modul <one>math</one>. URL: https://docs.python.org/3/library/math.html
|
16
|
+
- In Python: how can we convert an <one>integer</one> to an <one>octal</one> string representation? Via <one>oct(x)</one>, which will convert the integer variable x into an <two>octal representation</two> (a string).
|
17
|
+
- In Python: say that we have the following array: <one>array = ["Python", "is", "a", "snake"]</one>. How to <two>join this into a String</two>? <one>" ".join(array)</one>
|
18
|
+
- In <one>Python-Funktionen</one>: nenne <two>zwei optionale Eigenschaften</two> (die somit weglassen werden können). A: (1) die <one>Parameter</one> (2) den <one>Rückgabewert</one>
|
19
|
+
- In Python: how to <one>remove a directory</one>? <one>os.rmdir(path)</one>
|
20
|
+
- In Python: how to <one>create a directory</one>? Via: <one>import os; os.mkdir()</one>
|
21
|
+
- In Python: if we look at <one>pandas</one>, we can see <two>a Series</two> and <two>a DataFrame</two>. <three>Which one of these two typically includes more data</three>? The <one>DataFrame</one>, as it is simply <two>a collection of series</two>.
|
22
|
+
- In Python: when we use <one>string.format()</one>, <two>the replacement fields are marked by ... </two>? <one>Curly braces</one>, such as in <two>"Hello, {}. You are {}.".format(name, age)</two>.
|
23
|
+
- In Python: wie erzeugen wir <one>ein leeres set</one>, genannt <two>menge</two>? <one>menge = set()</one>
|
24
|
+
- In Python: <one>wie fängt man Fehler ab</one>? Mit Hilfe von <one>try: except NAME:</one>
|
25
|
+
- In Python: <one>how</one> <two>to subclass</two> from class Person, a student? <one>class Student(Person):</one>
|
26
|
+
- In Python: was ist der Unterschied zwischen <one>0b11011</one> und <one>0x1af</one>? (1) <one>0b</one> ist eine <two>Binärzahl</two>. (2) <one>0x</one> ist eine <two>Hexadezimalzahl</two>.
|
27
|
+
- In python's <one>Tkinter</one> gibt es <two>Geometry Manager</two>. <three>Welche drei verschiedene Manager gibt es hier</three>? (1) <one>grid</one> (2) <one>pack</one> (3) <one>place</one>
|
28
|
+
- In Python: how can we <one>delete a file</one>? Via: <one>os.remove(i)</one>
|
29
|
+
- In Python: wir können in einer Funktion <one>def foo(**bla)</one> schreiben. <two>Was ist damit gemeint</two>? Dies bedeutet das <one>die Parameter</one> als <two>Dictionary</two> übergeben werden.
|
30
|
+
- In Python: nenne ein Beispiel <one>wann</one> wir <two>global x</two> verwenden. A: Zum Beispiel innerhalb einer Funktion, um eine <one>globale Variable x</one> zu ändern.
|
31
|
+
- <one>Wie</one> finden wir in Python heraus, ob ein Charakter <two>in einem String vorhanden</two> ist? Mit Hilfe von <one>in</one>: <two>s = "Dies ist unser Teststring"; 'u' in s</two>
|
32
|
+
- In Python: wie <one>löschen</one> wir eine Variable? <one>x = None</one> - oder auch <one>del(x)</one>; <one>del x</one> ist ebenso möglich.
|
33
|
+
- Gibt es in Python <one>Konstanten</one>? <one>Nein</one>. <two>Alle Variablen können nach der Zuweisung geändert werden</two>.
|
34
|
+
- In Python: how to replace <one>execfile(filename)</one> with code that works in Python3? Use: <one>exec(open(filename).read())</one>
|
35
|
+
- Die <one>Ungleichheit von Werten</one> kann <two>in Python</two> <three>wie festgestellt werden</three>? Über den <one>Operator</one> <two>!=</two>.
|
36
|
+
- In Python: wie erhalten wir <one>das aktuelle Verzeichnis</one>? <one>import os; os.getcwd()</one>
|
37
|
+
- In Python: warum gibt der code <one>for i in range(3): print(i)</one> <three>0, 1, 2</three> aus? Da der <turquoise>Startwert</turquoise> weggelassen werden kann. Der Code oben ist somit genau das selbe wie: <one>for in in range(0,3): print(i)</one>
|
38
|
+
- Welche <one>Basis</one> verwendet das <three>Hexadezimalsystem</three>? Die Basis <one>16</one>.
|
39
|
+
- Give a specific example in python for <one>a complex number</one>. A: <one>z = 1j</one>
|
40
|
+
- Wie berechnen wir die <one>Einheitsmatrix</one> in <three>numpy</three>? Mit Hilfe von: <one>identity(dimension)</one>
|
41
|
+
- In Python: <one>wie</one> finden wir heraus, <two>wie genau Python rechnet</two>? Mit Hilfe von: <one>getcontext().prec</one>
|
42
|
+
- In Python: <one>wie</one> <two>leeren wir eine Liste komplett</two>? Mit Hilfe von <one>liste.clear()</one>.
|
43
|
+
- In Python: wie geht der <one>Destruktor</one> in Objekten? <one>def __del__(self):</one>
|
44
|
+
- In Python: say that we have a file handle, such as via <one>file = open(file_name, "w")</one>. <two>How can we handle the case when there is an error, specifically</two>? We can use <one>except IOError:</one>.
|
45
|
+
- In Python: <one>welcher Fehler</one> geschieht bei <one>int('e')</one>? <one>ValueError</one>: <two>invalid literal for int()</two>.
|
46
|
+
- In Python: <one>how</one> do we recognize <two>formatted string literals</two>? These <one>f-strings</one> have an <two>f</two> at the beginning.
|
47
|
+
- Wie rufen wir ein <one>Generator-Objekt</one>, in Python, auf? Mit Hilfe von <one>next()</one>, also: <two>next(generator_hier)</two>
|
48
|
+
- Python erkennt wie das wir mit einem <one>float</one> arbeiten wollen? Anhand eines <one>Dezimalpunktes</one>, zum Beispiel <two>0.3</two> oder <two>3.5</two> oder <two>.7</two>.
|
49
|
+
- In Python: how to check whether <one>a file</one> called <three>foobar</three> exists? <one>os.path.isfile('foobar')</one>
|
50
|
+
- In Python: <one>kwargs</one> <two>is an abbreviation of ... </two>? <one>Keyword arguments</one>.
|
51
|
+
- In Python3: was ergibt folgender code: <one>print(False + False)</one>? <one>0</one>.
|
52
|
+
- In Python: ist es möglich <one>einen Bruch aus einem String</one> zu generieren? Ja. Beispiel hierzu: <one>a = Fraction('5</one>/<one>8')</one>
|
53
|
+
- In Python: <one>wann</one> mögen wir <two>.isspace()</two> verwenden? Um herauszufinden ob wir es <one>nur mit Leerzeichen</one>/<one>Whitespaces</one> zu tun haben, zum Beispiel <two>"\n".isspace() # => True</two>.
|
54
|
+
- In Python: what is meant when we see code like this: <one>for w in words[:]:</one> A: This means to iterate over the elements in the <one>words</one> dictionary, after having copied the words dictionary, via the <one>[:] slice</one>.
|
55
|
+
- In Python: wie konvertieren wir den <one>String</one> 'Text' in 'tEXT'? Mit Hilfe von <one>.swapcase()</one>, also <two>'Text'.swapcase()</two>.
|
56
|
+
- In Python: wie erhalten wir den <one>größten gemeinsamen Teiler zweier Zahlen</one>, wie <two>15</two> und <two>10</two>? Mit Hilfe von <one>gcd</one> (englisch: <two>greatest common divisor</two>, wie: <three>gcd(15, 10) # => 5</three>
|
57
|
+
- <one>Python</one> stellt uns einfache Iterationen, insbesondere vordefinierte (unendliche) <two>Generatorfunktionen</two>, über <three>welches Modul</three> bereit? <one>import itertools</one>
|
58
|
+
- Was, in etwa gibt folgender python code aus: <one>sqrt(2).evalf()</one>? <one>1.414213562</one>
|
59
|
+
- In Python: what is the output of the following code: <one>max("what are you")</one>? <yellowgreen>y</yellowgreen>. The function <one>max()</one> will return the character with <two>the highest ascii value</two>, which in this case is <three>y</three>.
|
60
|
+
- In Python: wie wird der <one>Konstruktor</one> der <two>Klasse Foobar</two> aufgerufen? Mittels: <one>Foobar.__init__()</one>
|
61
|
+
- In Python: nenne <one>eine wichtige Relation</one> in <two>OOP</two>. A: Die <one>Vererbung</one>.
|
62
|
+
- In Python: is it <one>allowed</one> to have <two>for</two> and <two>else</two> combined? <one>Yes</one>. Typically the <two>for-loop</two> will then include a <one>break</one> statement.
|
63
|
+
- In Python: ist <one>Slicing</one> <two>bei Tupeln</two> möglich? <one>Ja</one>.
|
64
|
+
- Wie entfernen wir aus einem Python <one>Hash</one> den key genannt <two>x</two>? <one>del hash["x"]</one>
|
65
|
+
- In Python: wie wird ein <one>Bruch</one> genannt, auf Englisch? <one>Fraction</one>.
|
66
|
+
- Was ist die Ausgabe des folgenden Codes in Python: <one>type(2+4j)</one>? <one>class 'complex'</one>
|
67
|
+
- In Python: how are <one>classes</one> defined (without code)? <one>Python</one> defines classes as <two>blueprints for creating objects</two>.
|
68
|
+
- In Python: how can we <two>fetch all names</two> available inside a module called <one>foobar</one>? Use: <one>dir(</one><two>foobar</two><one>)</one>
|
69
|
+
- In Python: wie kopieren wir explizit die beiden Variablen <one>a</one> und <one>b</one> zueinander? Zum Beispiel so: <one>b = a[:]</one>
|
70
|
+
- In Python: <one>how</one> is <two>an operation such as 5 </two>//<two> 8</two> called? This is a <one>floored division</one>, more commonly called <two>floor division</two>. URL: https://python-reference.readthedocs.io/en/latest/docs/operators/floor_division.html
|
71
|
+
- Python kann in welchen beiden <one>Modi</one> operieren? (1) <one>Interaktiver Modus</one> (2) <one>Script-Modus</one>
|
72
|
+
- In Python we can use <one>exit()</one> <two>to exit from a program</two>. <three>Internally this is treated as a call to which function</three>? To <one>sys.exit()</one>.
|
73
|
+
- In Python: nenne ein konkretes Beispiel für einen <one>Lambda-Ausdruck</one> der <three>vordefiniert</three> ist. A: <one>operator.mul()</one> Beispiel hierzu: <two>operator.mul(2,3) # => 6</two>
|
74
|
+
- In Python: wo könnten wir <one>die Routinen</one> für <two>Numerisches Rechnen</two> finden? Im Modul <one>numpy</one>. URL: https://numpy.org/
|
75
|
+
- In Python: ist ein <one>dictionary</one> <two>veränderbar</two> (mutable)? <one>Ja</one>.
|
76
|
+
- In Python: darf eine <one>Liste</one> <two>Elemente verschiedener Typen gleichzeitig enthalten</two>? <one>Ja</one>. Siehe folgendes Beispiel: <two>liste = [1,'foobar',True,34.26]</two>
|
77
|
+
- In Python: how can we <one>add a list to another list</one>? We can use: <one>list1.extend(list2)</one>
|
78
|
+
- In Python: <one>show two ways</one> how to <two>return a key from a dictionary</two>, called <three>x</three>. A: (1) <one>x['name']</one> (2) <one>x.get('name')</one>
|
79
|
+
- In Python: was ist <one>die einfachste Listenoperation</one>? <one>any()</one>
|
80
|
+
- In Python: was ergibt <one>cos(0)</one>? <one>1.0</one>.
|
81
|
+
- How does <one>python</one> call <two>errors detected during execution</two>? <one>Exceptions</one>.
|
82
|
+
- In Python: can <one>decimal instances</one> <two>be constructed from strings</two>? <one>Yes</one>. Example: <two>float("0.1")</two>
|
83
|
+
- In Python: how to easily <one>swap two values</one>? <one>a, b = b, a</one>
|
84
|
+
- In Python: das einfachste dictionary ist ... ? <one>Das leere dictionary</one>: <two>{}</two>
|
85
|
+
- In Python: <one>Listenoperationen</one> sind Spezialfälle von ... ? <one>List Comprehensions</one>. URL: https://www.w3schools.com/python/python_lists_comprehension.asp
|
86
|
+
- In python: how to do <one>multiple inheritance</one>? <one>class Foobar(class1, class2, class3):</one>
|
87
|
+
- In Python, allgemein formuliert: was liefert die Funktion <one>filter()</one>? Einen <one>Iterator</one>.
|
88
|
+
- In Python: how to <one>output the first five characters</one> of a given file called <two>foobar.txt</two>? <one>f = open('foobar.txt', 'r'); print(f.read(5))</one>
|
89
|
+
- In Python: können wir <one>.filter()</one> durch eine <two>List Comprehension</two> ersetzen? <one>Ja</one>.
|
90
|
+
- Ist <one>r = .8</one> in Python eine valide Anweisung? Ja; dies steht für <one>0.8</one>.
|
91
|
+
- In Python: um aus einer Funktion <one>mehr als einen Wert</one> zurückzugeben, verwendet man ... als <two>Rückgabetyp</two>. A: Ein <one>Tupel</one> (also ein <one>tuple</one>).
|
92
|
+
- Was würde folgender Python-Code ausgeben: <one>list(range(1,6))</one> A: Wir würden hier <one>[1,2,3,4,5]</one> erhalten.
|
93
|
+
- In Python: die <one>Verwendung ungültiger Bezeichner</one> führt zu welchem Fehler? Einem <one>Syntaxfehler</one>, und zwar <two>SyntaxError: invalid syntax</two>.
|
94
|
+
- In Python: name a big difference between <one>strings</one> and <one>lists</one>. A: (1) <one>Strings</one> are <two>immutable</two>. (2) <one>Lists</one> are <two>mutable</two>.
|
95
|
+
- In Python: wie konvertieren die <one>Dezimahlzahl 13</one> in eine Hexadezimalzahl? <one>a = 13; hex(a)</one> - ergibt <two>'0xd'</two>.
|
96
|
+
- In Python: nenne ein Beispiel für <one>ein funktionales Konstrukt</one>. A: <one>Lambda-Ausdrücke</one>. URL: https://realpython.com/python-lambda/
|
97
|
+
- In Python: <one>how</one> to <two>display the current PATH value</two>? Via <one>import sys; print(sys.path)</one>
|
98
|
+
- In Python: wie überführen wir <one>liste = [1,3,7]</one> zu <three>[2, 6, 14]</three>, in python, mittels <two>list comprehension</two>? <one>[2 * x for x in liste]</one>
|
99
|
+
- In Python: ist <one>t = ()</one> <two>gültige Syntax</two>? <one>Ja</one>.
|
100
|
+
- <one>Wie</one> <two>runden</two> wir in python code? Mit Hilfe der Funktion <two>round()</two>. Beispiel: <one>round(5.33333333, 2) # => 5.33</one>
|
101
|
+
- Wie können wir in <one>Python2</one> eine Datei laden? Mit Hile von <one>execfile()</one>.
|
102
|
+
- In Python: <one>welchen Zweck</one> erfüllt die Funktion <two>.isspace()</two>? <royalblue>.isspace()</royalblue> stellt fest, ob der String ausschliesslich <one>Leerzeichen-ähnliche Elemente</one> inkludiert, inklusive <one>Space</one>, <one>Tabulatoren</one> sowie <one>Newlines</one>. Beispiel: <mediumslateblue>x = ' '; x.isspace() # True</mediumslateblue>. Das gibt auch True zurück wenn wir, zum Beispiel, nur einen Tabulator haben: <one>x = "\t"; x.isspace()</one>.
|
103
|
+
- In Python: was ergibt folgender Code: <one>from math import *; hypot(3, 4)</one>? <one>5.0</one>
|
104
|
+
- In Python: wie überprüfen wir ob ein String <one>nur</one> aus Buchstaben besteht? <one>'test'.isalpha()</one>
|
105
|
+
- In Python: ist <one>a @ b</one> <two>eine valide Anweisung</two>? <one>Ja</one> - für <two>Matrixoperationen</two> in <three>numpy</three>.
|
106
|
+
- In Python: wie fügen wir eine Nummer wie zum Beispiel <one>1234</one>, <two>in eine Liste hinein</two>, an einer bestimmten Position - sagen wir <three>an Position 3</three>? <one>liste.insert(index, 1234)</one>, also <one>liste.insert(3, 1234)</one>.
|
107
|
+
- Warum mag, in python, <one>x = open('ausgabe.txt','w')</one> gefährlich sein? Da bei <one>w</one> eine existierende Datei auch <two>gelöscht</two> werden mag.
|
108
|
+
- How to <one>add something to a list</one>, stored in the variable x, in Python? <one>x.append(your_item_here)</one>
|
109
|
+
- In Python: wie <three>überladen</three> wir <one>print</one>? Dies geschieht wie folgt: <one>def __str__(self):</one>
|
110
|
+
- Say that you have a string such as <one>x = '243'</one> in python. How to turn this into a list of <two>['2', '4', '3']</two>? Use: <one>list(x)</one>
|
111
|
+
- In python: how to do <one>floor division</one>? Via //. (This will essentially basically cut off the part after the period, if there is a float such as 3.5 or 5.8 and so forth). URL: https://www.quora.com/What-does-floor-division-in-Python-do
|
112
|
+
- In Python: was ist <one>der einfachste Fall einer zusammengesetzten Datenstruktur</one>? Ein <one>Tupel</one>. Beispiel: <mediumpurple>t = (3, True, 'tup')</mediumpurple>
|
113
|
+
- Unterscheidet Python zwischen Groß- und Kleinschreibung? <one>Ja</one>, stets.
|
114
|
+
- In Python3: was ergibt folgender Code: <one>s = 'Zugriff'; s[2]</one>? <one>g</one>
|
115
|
+
- In Python kann man eine Liste, via <one>Reverse Slicing</one>, elegant umdrehen. Zeige die <two>Syntax</two> hierzu an. A: <one>liste[::-1]</one>
|
116
|
+
- Wie geht eine <one>Endlosschleife in Python</one>? <one>while True:</one>
|
117
|
+
- In Python gibt es <one>zwei unterschiedliche Arten</one> wie man Listen sortieren kann. Zeige diese Arten, anhand der Liste genannt <two>foobar</two>. A: (1) <one>foobar.sort()</one> (2) <one>sorted(foobar)</one>
|
118
|
+
- In Python: <one>wie</one> importieren wir sämtliche Bestandteile des <two>math-Moduls</two>? <one>from math import *</one>
|
119
|
+
- In Python: <one>how</one> can <two>a random item from a list be picked</two>? (1) Start with <one>import random</one>. (2) Use <one>random.choice(list)</one>, such as in: <two>random.choice([1,2,3,4,5])</two>.
|
120
|
+
- In Python: was ist <one>3, 9, 7</one> - also <two>gemeinsam betrachtet</two>? Dies ist <one>ein Tupel</one>; eigentlich steht dies für <two>(3, 9, 7)</two>.
|
121
|
+
- In Ruby we can use <one>.include?('foo')</one> <two>to check for a substring</two>. In Python we could use ... ? <one>.find()</one>, such as in <two>'abc'.find('b')</two>.
|
122
|
+
- Name python's five <one>standard data types</one>. A: (1) <one>Numbers</one> (2) <one>String</one> (3) <one>List</one> (4) <one>Tuple</one> (5) <one>Dictionary</one>
|
123
|
+
- In Python: wie überladen wir den <one>+</one> operator? Mit Hilfe von <one>__add__</one>, also zum Beispiel: <two>def __add__(self, i):</two>
|
124
|
+
- In Python: <one>wie</one> überprüfen wir <two>ob ein String</two> <three>nur aus Nummern</three> besteht? <one>string = '123'; string.isdigit()</one>.
|
125
|
+
- In Python, bei einer <one>Menge</one>: <two>wie</two> fügen wir <one>mehrere Elemente auf einmal zu der Menge</one> hinzu? Mittels <three>menge.update(liste)</three>.
|
126
|
+
- In Python: ist <one>-.8</one> eine valide Anweisung? Ja; <one>-.8</one> steht einfach für die negative Zahl <one>-0.8</one>.
|
127
|
+
- In Python: functions can have a <one>docstring</one>, but how can we obtain this <one>docstring</one>? Via <one>__doc__</one>, such as in: <two>def foo():; '''docstring example here'''; foo.__doc__</two>
|
128
|
+
- In Python: given a list, such as <one>x = [1,2,3,4,5,6,7,8]</one>, we may apply <one>x[1:4]</one>. What does the 1 and 4 mean here, respectively? (1) The <royalblue>1</royalblue> means to start at the <one>second element</one> in the list. (2) The <royalblue>4</royalblue> means to end at the <one>fifth element</one> in the list - but to <crimson>NOT</crimson> include it. (3) The <mediumslateblue>colon</mediumslateblue> in the middle is how Python's lists recognize that we want to <four>use slicing</four> to get objects in the list.
|
129
|
+
- Was ergibt folgender python-code: <one>any([])</one>? <one>False</one>.
|
130
|
+
- In Python: what will <one>range(0, 5)</one> yield (at the least <two>in python 2</two>)? <one>[0, 1, 2, 3, 4]</one>
|
131
|
+
- In Python: show a way how to <one>remove the first element of a list</one> stored in the variable <two>x</two>. A: Via: <one>x.pop(0)</one>
|
132
|
+
- In Python: <one>welcher Datentyp</one> sollte verwendet werden, <two>um reelle Zahlen exakt darzustellen</two>? <one>Decimal</one>.
|
133
|
+
- In Python: <one>which function</one> is always called before <three>__init__()</three>? <one>__new__()</one>
|
134
|
+
- In Python: zeige <one>eine Alternative</one> zur Schreibweise <two>2**3</two>. A: <one>pow(2, 3)</one>
|
135
|
+
- In Python, über das <one>sympy</one> Modul: <two>wie definieren wir mehrere symbolische Variablen auf einmal</two>? <one>x, y, z = symbols('x y z')</one>
|
136
|
+
- In Python, wie rufen wir folgenden code auf: <one>class Klasse: def hello(): print('Hallo!')</one>? A: <one>Klasse.hello()</one>
|
137
|
+
- In Python: <one>ein gewünschtes Intervall</one> <two>erzeugen wir mittels ... </two>? <one>range</one>
|
138
|
+
- Wozu benötigen wir die Funktion <one>any()</one> in python? Mit der Funktion <royalblue>.any()</royalblue> überprüft man, ob mindestens ein Wert der übergebenen <royalblue>Liste</royalblue> zu <one>True</one> evaluiert. Dies funktioniert auch mit <one>Tupel</one>: <two>l = (1, 3, 4, 0); print(any(l)) # => True</two>.
|
139
|
+
- In Python: ist <one>die Zahl der Parameter an eine Funktion</one> limitiert? <one>Nein</one>.
|
140
|
+
- In python we have <one>a</one> / <one>b</one> and <one>a</one> // <one>b</one>. <two>How are these called, respectively</two>? (1) <two>a</two> / <two>b</two> is called <one>True division</one>. (2) <two>a</two> // <two>b</two> is called <one>Floor division</one>.
|
141
|
+
- In Python: was ist die wichtigste Methode von <one>doctest</one>? <one>doctest.testmod()</one>
|
142
|
+
- In Python: Given the list <one>x = [1,2,3]</one>, how to return and remove the first element? <one>x.pop(0)</one>
|
143
|
+
- In Python: wie greifen wir auf <one>Pi</one> und <one>E</one> zu - also den <two>mathematischen Konstanten</two>? (1) <one>math.pi</one> (2) <one>math.e</one>
|
144
|
+
- In Python: wie können wir überprüfen, ob eine Datei <one>geschlossen</one> ist? Mit Hilfe von <one>file_object.closed()</one>.
|
145
|
+
- In Python: ist eine <one>Liste</one> eine <two>zusammengesetzte Datenstruktur</two>? <one>Ja</one>.
|
146
|
+
- In Python: what is meant with <one>f-strings</one>? These are <one>formatted string literals</one>.
|
147
|
+
- In Python: wie erhalten wir die Anzahl an Zeichen im String <one>s</one>? <one>len(s)</one>
|
148
|
+
- In Python: what is the result of <one>range(5)</one> respectively <one>list(range(5))</one>? <one>[0, 1, 2, 3, 4]</one>
|
149
|
+
- Is <one>yield</one> <two>a keyword</two> in Python3? <one>Yes</one> it is.
|
150
|
+
- In Python: wie konvertieren wir <one>x = "FOO"</one> zu <two>foo</two>? Mit Hilfe von <one>x.lower()</one>.
|
151
|
+
- Nenne die <one>Boolschen Werte</one> in Python. A: (1) <one>True</one> (2) <one>False</one>
|
152
|
+
- In Python: zeige ein Beispiel für einen <one>zusammengesetzten Operator</one>. A: <one>x = 10; x += 1</one>.
|
153
|
+
- In Python3: was ergibt folgender Code: <one>liste = [1, 2, 3, 4, 5]; liste[2:4]</one>? <one>[3, 4]</one>
|
154
|
+
- In Python3: wie <one>iterieren</one> wir über jedes Zeichen in einem String? <one>string = "foobar"; for character in string: print(character)</one>
|
155
|
+
- In Python: <one>solve(x**2+1, x)</one> steht für ... ? <one>x^2 + 1 = 0</one>
|
156
|
+
- In Python: how can we get the <one>binary representation</one> <two>of the number 10</two>? By using <one>bin(10)</one>, which would return <two>0b1010</two>.
|
157
|
+
- In Python: was ist <one>()</one>? Ein <one>leeres Tupel</one>.
|
158
|
+
- In Python: what is the result of <one>1.0</one>//<one>2.0</one>? <one>0</one>.
|
159
|
+
- In Python: are <one>dictionaries</one> <two>ordered</two>? <one>No</one> - <two>Dictionaries in Python are not ordered</two>.
|
160
|
+
- In Python: wie können wir die beiden <one>dictionaries</one> <two>foobar1</two> und <two>foobar2</two> miteinander vereinigen? Mit Hilfe von <one>.update()</one>, wie zum Beispiel so: <two>foobar1.update(foobar2)</two>
|
161
|
+
- In Python: wie werden die beiden Nummern jeweils in <one>range(1, 5)</one> genannt? Dies ist die <one>untere Grenze</one> sowie die <one>obere Grenze</one>.
|
162
|
+
- In Python: wie ziehen wir die Wurzel aus <one>2</one> mit Hilfe des <two>decimal-Moduls</two>? <one>from decimal import *; Decimal(2)</one> ** <one>Decimal(0.5)</one>
|
163
|
+
- In Python: besitzen <one>Klassen-Methoden</one> einen <two>self-Parameter</two>? <one>Nein</one> - sie sind ja auch nicht von einem bestimmten Objekt abhängig.
|
164
|
+
- In Python: can we use a <one>try:</one> clause without an associated <two>except</two> block? <one>No</one>.
|
165
|
+
- In Python: schreibe eine <one>anonyme Funktion</one>, die <two>zwei Zahlen addiert</two>. A: <one>lambda x, y: x + y</one>
|
166
|
+
- In Python: <one>wie</one> rufen wir die korrespondierende <two>string.chomp</two> Operation auf? <one>string.rstrip()</one>
|
167
|
+
- Wie können wir <one>1451</one> als <three>Oktalzahl</three> in Python definieren, ohne Verwendung einer Funktion? Via, zum Beispiel, <one>result = 0o1451 # => 809</one>.
|
168
|
+
- In Python: what does <one>range(5, 10)</one> yield, at the least in <two>python 2</two>? <one>[5, 6, 7, 8, 9]</one>.
|
169
|
+
- In Python: <one>how</one> to execute a standalone .py file if it is called directly, from the commandline? Via <one>name-main</one>, aka <two>if __name__ == '__main__':</two>
|
170
|
+
- In Python: ist <three>"Hallo Welt!"</three> ein <one>Literal</one>? <one>Ja</one>.
|
171
|
+
- In Python: code wie <one>for i in range(4):</one> <two>steht eigentlich für ... </two>? <one>for i in range (0,4):</one>
|
172
|
+
- In Python, beim code <one>for i in range (3,11,2):</one> - <two>wo hört diese Schleife auf</two>? Bei <one>9</one>; <two>11 ist nicht mehr inkludiert</two>, da range() in python <three>nicht inklusiv</three> arbeitet.
|
173
|
+
- In Python: wie entfernen wir alle Elemente in einem dictionary? Verwende: <one>x.clear()</one>
|
174
|
+
- In Python, bei der Verwendung einer <one>for-Schleife</one>: <two>was wird bei einem dictionary durchlaufen</two>? Die <one>Schlüssel</one> - also die <two>keys</two> - des dictionary.
|
175
|
+
- In Python: nenne ein Beispiel für einen <one>zusammengesetzten Typ</one>. A: Ein <one>dictionary</one>. URL: https://www.w3schools.com/python/python_dictionaries.asp
|
176
|
+
- Nenne <one>zwei</one> <two>Testmöglichkeiten in Python</one>. A: (1) <one>doctest</one> (2) <one>unittest</one>
|
177
|
+
- In Python: how to convert <one>a string</one> to <one>a list</one>? Via <one>list(string)</one> - <two>this will convert the string to a list</two>.
|
178
|
+
- In Python: darf man <one>bei einem Tupel</one>, <two>vor dem ")"</two>, ein Komma verwenden? <one>Ja</one>.
|
179
|
+
- Möchte man in Python mehrere Elemente einer Liste löschen (delete a slice of a list), kann man was verwenden? Das Schlüsselwort <one>del</one>. Beispiel hierzu: <two>liste = [1,3,5,7,9]; del liste[2:4]</two>
|
180
|
+
- In Python: <one>how</one> to iterate over the key and value pairs in a given hash <two>x</two>? <one>for key, value in x.items()</one>. (Note that this has been called <two>.iteritems()</two> in the past.)
|
181
|
+
- In Python: was ist mit dem Begriff <one>Entpacken</one> gemeint? Dies ist zum Beispiel ein <one>Tupel</one>, der an mehrere Variablen zugewiesen wird. Beispiel hierzu: <two>tupel = (3, True, 'foobar'); (a, b, c) = tupel; c # 'foobar'</two>
|
182
|
+
- In Python: <one>how</one> to <two>verify the type of any object</two>? We can use the <one>type()</one> function.
|
183
|
+
- <one>Vererbung</one>, in Python, baut ... zwischen Klassen auf. A: <one>Hierarchien</one>.
|
184
|
+
- In Python: wie definieren wir <one>ein leeres tuple</one>, genannt <one>t</one>? Via <one>t = ()</one>.
|
185
|
+
- In Python: what is the <one>PVM</one>? The <two>PVM</two> is the <one>Python Virtual Machine</one>. URL: https://www.gkindex.com/python-tutorial/python-virtual-machine.jsp
|
186
|
+
- In Python: <one>wie</one> brechen wir aus einer <two>Endlosschleife</two> aus? Mit Hilfe des Schlüsselwortes <one>break</one>.
|
187
|
+
- In Python: ist <one>menge = { x ** 3 for x in range(1, 11) }</one> <two>eine gültige Anweisung</two>? <one>Ja</one>.
|
188
|
+
- In Python: was ergibt <one>x = 3.67; int(x)</one>? <one>3</one>.
|
189
|
+
- In Python: how can we convert a <one>string</one> to a <one>tuple</one>? Via <one>tuple(string)</one>, which will convert the string to a tuple. Example: <two>tuple("123") → ('1', '2', '3')</two>
|
190
|
+
- In Python: wofür genau steht: <one>a = Fraction()</one>? Dies stellt den Bruch <one>0</one>/<one>1</one> dar.
|
191
|
+
- Ein <one>Set</one> in Python ist <two>mutable</two> oder <two>immutable</two>? Ein <one>set</one> in Python ist <two>mutable</two>.
|
192
|
+
- In Python: what will <one>float(3)</one> yield? <one>3.0</one>.
|
193
|
+
- In Python: <one>wie</one> fügen wir etwas in eine <two>Liste</two> <three>x</three> ein, an einer bestimmten Stelle? Mit Hilfe von <one>.insert()</one> - also <one>x.insert()</one>. Vollständiges Beispiel hierzu: <one>x = [1,2,3]; x.insert(0, 'ABC'); x # => ['ABC', 1, 2, 3]</one>
|
194
|
+
- In Python: a <one>Frozen Binary Executable</one> <two>contains which two major elements into a single executable program</two>? (1) The <one>Python interpreter</one>. (2) The <one>program's byte code</one>.
|
195
|
+
- In Python: nenne einen sehr wichtigen <one>Unterschied</one> zwischen <two>Listen</two> und <two>Tupel</two>. A: Listen sind <one>mutable</one>; <two>können also verändert werden</two>.
|
196
|
+
- In Python: was ergibt folgender code: <one>gcd(15, 10)</one>? Die <one>Nummer 5</one>.
|
197
|
+
- In Python: was ergibt folgender code: <one>Decimal('1.0') == 1.0</one>? <one>True</one>.
|
198
|
+
- In Python: zeige ein Beispiel für ein <one>Literal</one>. A: <one>12356987</one>.
|
199
|
+
- In Python: was meinen wir mit <one>u={0:.7e}'.format(535643.2359)</one>? Hier steht <one>e</one> für eine <two>Exponentialzahl</two>.
|
200
|
+
- In Python: <one>wie</one> drehen wir eine Liste um? Mit Hilfe von <one>.reverse()</one>, wie zum Beispiel in: <two>liste = [1, 2, 3, 4, 5]; liste.reverse()</two>
|
201
|
+
- <one>Wie</one> führen wir in Python <two>.chomp()</two> durch? Mit Hilfe von <one>object.rstrip()</one>.
|
202
|
+
- <one>The simplest collection type in python</one> is ... ? The <one>tuple</one>. URL: https://www.programiz.com/python-programming/tuple
|
203
|
+
- Was sind <one>Gleitkommazahlen</one> in Python + Beispiel? Dies sind positive oder negative Zahlen mit einem <one>Dezimalpunkt</one>, zum Beispiel <two>31.4</two> oder <two>-5.3</two>.
|
204
|
+
- In Python: wie konvertieren wir eine Liste, genannt <three>l</three>, in ein <one>set</one>? <one>l = [1,7,3,3]; x = set(l)</one>
|
205
|
+
- In Python: what is the result of the following code: <one>i = 3; type(i)</one>? <one><class 'int'></one>
|
206
|
+
- In python, was ergibt folgender Code: <one>s = "Das ist ein Test."; s[:]</one> A: "Das ist ein Test."
|
207
|
+
- Wenn wir <one>eine komplexe Zahl in Python</one> haben, wieso müssen wir <two>1j</two> schreiben statt <two>j</two>? Da python sonst annehmen würde, das <one>j</one> eine Variable wäre.
|
208
|
+
- Was ist mit folgendem Ausdruck gemeint: <one>r = 123.4 E3</one>? Dies ist <royalblue>123.4 x (10 ** 3)</royalblue>, also eine <two>Exponentialschreibweise</two>.
|
209
|
+
- In Python: was bedeutet <one>5</one> // <one>3</one> und <two>welches Ergebnis würden wir hier erhalten</two>? Dies ist eine <one>Ganzzahldivision</one>; das Ergebnis ist <two>1</two>.
|
210
|
+
- Was meinen wir mit einer <one>zusammengesetzten Zuweisung</one> in Python? Dies ist zum Beispiel <one>a += 3</one>, welche als Kurzform für <one>a = a + 3</one> steht.
|
211
|
+
- In Python: how to check whether a <one>List (Array) is empty</one>? <one>if not name_of_the_array_here:</one>
|
212
|
+
- Wie ersetzen wir in Python alle <one>o</one> mit <one>a</one> im String <three>x = 'foobar'</three>? A: <one>x = 'foobar'; x.replace('o','a'); x</one>
|
213
|
+
- In Python: nenne die drei <one>Hauptverzweigungen</one>, die verwendet werden. A: (1) <one>if</one> (2) <one>else</one> (3) <one>elif</one>
|
214
|
+
- In Python: nenne <one>drei zusammengesetzte Typen</one>. A: (1) <one>Tupel</one> (2) <one>Listen</one> (3) <one>Dictionaries</one>
|
215
|
+
- In Python: <one>re.I</one> ist <two>eine Abkürzung für ... </two>? <one>re.IGNORECASE</one>
|
216
|
+
- In Python: <one>was ergibt folgender Code</one>: <two>liste = [1, 3, 7]; [2 * x for x in liste]</two>? <one>[2, 6, 14]</one>.
|
217
|
+
- Wie nennen wir, auf Englisch, eine <one>automatische Rangordnung der Operatoren</one>? <one>Operator precedence</one>.
|
218
|
+
- Was ist mit dem Begriff <one>lexikalische Elemente</one> gemeint, zumindest in Python? Dies sind <one>die kleinsten Grundbausteine</one>, aus denen <two>Python-Programme</two> bestehen.
|
219
|
+
- In Python: wie wird der Vorgang genannt, bei dem ein <one>Teilstring extrahiert wird</one>, auf englisch? <one>Slicing</one>.
|
220
|
+
- In python, beim <one>sympy Modul</one>: <two>welches ist die wichtigste Klasse</two>? Die <one>Klasse Symbol</one>.
|
221
|
+
- In Python: <one>welche</one> <two>zwei Arten von Schleifen</two> finden hier Verwendung? (1) die <one>while-Schleife</one> (2) die <one>for-Schleife</one>
|
222
|
+
- In Python: was bedeutet der zweite Parameter der <one>round() Funktion</one>? Dieser Parameter determiniert, <one>auf wie viele Stellen gerundet werden soll</one>. Beispiel hierzu: <two>round (3.7584, 2) # 3.76</two>
|
223
|
+
- In Python: what is the purpose of the <one>PYTHONPATH environment variable</one>? <one>PYTHONPATH</one> tells the Python interpreter where to <two>locate the module files</two> imported into a program.
|
224
|
+
- In Python: zeige wie wir ausgehend von der <one>Klasse Bar</one> eine <two>Subklasse genannt Foo</two> erstellen können. A: <one>class Foo(Bar):</one>
|
225
|
+
- In Python: ein <one>Literal</one> <two>evaluiert zu ... </two>? <one>Sich selbst</one>.
|
226
|
+
- In Python: wir möchten in einer Klasse <one>kleiner oder gleich</one>, also <one><=</one>, implementieren. <two>Wie gehen wir vor</two>? Wir definieren <one>def __le__():</one> in dieser Klasse. (Mnemonic: <slateblue>defle</slateblue>)
|
227
|
+
- In Python: beim <one>sympy Modul</one>, wofür steht <two>evalf</two>? <one>evalf</one> steht für <two>evaluate as float value</two>.
|
228
|
+
- In Python: is this valid code? <one>1 < 4 < 6</one>? A: <one>Yes</one>. This expression will return <two>True</two>.
|
229
|
+
- Um <one>reduce()</one> in python zu verwenden, <two>muss man welches Modul importieren</two>? <one>import functools</one>
|
230
|
+
- Was ergibt folgender python-code: <one>any([0, 0, 0])</one>. A: <one>False</one>.
|
231
|
+
- In Python: der <one>Standarddatentyp</one> eines (<two>Numpy</two>) <three>Arrays</three> ist ...? <one>Float</one>.
|
232
|
+
- In Python: <one>welche Klammern</one> verwenden wir bei einer <two>Liste</two>? <one>Eckige Klammern</one>, also <two>[]</two>.
|
233
|
+
- Sei, in Python, die Liste <one>x = [1,2,3,4,5,6,7,8]</one> definiert. <two>Wie kann das vorletzte Element angesprochen werden</two>? Via <one>x[-2]</one>.
|
234
|
+
- In Python: wie erhalten wir den <one>Absolutbetrag</one> von <two>-3</two>? <one>abs(-3)</one>
|
235
|
+
- In Python: zeige ein <one>konretes Code-Beispiel</one> für eine <three>rekursive Funktion</three>. A: <one>def foo(i = 100): if i == 0: exit(); foo(i - 1)</one>
|
236
|
+
- In Python: wie wird eone Variable innerhalb einer Funktion definiert, auf die <one>von aussen zugegriffen</one> werden kann? Mittels <one>global name_of_the_variable</one>.
|
237
|
+
- In python: <one>which method</one> is <two>the constructor</two>, that is, <three>the method which creates the object itself</three>? <one>__new__()</one>
|
238
|
+
- In Python: wofür genau steht: <one>b = Fraction(6)</one>? Dies ist eigentlich <one>b = Fraction(6,1)</one>, also <two>der Bruch 6</two>/<two>1</two>.
|
239
|
+
- Was ist <one>die einfachste Anweisung in Python</one>? Die <one>leere Anweisung</one> - zum Beispiel <two>pass</two>.
|
240
|
+
- Wie nennen wir einen <one>Operator</one>, der <two>zwischen den Operanden steht</two>? <one>Infixoperator</one>, wie zum Beispiel bei <two>3 + 4</two>. URL: https://en.wikipedia.org/wiki/Infix_notation
|
241
|
+
- Wozu verwenden wir, in sympy und python, <one>sympy.abc</one>? Dieses Modul hat bereits <one>symbolische Namen</one>, wie <two>x</two> und <two>y</two>, vordefiniert.
|
242
|
+
- In Python: <one>Generator-Funktionen</one> sind wie gewöhnliche Funktionen. Statt <two>return</two> verwenden sie jedoch ... ? <one>yield</one>. URL: https://jeffknupp.com/blog/2013/04/07/improve-your-python-yield-and-generators-explained/
|
243
|
+
- In Python: <one>how to calculate the sum of a list</one>? For example, via: <one>sum([1,2,3]) # => 6</one>
|
244
|
+
- In Python: wie wissen wir das es sich um <one>eine Binärzahl</one> handelt? Eine <one>Binärzahl</one> (in Python) beginnt mit <two>0b</two>, also zum Beispiel in <two>0b11011</two>.
|
245
|
+
- In Python: gib ein gutes <one>Beispiel für eine Software die in einer Endlosschleife läuft</one>. A: Der <one>Python-Interpreter</one>.
|
246
|
+
- In Python: the <one>value of zero</one> <two>corresponds to ... </two>? <one>False</one>.
|
247
|
+
- In Ruby we can use <one>.gsub()</one> to replace a string with another string. In python we would use ... ? <one>.replace()</one>, such as in <two>print('Hello World!'.replace("Hello", "Goodbye"))</two>.
|
248
|
+
- In Python: what does <one>0.1 + 0.1 + 0.1</one> yield? <one>0.30000000000000004</one> (also <two>15x0</two>)
|
249
|
+
- In Python: how can we <one>convert</one> a <two>String</two> to an <two>Object</two>? Via <one>eval(string)</one>, such as in <two>x = 'cat'; eval('x')</two>.
|
250
|
+
- In Python: is <one>a function</one> also <two>an object</two>? <one>Yes</one>.
|
251
|
+
- In Python: will the <one>int() function</one> <three>truncate</three>? <one>Yes</one>.
|
252
|
+
- In Python: how to <one>subclass from Exception</one>? <one>class MyError(Exception):</one>
|
253
|
+
- In Python: <one>welches Modul</one> verwenden wir für die <two>symbolische Mathematik</two>? <one>sympy</one>. URL: https://www.sympy.org/en/index.html
|
254
|
+
- Python erlaubt es dem Anwender mit Hilfe von <one>print()</one> eine Ausgabe zu erzeugen. Dabei kann man auch mehrere Argumente verwenden, wie zum Beispiel in <one>print(1,2,3)</one>. Dies erzeugt jedoch standardmäßig jeweils ein <two>Leerzeichen</two> zwischen diesen Werten. Wie lässt sich dies vermeiden? Mit Hilfe des Parameters <one>sep</one>, zum Beispiel wie folgt: <two>print(2, 2+3, 2*3+5, sep='')</two>
|
255
|
+
- <one>Wie</one> übergeben wir konkrete Werte, als <two>Anwender (User)</two>, in ein Python-Programm? Mit Hilfe der Funktion <one>input()</one>.
|
256
|
+
- In Python: darf eine Klasse mehr als eine <one>__init__</one>-Methode besitzen? <one>Ja</one> - die <two>letzte</two> <one>__init__</one> Methode überschreibt die vorhergehende(n) <one>__init__</one> Methode(n).
|
257
|
+
- In Python, was ergibt folgender code: <one>''.isspace()</one>? <one>False</one>.
|
258
|
+
- In Python: wie wird das <one>Durchlaufen von zusammengesetzten Datenstrukturen</one> noch genannt? <one>Iterieren</one>.
|
259
|
+
- Können wir, in python, <one>for-loops</one> auf <two>Strings</two> anwenden? <one>Ja</one>.
|
260
|
+
- In Python: was ergibt folgender code: <one>'ein text'.title()</one>? <one>'Ein Text'</one>.
|
261
|
+
- In Python: wie geben wir <one>nichts</one> zurück, <two>über eine Funktion</two>? Mit Hilfe von <one>return None</one>.
|
262
|
+
- In Python: what is meant with <one>list comprehensions</one>? <one>List comprehensions</one> in python provide <two>a concise way to create lists</two>.
|
263
|
+
- In Python: arbeitet <one>range()</one> <two>inklusiv</two> oder <two>exklusiv</two>? <one>Exklusiv</one> - <one>der </one><two>Endwert</two><one> wird somit nicht inkludiert</one>. <one>range(1,6)</one> liefert uns also die Werte <one>[1,2,3,4,5]</one> - aber nicht 6.
|
264
|
+
- In Python: <one>how</one> to <two>copy a file</two>? <one>import shutil; shutil.copy(src, dest)</one>.
|
265
|
+
- Is <one>nonlocal</one> a <two>keyword</two> in Python3? <one>Yes</one> it is.
|
266
|
+
- In Python: wie fügen wir ein einzelnes Element zu einem <one>set</one> hinzu? Mit Hilfe der Methode <one>.add()</one>.
|
267
|
+
- In Python: wie erhalten wir das (<one>ASCII</one>) Zeichen einer Nummer? Mit Hilfe von <one>chr()</one> also zum Beispiel: <two>chr(86)</two> # => "V".
|
268
|
+
- In Python: was genau macht <one>liste.pop()</one>? <one>.pop()</one> <two>löscht das letzte Element</two> der Liste; und gibt dieses gleichzeitig als Ergebnis zurück (beziehungsweise das Element das als Position an .pop() übergeben wurde).
|
269
|
+
- In Python: <one>how</one> can <two>the underlying operating system be determined</two>? Via <one>sys.platform</one>. Example: <two>import sys; sys.platform # => 'linux'</two>
|
270
|
+
- Wie erkennen wir <one>Tupel</one> in Python? Anhand derer <one>runden Klammern</one>, aka <two>(</two>..<two>)</two>.
|
271
|
+
- In Python: nenne <one>drei verschiedene</one> <two>Mengenoperatoren</two>, inklusive ihres langen Namens. A: (1) <one>Differenz</one>: <three>a - b</three> (2) <one>Durchschnitt</one>: <three>a & b</three> (3) <one>Vereinigung</one>: <three>a | b</three>
|
272
|
+
- Einsatzmöglichkeit des Modul <one>pickle</one>, in python? Das Modul <one>pickle</one> hilft beim <two>Abspeichern von Objekten</two>.
|
273
|
+
- In Python: können wir einen <one>lambda-Ausdruck</one> auch einer <two>Variablen zuweisen</two>? <one>Ja</one>.
|
274
|
+
- In Python 3: was ergibt folgender code: <one>for i in range(3): print(i)</one>? <one>0, 1, 2</one>.
|
275
|
+
- Wie nennen wir <one>__init__</one> noch, in Python? Dies ist <one>der Konstruktor</one>.
|
276
|
+
- In Python: ist <one>...</one> eine valide Anweisung? <one>Ja</one>.
|
277
|
+
- In Ruby we can convert the string '1' into an Integer via '1'.to_i. How to do the same conversion in Python? Use: <one>int("1")</one>
|
278
|
+
- In Python: <one>wo</one> ist <two>der erste Befehl an eine .py Datei</two>, über die Kommandozeile, gespeichert? In <one>sys.argv[1]</one>.
|
279
|
+
- In Python: provide an example of when we may encounter a <one>TypeError</one>. A: For example, <one>"2" + 3</one> - this would result in <two>an error message</two> such as <three>TypeError: can only concatenate str (not "int") to str</three>, in <four>python3</four>.
|
280
|
+
- In Python: <one>welches Modul</one> beschäftigt sich mit der <two>Kommunikation mit dem Betriebssystem</two>? <one>sys</one>, also <two>import sys</two>.
|
281
|
+
- In Python: does a <one>tuple</one> support <two>item assignment</two>? <one>No</one>.
|
282
|
+
- In Python: was ergibt folgender Code: <one>x = "24567"; x[10]</one>? Dies ergibt einen <one>IndexError</one>. Genauer: <two>IndexError: string index out of range</two>
|
283
|
+
- In Python: which clause is <one>always executed</one> before leaving the <two>try</two> statement? The <one>finally</one> clause.
|
284
|
+
- Is <one>as</one> <two>a keyword</two> in Python3? <one>Yes</one> it is. URL: https://www.askpython.com/python/python-keywords
|
285
|
+
- In Python: sind <one>tuple</one> <two>mutable</two> oder <two>immutable</two>? <one>Tuple</one> in Python sind <two>immutable</two>.
|
286
|
+
- In Python: how to <one>create an exception</one> in general? We use the <one>raise</one> statement, such as <two>raise Exception("Sorry, no numbers below zero")</two>.
|
287
|
+
- In Python: Give another name for <one>a function's documentation string</one>. A: The <one>docstring</one>. URL: https://www.datacamp.com/community/tutorials/docstrings-python
|
288
|
+
- <one>Python</one> bietet auch Aspekte aus der <two>funktionalen Programmierung</two> an. <three>Nenne hierzu drei Beispiele</three>. A: (1) <one>Lambda-Ausdrücke</one> (2) <one>List Comprehension</one> (3) <one>Generatorfunktionen</one>
|
289
|
+
- In Python: gegeben sei: <one>s = 'Welcome'</one> - was ergibt dann <two>type(s)</two>? <one>str</one>, also genauer: <two><class 'str'></two>
|
290
|
+
- In Python: was ergibt folgender code: <one>round(3.7584, 2)</one>? <one>3.76</one>
|
291
|
+
- In Python: ist <one>0b1101 == 0B1101</one> wahr? <one>Ja</one>. Man darf das <two>b</two> auch groß schreiben.
|
292
|
+
- Hat Python <one>Mehrfachvererbung</one>? <one>Ja</one>.
|
293
|
+
- In Python: <one>wozu</one> wird <two>linspace</two> verwendet? Mit <one>linspace</one> wird ein <two>Intervall gleichmaßig aufgeteilt</two>.
|
294
|
+
- In Python: wie sollten wir idealerweise <one>numpy</one> laden? Mittels: <one>import numpy as np</one>
|
295
|
+
- In Python, beim <one>sympy Modul</one>: <two>wie können wir eine mathematische Formel ausmultiplizieren</two>? Mit Hilfe von <one>.expand</one>, also <one>funktion.expand()</one>.
|
296
|
+
- In Python: ist der folgende code erlaubt? <one>for _ in range(3): print(_)</one>? A: <one>Ja</one>.
|
297
|
+
- In Python: <one>list</one> versus <one>tuple</one>, the main difference is ... ? The <one>tuple</one> <two>can not be changed after it has been created</two>.
|
298
|
+
- In Python: die <one>Mathematikfunktionen für komplexe Zahlen</one> befinden sich wo ... ? Im Modul <one>cmath</one>: <two>import cmath; cmath.sin(1+1j)</two>
|
299
|
+
- In Python: what will the output of <one>str = 'Hello World!'; print(str[2:5])</one> be? This code will print characters starting from 3rd to 5th. Output would thus be <one>llo</one>.
|
300
|
+
- In Python: if we wish to <one>resume within a loop</one>, <two>which keyword do we have to use</two>? <one>continue</one>
|
301
|
+
- In Python: wie erkennen wir eine <one>Liste</one>? Listen werden in eckige Klammern <one>[</one>..<one>]</one> gesetzt; daran erkennen wir sie. Ein konkretes Beispiel für eine Liste ist: <two>x = [1,2,3]</two>.
|
302
|
+
- In Python: kann eine <one>for loop</one> auch ein <two>Tupel</two> durchlaufen? <one>Ja</one>.
|
303
|
+
- In Python: what is <one>the general strategy to peek at the content of a file</one>? We have to <one>obtain a file handle</one>, via <two>open()</two>, onto the target file at hand.
|
304
|
+
- In Python: wozu wird <one>operatur.mul</one> benutzt? <one>operator.mul</one> ist <one>ein Lambda-Ausdruck</one>, der <two>die zwei übergebenen Elemente miteinander multipliziert</two>, so wie folgender Code auch: <one>lambda x,y : x * y</one>. Beispiel: <three>import operator; operator.__mul__(3,4) # => 12</three>
|
305
|
+
- In Python: if we wish to <one>use multiple exceptions</one> in the same line, how can we do this? Via <one>except (RuntimeError, TypeError, NameError):</one>
|
306
|
+
- In Python: give another name for the <one>f-strings</one>. A: <one>Interpolated format strings</one>.
|
307
|
+
- In Python: how to format a String to the center, via <one>format()</one>? Use: <one>x = 'my string'; formatted = format(x, '^20s'); print('*', formatted, '*')</one>
|
308
|
+
- Was meinen wir mit der <one>Zeitkomplexität</one> eines Algorithmus? Dies meint wie viele Rechenschritte ein Algorithmus <one>benötigt</one>.
|
309
|
+
- In Python: wozu dient die <one>pass</one> Anweisung? Als <one>Platzhalter für später noch einzutragende Anweisungen</one>.
|
310
|
+
- In Python: what is meant with the term <one>frozen binaries</one>? This refers to a python program that is <one>a true executable</one>.
|
311
|
+
- In Python: why does it make use of <one>byte code</one>? Because the <one>byte code can be run much more quickly than the original source code</one> found in a (text) file.
|
312
|
+
- In Python: wie eliminieren wir aus der Liste <one>a = [1,2,3,-1,-2,-3]</one> <two>alle negative Zahlen</two>, mit Hilfe eines <three>Lambda-Ausdrucks</three>? <one>a = [1,2,3,-1,-2,-3]; list(filter(lambda x : x >= 0, a)) # => [1, 2, 3]</one>
|
313
|
+
- In Python: zeige wie ein <one>Lambda-Ausdruck</one> verwendet werden kann, der zwei Zahlen addieret. A: <one>lambda a, b : a + b</one>
|
314
|
+
- In Python: what does <one>print(os.geteuid())</one> print out? The <one>user id of the current process</one>.
|
315
|
+
- In Python: what is the purpose of the <one>PYTHONSTARTUP environment variable</one>? <two>PYTHONSTARTUP</two> contains the path to a file containing Python source code. It is <one>executed every time the python interpreter is started</one>.
|
316
|
+
- In Python: wie nennen wir die Verwendung von <one>__add__</one>? <one>Überladen von Operatoren</one>.
|
317
|
+
- Python searches through <one>which list</one> to determine what files/modules to load? <one>sys.path</one>
|
318
|
+
- In Python: wie überprüfen wir <one>ob eine Datei existiert</one>? <one>import os.path; os.path.isfile(i)</one>
|
319
|
+
- In Python: wie finden wir heraus ob wir es mit einem <one>Verzeichnis</one> zu tun haben? Mit Hilfe von <one>os.path.isdir()</one>.
|
320
|
+
- What is <one>SymPy</one>? <one>SymPy</one> is <one>a Python library for symbolic mathematics</one>. URL: https://en.wikipedia.org/wiki/SymPy
|
321
|
+
- In Python, bei den <one>Generator-Funktionen</one>: was <three>geschieht</three> mit dem letzten Ergebnis? Die <one>Generator-Funktion</one> merkt sich <two>das letzte Ergebnis</two>.
|
322
|
+
- Wie erkennen wir ein <one>set</one> in Python? Anhand der <olivedrab>geschweiften Klammern {}</olivedrab>, wie zum Beispiel: <one>foobar = { 1, 5, 9, 3, 6, 2 }</one>.
|
323
|
+
- In Python: wie kann die Variable <one>b</one> den Bruch <two>3</two>/<two>4</two> repräsentieren? <one>from fractions import Fraction; b = Fraction(3, 4)</one>
|
324
|
+
- In Python: we can use <one>the open() function</one> to <two>open a file</two>. Name a simple way, and ideally a succinct way, how to then access the content of that file. A: <one>file_handle.read()</one>.
|
325
|
+
- In python: how to <one>strip</one> on a list variable called <two>x</two>? <one>x = map(str.strip, x)</one>
|
326
|
+
- In Python: was bedeutet <one>das dritte Argument</one> bei der <two>range()</two> Funktion, mit Beispiel? Dies ist <one>die Schrittweite</one>, die bei der Iteration verwendet werden soll. Beispiel hierzu: <two>for i in range (3, 11, 2): print(i)</two> gibt uns <one>3, 5, 7, 9</one> aus.
|
327
|
+
- In Python: gegeben sei <one>class Vektor</one>. Wenn wir zwei Vektoren miteinander addieren möchten, können wir das wie tun? <one>def __add__(self, other):</one>
|
328
|
+
- In Python gibt es die Methode <one>.format()</one>, die zum Formatieren der Ausgabe dient. Sie wird auf einen String angewendet. Dieser String enthält Elemente wie <three>{0}</three> oder <three>{1}</three>. <two>Wie nennen wir diese Elemente</two>? <one>Indexcodes</one>.
|
329
|
+
- In Python: was macht die Funktion <one>.all()</one>? Mit der Funktion <one>.all()</one> wird überprüft, ob alle Elemente einer Liste zu <two>True</two> evaluieren.
|
330
|
+
- Was ist <one>der entscheidende Vorteil der objektorientierten Programmierung</one>? Die <one>Wiederverwendbarkeit von Codekomponenten</one>.
|
331
|
+
- Warum müssen wir, in Python, bei einem Symbol (in sympy) so etwas umständliches wie <one>x = Symbol('x')</one> verwenden? Dies dient dazu, das Python für den weiteren Programmablauf weiss, dass es sich um <one>keine gewöhnliche Variable handelt</one>.
|
332
|
+
- In Python: wie definieren wir eine Klassenmethode, mit Zugriff auf ein Klassenattribut? Zeige dies anhand der Klasse <one>Foobar</one>, mit dem Klassenattribut <one>bla</one>, das den Integer Wert 42 hat; dieser soll ausgegeben werden auf der Kommandzeile, mit der Methode <two>output()</two>. A: <one>class Foobar: bla = 42; def output(): print(Foobar.bla); Foobar.output()</one>
|
333
|
+
- In Python: nenne einen Vorteil, wenn wir die Implementierung eines Programmes <one>verstecken</one> können. A: Wir können sie zu einem späteren Zeitpunkt austauschen, zum Beispiel durch einen <one>besseren Algorithmus</one>.
|
334
|
+
- In Python: was ist <one>die Komplementärfunktion</one> zu <two>.split()</two>? <one>.join()</one>
|
335
|
+
- In Python: was sollten wir bei der <one>Typkonvertierung</one> beachten? Es kann hierbei Information verlorengehen. Beispiel: <one>int(3.3) # => 3</one>
|
336
|
+
- In Python: wie löschen wir ein Element auf alle Fälle aus einem <one>Set</one>, genannt <two>menge</two>? <one>menge.discard(element_here)</one>
|
337
|
+
- In <one>python3</one>: how to load a single file stored in a variable called <two>this_file</two>? <one>exec(open(this_file).read())</one>
|
338
|
+
- In Python: beim <one>SymPy Modul</one>, wie deklarieren wir eine <two>symbolische Variable</two>? <one>x = Symbol('x')</one>
|
339
|
+
- In Python: was meinen wir mit <one>zusammengesetzten Typen</one>? Dies sind Typen, die aus anderen (einfachen oder zusammengesetzten) Typen aufgebaut sind.
|
340
|
+
- In Python: nenne eine andere Bezeichnung für die <one>Identität</one> einer Variablen. A: <one>Speicherplatzadresse</one>.
|
341
|
+
- In Python: wie erzeugen wir eine <one>Zufallszahl</one> von 1-10? <one>from random import randint; randint(1, 10)</one>
|
342
|
+
- In Python: wie nennen wir <one>eine Funktion, die nichts zurückgibt</one>? <one>Prozedur</one>.
|
343
|
+
- In Python: warum gibt es sowohl <one>float</one> als auch <one>Decimal</one>? Da <one>float</one> eigentlich recht <two>ungenau</two> ist; insbesondere ist float in Python nicht geeignet für das <one>Rechnen mit Geldbeträgen</one>. Daher gibt es einen genaueren Datentyp für Dezimalzahlen, genannt <three>Decimal</three>.
|
344
|
+
- In Python: deutscher Begriff für einen <one>identifier</one>? Ein <one>Bezeichner</one>.
|
345
|
+
- In Python: was meinen wir mit dem <one>Mengendatentyp</one>? Dies bezeichnet <one>ein set</one>. URL: https://www.w3schools.com/python/python_sets.asp
|
346
|
+
- Geben <one>Prozeduren in Python</one> etwas zurück? An sich ja - und zwar <one>return None</one>.
|
347
|
+
- In Python: wie schreiben wir in die Datei <one>foobar.txt</one> (ohne context manager)? <one>file = open('foobar.txt', 'w')</one> und dann zum Beispiel <one>file.write()</one>
|
348
|
+
- In Python: wie können wir den <one>(ASCII) Zahlencode</one> zu Zeichen ermitteln, zum Beispiel des Buchstaben <two>b</two>? Mit Hilfe von <one>ord('b')</one>.
|
349
|
+
- In Python, beim <three>sympy Modul</three>. Wir definieren zuerst <one>x = Symbol('x')</one>. Nun wollen wir folgende mathematische Gleichung definieren: <two>x ^2 + 1 = 0</two>. Wie sieht der korrespondierende Python-Code hierzu aus? <one>solve(x**2 + 1, x)</one>
|
350
|
+
- In Python: give a specific example how to raise an (already defined and thus existing) exception. A: <one>raise NameError('HiThere')</one> or <one>raise ValueError('This value is wrong.')</one>
|
351
|
+
- Wozu verwenden wir <one>.isspace()</one> in Python? Um herauszufinden ob eine Zeichenkette (also ein String) <royalblue>nur</royalblue> aus <one>whitespace Zeichen</one> besteht; dazu zählt auch " ". Beispiel: <two>" \n".isspace() # => True</two>
|
352
|
+
- Nenne <one>zwei Möglichkeiten</one> wie wir in Python Strings miteinander vergleichen. A: (1) <one>==</one> (2) <one>!=</one>
|
353
|
+
- In Python: wie prüfen wir ob zumindest ein Wert in einer Liste, zu <one>True</one> evaluiert? Mit Hilfe der Funktion <one>any()</one>.
|
354
|
+
- In Python: wie erhalten wir den <one>basename</one> einer Datei? <one>os.path.basename(i)</one>
|
355
|
+
- In Python: say that we have <one>an array</one>, such as <two>a = [1,2,3,1,2,3,2,2,4,5,1]</two>. How can we <three>find the most common element</three>? Via: <one>from collections import Counter; counter = Counter(a); print(counter.most_common(3))</one>
|
356
|
+
- In Python: was macht die Funktion <one>.reduce()</one>? <royalblue>.reduce()</royalblue> verkettet alle Elemente der Liste und reduziert sie <one>anhand der übergebenen Operation</one> zu einem einzigen Wert. Beispiel: <two>from functools import reduce; def do_sum(x1, x2): return x1 + x2; reduce(do_sum, [1, 2, 3, 4]) # => 10</two>
|
357
|
+
- Was ist der Sinn eines <one>Context Managers</one> in python? <one>Context Manager</one> sind spezielle Codeblöcke, die dafür sorgen, dass eine Datei <one>auf jeden Fall geschlossen wird</one>, sobald die Ausführung diesen Codeblock beendet ist.
|
358
|
+
- In Python: was bewirkt die Funktion <one>.zip()</one>? <royalblue>.zip()</royalblue> <one>fügt zwei Listen zusammen</one>. Beispiel: <three>a = [1, 2, 3]; b = ['a', 'b']; c = zip(a, b); list(c) # => [(1, 'a'), (2, 'b')]</three>
|
359
|
+
- In Python: wozu verwendet man die Funktion <one>.cycle()</one> aus dem Modul <two>itertools</two>? <one>.cycle()</one> durchläuft die übergebene Datenstruktur. Wenn das letzte Element über <one>.cycle()</one> zurückgegeben worden ist, beginnt <one>.cycle()</one> mit seiner Arbeit wieder von vorne.
|
360
|
+
- In Python: wie deklarieren wir <one>symbolische Variablen</one>, über <two>sympy</two>? <one>x = Symbol('x')</one>
|
361
|
+
- In Python: was ist <one>(3,)</one>? Dies ist <one>ein Tupel</one>. <two>x = (3,); len(x) # => 1</two> []
|
362
|
+
- Is the python <one>byte code</one> <two>platform-independent</two>? <one>Yes</one>. It is a <two>platform-independent representation of the given source code</two>. []
|
363
|
+
- In Python: sind <one>Klassen</one> <two>Datentypen</two>? <one>Ja</one>. []
|
364
|
+
- In Python: ist der <one>Bezeichner</one> (für eine Variable) <two>3personen</two> in python <three>gültig</three>? <one>Nein</one>. []
|
365
|
+
- In Python: what is the output of <one>print(str[2:]) if str = 'Hello World!'</one>? This instruction will print characters starting from, <one>and including</one>, the 3rd character. The output would thus be: <two>llo World!</two> []
|
366
|
+
- <one>Wo oder wie</one> speichert python <two>commandline arguments</two>? In: <one>sys.argv</one> []
|
367
|
+
- In Python: are <one>sets</one> <two>unordered</two>? <one>Yes</one>. This also means that <two>we can not rely on the order of the elements in a set</two>. []
|
368
|
+
- In Python: wie werden <one>Gleitkommazahlen</one> genannt? <one>Floats</one>. []
|
369
|
+
- Was ergibt folgender Code, in Python: <one>x = [1, 2, 3]; sum(x, 6)</one> A: <one>12</one>. []
|
370
|
+
- In Python: kann man die <one>for-Schleife</one> <two>auf Strings anwenden</two>? <one>Ja</one>. []
|
371
|
+
- In Python: wie tauschen wir im string <one>x = 'foobar'</one> alle <two>'o'</two> gegen <two>'a'</two> aus? <one>x = 'foobar'; x = x.replace('o','a')</one> []
|
372
|
+
- In Python: was meinen wir mit folgendem code: <one>'{0:o}'.format(34)</one>? Dies meint eine Formatierung zur <one>Basis 8</one>.
|