5 Pages

ST2 Key

Course: BIO 101, Fall 2010
School: UNC
Rating:
 
 
 
 
 

Word Count: 2280

Document Preview

101 Biology Test II- DeSaix February 25, 2010 Name_____________________________ Print your name, last name first, and your PID number legibly on your answer sheet. Each answer is worth 2 points. Always choose one best answer and use only number 2 pencils to fill in your answers. Be sure to sign the pledge on your answer sheet. The last question will be used only if another question has to be deleted. Turn in...

Register Now

Unformatted Document Excerpt

Coursehero >> North Carolina >> UNC >> BIO 101

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
101 Biology Test II- DeSaix February 25, 2010 Name_____________________________ Print your name, last name first, and your PID number legibly on your answer sheet. Each answer is worth 2 points. Always choose one best answer and use only number 2 pencils to fill in your answers. Be sure to sign the pledge on your answer sheet. The last question will be used only if another question has to be deleted. Turn in your answer sheet in alphabetical order at the front of the room. Write down your answers on this copy to check against the key so that you will know what you have missed. The key will be posted on the blackboard website. _D__1. Which of the following terms refers to the situation where a single phenotypic characteristic is determined by the additive effects of genes at two or more loci? A. incomplete dominance, B. codominance, C. pleiotropy, D. polygenic inheritance, E. blending inheritance. _D__2. Genes located close together on the same chromosomes are referred to as ___ and generally ___. A. associated...sort independently during meiosis, B. linked...sort independently during meiosis, C. homologous...are inherited together, D. linked...do not sort independently during meiosis, E. codependent...do not sort independently during meiosis. _C__3. The work of Griffith indicated that: A. harmful strains of bacteria can mutate to become harmless B. bacteria mutate more frequently than most prokaryotes. C. harmless bacteria may be transformed in the presence of killed harmful bacteria. D. bacteria inject their nucleic acids into viruses causing transformation. E. bacteria can be labeled using P32. _C__4. Hershey and Chase worked with: A. virulent and non-virulent bacteria; B. Bacteria that infect viruses; C. virus protein coat and nucleic acid core; D. jumping genes; E. X-ray diffraction images of DNA. FREE_A__5. Which of the following could not be used in the production of different enzymes: A. a particular messenger RNA; B. a particular transfer RNA; C. a particular ribosomal RNA; D. a particular amino acid; E. a particular nucleotide. Because this did not say"eukaryotes" it is not a good question and everyone got credit for it. _D__6. What evidence shows that genes specify amino acid sequences in proteins? A. DNA is transcribed into a mRNA molecule. B. tRNA molecules have an amino acid attached to one end. C. Ribosomes contain RNA. D. A change in the base sequence of a gene changes the amino acid sequence of a protein. E. None of the above. _D__7. Protein Synthesis occurs: A. only in the nucleus, B. only in cells making enzymes, C. only in the digestive system, D. in the cytoplasm of most (probably all) cells, E. only in eukaryotes. _C__8. Homologous chromosomes separate from one another during ___ of meiosis: A) Prophase I B) Prophase II C) Anaphase I D) Anaphase II E) Telophase II. _A__9. Nondisjunction involving the sex chromosomes may occur during Meiosis I of spermatogenesis and produce two kinds of sperm. If these sperm fertilize normal eggs, which of the following pairs of genotypes are possible? A) XXY and XO B) XX and XY C) XYY and XO D) XYY and YO E) None of these. _A__10. Genes which have the same phenotypic effect in both the heterozygous and homozygous states are said to be: A) Dominant B) Phenotypic C) Recessive D) Assorting independently E) linked. __D_11. Which of the following processes adds new alleles to the gene pool? A) Crossing over between genes B) meiosis C) fertilization D) Mutations E) Selection. _D_12. Slight differences in monozygotic (identical) twins supports the hypothesis that: A) Dominance may be Incomplete B) Genetic traits are influence by many genes C) Single genes may produce multiple effects D) The environment affects the expression of genetic characteristics E) They developed from separate fertilized eggs. _B__13. Sickle cell anemia is: A) Observed only in heterozygotes B) Due to a single amino acid change in Hemoglobin C) The result of blood loss D) Due to a lack of oxygen. __C_14. A tall pea plant (TT) and a tall pea plant (Tt) have the same: A) Alleles B) Genotype C) Phenotype D) karyotype E) None of these. 2 _D__15. Visible traits (e.g. eye color) are controlled by genes: A) Only in response to environmental stimuli; B) Only as a result of mutation C) During gamete formation D) Through a series of enzymes. __C_16. The type of RNA which carries coded information from the nucleus to the ribosomes, but does not itself combine with amino acids is called: A) Ribosomal RNA B) Transfer RNA C) Messenger RNA D) Nucleolar RNA. _C__17. The anticondons of the tRNA molecules pair DIRECTLY with: A) Codons found in DNA B) Amino acids, moving them to the ribosomes C) mRNA codons D) RNA polymerase, so that mRNA may be transcribed from the DNA E) Ribosomal RNA in the larger subunit. _A__18. Protein synthesis is directed by the genetic code. Protein synthesis, in turn: A) Produces enzymes which determine development sequence B) Prevents malnutrition C) Directs the production of mRNA D) produces ATP _B__19. A genetic defect in humans results in the absence of sweat glands in the skin. Some men have this defect all over their bodies, but in women it is usually expressed in a peculiar way. A woman with the effect typically has small patches of skin with sweat glands and other patches where sweat glands are lacking. This pattern suggests the phenotypic effect of: A) A mutation B) Chromosome inactivation C) RNA splicing D) an operon E) The homeobox. _C__20. The rare trait ocular albinism (almost complete absence of eye pigment) is inherited as a sex-linked recessive. A man with ocular albinism marries a woman is a carrier. Which of the following is the best prediction concerning their offspring? A) All their sons will have ocular albinism, and all their daughters will be carriers; B) all their children of both sexes will have ocular albinism; C) About 50 percent of their sons and daughters will have ocular albinism D) About 50 percent of their daughters will have ocular albinism, but all their sons will have normal eyes; E) None of their children will have ocular albinism, but all their daughters will be carriers. _A__21. A man and a woman, both with freckles, had four children one of whom had no freckles. What assumption would you make of these circumstances? A) Freckles are caused by a dominant gene; B) The parents are homozygous dominant individuals for this trait; C) The appearance of the child without freckles is due to a mutation; D) Freckles is not a genetically based trait. For questions 22 28 determine whether the following statement refers to the completion of (A) mitosis, (B) meiosis, (C) both, or (D) neither. __A_22. production of haploid cells from haploid cells _B__23. produces genetically cells variable _A__24. allows multicellular organisms to grow _A__25. ensures that each body cell gets a complete set of genes __C_26. can produce haploid cells _B__27. produces haploid cells from diploid cells _C__28. occurs in the human body __C_ 29. Blood cells and muscle cells make different enzymes because: A) blood cells contain only genes for blood cell proteins and muscle cells contain only muscle protein genes B) all cells of an organism have all genes C) not every gene acts in every type of cell D) blood cells have hemoglobin while muscle cells have microtubules E) adult red blood cells lack nuclei in mammals. _A__ 30. In a Punnett square, the letters within the little boxes represent: A) offspring genotypes B) parental genotypes C) gametes D) offspring phenotypes E) parental phenotypes. _D__ 31. Which of the following statements about the eukaryotic chromosome is false? A) It is composed of DNA and protein. B) It is a linear structure. C) It replicates during interphase of mitosis. D) the number of genes on a particular chromosome vary from cell to cell. E) Active transcription occurs here. Deleted_B__ 32. Which point mutation would be most likely to have a catastrophic effect on the functioning of a protein? A) a base substitution. B) a base deletion near the start of a gene (but not in the start codon) C) a base deletion near the end of the coding sequence, (but not in the stop codon) D) deletion of 3 bases near the start of the coding sequence (but not in the start codon) E) A base insertion near the end of the coding sequence, (but not in the stop codon). Because there was confusion about what a point mutation is, this question was not graded and question number 51 was used instead. _A__ 33. Genes at one locus that affect the expression of genes at a different locus are said to be: A) epistatic B) linked C) codominant D) penetrant E) alleles. 4 _A__ 34. A carrier of a genetic disorder who does not show symptoms is most likely to be: A) heterozygous for the trait and able to transmit it to offspring B) heterozygous for the trait but unable to transmit it to offspring C) heterozygous for the trait and able to transmit it to male offspring only D) homozygous for the trait and certain to transmit it to offspring E) homozygous for the trait and not certain to transmit it to offspring. __D_ 35. As proteins are being synthesized, tRNA molecules are constantly being released from the site of amino acid incorporation. What happens to these tRNA molecules? A) They return to the nucleus and bind to DNA again. B) They are used to code for synthesis of a protein. C) They immediately bind to another mRNA. D) They pick up another amino acid of the same type that they had before. E) They pick up an amino acid of another type, specifically the amino acid coded for by the codon next to the one to which they originally bound. _C__36. A dominant gene, R causes rust color in nods. Another independent dominant gene G produces grey nods. When the two dominant alleles occur together in the same individual, the fur is brown. Nods that are fully recessive at each of these two loci (rrgg) are white. When a brown female nod is mated to a grey male nod, the offspring occur in approximately the following ratio: 3/8 brown, 3/8 grey, 1/8 white and 1/8 rust. What are the genotypes of the two parents? A) RRGg and RrGg, B) RRGG and rrGG, C) RrGg and rrGg, D) RrGG and RrGG. _C__37. Which of the following genetic disorders can be detected by looking at an individual s chromosomes? A) sickle cell anemia B) phenylketonuria C) Down's syndrome D) hemophilia. __C_ 38.What is meant by "polar body twins" in humans? A) Two individuals that come from two polar bodies fertilized by the same sperm. B) Two individuals that come from one polar body and one egg fertilized by the same sperm. C) Two individuals that come from one polar body and one egg fertilized by different sperm. D) Twins that are formed from cells that split into two with one set of cells going toward one pole of the developing embryo and the other at the opposite end. E) Twins born during polar expeditions. __D_ 39. Which of the following crosses would serve as a testcross for BOTH characteristics A and B? A) AaBb x AaBb B) AaBb x aaBB C) AABB x Aabb D) AaBb x aabb E. AABB x Aabb. _E__ 40. Which of the following does not involve complimentary base pairing? A) DNA replication B) tRNA/mRNA match up C) transcription D) translation E) nucleotide assembly (making nucleotides). _A__41. A biologist examined mitotically dividing cells and found that the amount of DNA per cell in prophase was equal to x. What would be the DNA per cell in anaphase? A) x B) 2x C) x/2 D) x/4 E) 4x. __C_42. What does meiosis do? A) fuses an egg cell with a sperm cell B) allows a haploid cells to yield diploid cells C) allows diploid cells to yield haploid cells D) reproduces a diploid set of chromosomes E) none of the above. __E_43. The basic structure of chromatin has sometimes been referred to as beads on a string of DNA. These beads are called: a) chromosomes. B) chromatids. C) supercoils. D) interphases. E) nucleosomes. __D_44. In plant cells, cytokinesis is accomplished by the formation of a(n): a) aster. B) membrane furrow. C) equatorial plate. D) cell plate. E) spindle. __B_45. Zygotes are: a) multicellular. B) diploid. C) animals. D) clones. E) gametes. __C_46. Nucleic acids are made of (choose the best answer): A) Amino acids B) Adenine and uracil C) Nucleotides D) Phosphate groups E) Proteins __B_47. During meiosis I in humans, one of the daughter cells receives: a) only maternal chromosomes. B) a mixture of maternal and paternal chromosomes. C) the same number of chromosomes as a diploid cell. d) a sister chromatid from each chromosome. E) one-fourth the amount of DNA in the parent nucleus. __C_48. A deoxyribose nucleotide is a: a) deoxyribose plus a nitrogenous base. B) sugar and a phosphate. C) deoxyribose plus a nitrogenous base and a phosphate. D) ribose plus a nitrogenous base. E) nitrogenous base bonded to an amino acid backbone backbone. _D__49. A man and woman are both of normal pigmentation, but both have one parent who is albino (without melanin pigmentation). Albinism is an autosomal (not sex-linked) recessive trait. What is the probability that their first child will be an albino? A) 100% 0% B) 1/8 C) D) E) _B__50. How many unique gametes could be produced through by an individual with the genotype AABbCCDd? A) 32 B) 4 C) 16 D) 8 E) 1/64. _B__51. An allele is: A) A chromosome pair. B) one of two or more genes for a particular character located at the same place on homologous chromosome. C) the genetic make-up of an organism. D) the point of attachment of spindle fibers.
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

UNC - BIO - 101
Biology 101 DeSaix1 April 2010Name _Print your name, last name first, and your PID number legibly on your answer sheet. Bubble in both below. Each answer is worth 2 points. Always choose one best answer and use only number 2 pencils to fill in your ans
UNC - BIO - 101
Lecture 1: -Scientific Process -Interdependencies o Producers, consumers, decomposers Lecture 2: -Levels of Organization o Ecosystem, community, population, organism, organ system, organ, tissue, cellular level, chemical level -Domains o Archaea, bacteria
UNC - GEOG - 370
GEOGRAPHY 370 Fall 2011 Section 007Introduction to Geographic InformationPhil PageFinal Exam Study GuideNOTES FOR USING THIS STUDY GUIDE This list is not intended to be an exhaustive re-hashing of the lectures (thats why you haveyour lecture notes a
UNC - ENST - 266
Africa Final Exam1. Identify the major political and environmental regions of modern Africa2. Describe the impact of uncertainty on daily life in a variety of African locales3. Compare and contrast African views of development with Western understandin
UNC - ENST - 266
Exam 2Unit 2: Development and UncertaintyThis section introduces the history of development interventions in Africa and how they feed into day to day uncertaintiesamong people living at the 'globalization's shoreline'. We will use the case study presen
UNC - RELI - 207
Reli 207: Jesus in Myth, Tradition, and History1. Choose any two of the Gospels of the New Testament and compare and contrasttheir portrayals of Jesus. Matthew vs. Johna. Thesis: Matthew and John have the same basic story: Jesus preaches andperforms m
UNC - HIST - 140
Module 1/Module 2Timeline of Events March 1938 Germany annexes Austria Partition of Czechoslovakia - September/October 1938 Munich agreement September 1939 Germany invades Poland June 1940 Fall of France May 1941 Germany attacks the Soviet Uniono (
UNC - HIST - 140
Module 3September 28, 2011Key Words Democratic National Convention in Chicago (1968) Paris student riots and night of barricades (1968) Prague spring and Soviet/Warsaw pact invasion in August (1968) Cultural Revolution in China (1968) NATO/Warsaw P
UNC - HIST - 140
Module 4 (Decolonization of the non-western world)October 26thDecolonization in India (1947) One of the first countries to decolonize India is the most populous country of democracyThree influences on Indias path to independence British Colonial Rul
UNC - HIST - 140
Module 5November 14, 2011Ideology of the 20th Century (1919-1989):FascismMarxism/LeninismLiberal Democracy1989/1991 return of economic globalization, pre WWI era (fall of communism and the SovietUnion)Economic Globalization (Homogenizing factor)
UNC - PHIL - 165
CHAPTER 1Morality concerns beliefs regarding morally right and wrong actions and morally good and badpersons or characters (critical reasoning in ethics is called moral reasoning) Normative Dominance moral considerations often override other factors(Ae
UNC - PHIL - 165
CHAPTER 2Moral Theory explains not why one event causes another but why an action is right or wrongor why a person or a persons character is good or bad Consequentialist insists that the rightness of actions depends solely on theirconsequences or resu
UNC - PHIL - 165
2 cases of either prima facie and all things considered. Then a counterexample for each (4 total)1.-Prima facie: at the face value.2.-Principle: Always telling the truth. Telling the truth is bad though when it might unnecessary pain in someones lif
UNC - PHIL - 165
1.Bioethics is a field of ethics, the field concerned with ethical behavior in the realm of health-related practices. One wayof learning about whats ethical is to learn relevant non-ethical facts. For instance, if you want to know whether its morally ri
UNC - PHIL - 165
Some consequentialist theories suggest that consequences are all that matter. Explain this idea.Consequentialist theory: the rightness of actions depends solely on their consequences or results .(Vaughn, 32) Something is deemed morally right if theconse
UNC - AFAM - 102
MIDTERM EXAMAFRO-AMERICAN STUDIES 102: THE BLACK EXPERIENCE (II)Dr. Perry A. HallPART ONE: IDENTIFICATION: 3 POINTS EACH. Identify each term in one sentence or less1. Indentured servant5. Thomas Moss8. (Three) "push factors" re:urban migrationth2
UNC - AFAM - 102
Indentured Servants- people who were contracted to a landowner to do labor and after theircontracts were up they were free from the contract. Did not pay money though.13th Amendment- The amendment that officially abolished slavery.Andrew Johnson- Appoi
UNC - PHIL - 134
Phil 134/Reli 126 Final Exam Outline1. What is the disagreement between Clifford and James? Explain each of theirviews, and the nature of their disagreement. Whose view comes closer to thetruth? Explain and defend your view.Issue: beliefs and evidence
UNC - ANTH - 101
Anthropology 101Crash course in evolution1. Geologic deep time and uniformitarianism-Sir Charles Lyell Countered cuviers theory of catastrophism Proposed instead that gradual processes that occur today acted in a similarway in the past Such change i
UNC - COMM - 140
Comm 140 notes 9/7: The Business of MediaHow can a statue be a media event?- Why was it put there in the first place?Ex: remediate history; silent sam remediates uncs history w/ civil war- meaning continues to change over time; meaning is social; mean
UNC - COMM - 140
Comm140notes:15:071) MediahaspowertoshapeandservepublicinterestEx:transmissionmodel:haveopiniontosharew/public2) questionnotionofpublicinterest;dontjustassumeanyoneknowswhatpublic interestis3) assumediversity(inanyform)isgood2formsmediadiversitya.
UNC - COMM - 063
Holy Theatre notes- bringing things to performance beyond words- usually see what we expect, but nothing goes beyond our dimension of whats in frontof us- showing, not telling- letting people feel the experience themselves- ritual: takes something i
UNC - COMM - 063
Howl NotesPg. 13burning cigarette holes in arms = protest tobacco companiesKerouac had communist tendencies = Supercommunist pamphletsBill Cannastra = against communists; died after fell off a subwayPederasty = man having sexual relationship w/ young
UNC - RELI - 104
Reli104NewTestamentnotes1/9/11:Intro/PopQuiz18:001.#booksinNT?342.LanguageNTwasfirstwrittenin?Greek3.(WhenwasNTwritten?)?1stcenturyC.E.4.Whichbooksarethegospels?Matthew,Mark,Luke,John5.Whobaptizedjesus?Whocarried(Jesuson?)thecross?Whodiscoveredt
UNC - JOMC - 137
JOMC 137 1/20/12- Agencies and the Ad Industry1. Written Assignment due February 8tha. Go to effie.org, Winners Showcase on the left sidea.i. Pick a case study of Effie Award winners, choose one youre interested ina.ii. Provide a summary of the case s
UNC - ANTH - 120
Week2:Tourism17:54Dealswithculturalrepresentation,howdopeoplerepresentthemselvestocreate revenue.Issuesofrace,gender,andconsumption.Tourismisdirectlytiedtohistoryandcolonialism.Powerrelationswillalwaysbepresent.TheOriginsofSightseeingJudithAdler(1989
UNC - ANTH - 120
Week3:ScienceandTechnology17:51WATCHGATTACAQuestions:themequestiondirectlyengageinwhatwetalkedaboutinclass?Second questionshouldhavespecificcontentincorporated.Askadifferentquestionthanwhat wasalreadyasked/discussed.Reflectthatyouunderstandthecomplex
UNC - ANTH - 120
Week4:Disability17:54Specificscience:conceptofdisabilityWheredotheseideascomefrom?Howdotheyimpactus?Everyoneofusisbornindisabilityandleavetheworldassuch.Weareconstantlytryingtoprovethatwearenotdisabled.CultureasDisabilityRayMcDermott1995TheCurb:EX
UNC - ANTH - 120
Week5:Race17:57Midterm:lookatpossibleexamquestions,shortanswer.Fivewillbechosenforexam. Answerin250words.Ideaofwhiteness,propertyprivilege.StudentProjectInvisibleWhitenessVanessaPatchettWherewegetourideasofracetoday?Takeswhitenessasacategory.Ever
UNC - ANTH - 120
Week7:SettlerColonialism17:52ExpressiveCultureProjects:comeupwithoneideatopresentinrecitationnextweek forproject.Goalisnotjusttopresentstereotypes,butchallengethem.Thinkabouthow atopicrelatestosomethinggoingoncampus.Conductthreeinterviews.Dueon Octob
UNC - ANTH - 120
Week8:Class17:59Stereotypesserveafunctionintheworld.Howdotheyoperateandwhatdotheydo?EC:PBSPeopleLikeUs:SocialClassinAmerica1999classisjudgedbyclothes,money,race,house,parentage,historyoffamilyclassexistsinAmericansociety.Butwhatdoesthisfilmdoesnotc
UNC - ANTH - 120
Anthropology:ExpressiveCultures17:52Readings:ASmallPlace(needthisfirst),TheImmortalLifeofHenriettaLacks,Pigsin Heaven,DoesMyHeadLookBiginThis?Need,readingstarts,isdueonThursdayDOTHEQUESTIONSEVERYWEEK.PosttwoonSakai.Postwatch:TheRedemptionofChristoph
UNC - ANTH - 120
Week9:CriticalExpressionProjects17:59BynextThursday:HavegroupSignupformeetingwithGRCWhatisresearch?GatherdataCreationofnewknowledgeRevisionsofacceptedtheoriesbasedonnewfactsWhatdoesthislooklikeinanthropology?Longtermresearch:theminimumdissertati
UNC - ANTH - 120
Week10:GenderCodes17:55SignupforGRCandpresentationtimes.Genderisasocialdistinction,definedbyculture,race,etc.(Otherdichotomies:abled/disabled,primitive/modern,fact/experience, whiteness/otherness,self/other)UsedtodistinguishmalefromfemaleBiological
UNC - ANTH - 120
Week11:QueeringGender18:12QueeringMasculinity2009Howpeopleunderstoodtheirownpersonalitiesthatdontfittheneatdichotomiesof maleandfemale.Beconsciousofvolumelevels.UsemassmediaManonthestreetinterviewsQueeringReappropriatedfromantigayepithetChalleng
UNC - ANTH - 120
Week12:Consumption18:58Whatwebuyandhowitrelatesustotheworldaroundus?ECTheStoryofStuffwithAnnieLeonardWearerunningoutoresources,usingtoomuchstuffOnethirdofthenaturalresourcesoftheworldaregone.Arguingforthinkingaboutconsumptionincriticalway,alternativ
Texas A&M - CSCE - 121
ENGR 112 TEST 2March 24, 2008Drs. Daugherity & WardName:_Lab Time:_Section:_Aggie Code of Honor: "An Aggie does not lie, cheat, or steal, or tolerate those whodo."Each question has one best answer. Mark your answers on the Scantron provided. Each
Texas A&M - CSCE - 121
6. Classes Line, Axis, Polygon, etc. derive from class Shapea. so they can share common codeb. so class Window doesn't have to be changed to draw a new shapec. because they all have line style and color data membersd. all of the abovee. none of the a
Texas A&M - CSCE - 121
12. using namespace std;a. tells the compiler to look for std:foo if foo is not definedb. tells the linker to look for foo if std:foo is not definedc. can also be written as using std namespace;d. all of the abovee. none of the above13. An invariant
Texas A&M - CSCE - 121
18. The scope resolution operator isa. :b. :c. ;d. ;e. none of the above19. Another name for free store isa. stackb. heapc. non-recyclable memoryd. read-only memorye. none of the above20. A vector headera. contains slots for all the datab. c
Texas A&M - CSCE - 121
For questions 24-30 answer "a" for "declaration but not definition" and"b" for "declaration and also definition."24.class Bad_area;25.class Bad_areacfw_;26.int x;27.extern int x;28.void f(double);29.void f(double)cfw_;30.struct Point;31. A
Texas A&M - CSCE - 121
36. An input stream takes characters sequentially from a buffer anda. converts them into values of various typesb. writes values to a console, a file, main memory, etc.c. returns an error stated. a and ce. b and c37. Standard stream operators > and
Texas A&M - CSCE - 121
41. Assume the following code:void skip_to_int() cfw_if(cin.fail() cfw_cin.clear();char ch;while (cin > ch) cfw_if (isdigit(ch) cfw_cin.unget();return;The purpose of the while loop in the above code is toa. consume characters in the standard
Texas A&M - CSCE - 121
46. Using the open flags ios:in|ios:out|ios:binary opens a file fora. appending input, truncating output, binary formatb. binary input/outputc. truncation of binary input/outputd. adding binary input/output at the end of the filee. none of the above
Texas A&M - CSCE - 121
52. Which pair of values is the same in a C+ program?a. 0x10 and Ab. 010 and 12c. 0x4 and 04d. 0xAA and 1010e. none of the aboveAcademic Integrity Statement: "On my honor as an Aggie, I have neither given norreceived any unauthorized help on this a
Texas A&M - CSCE - 121
ENGR 112 TEST 2 (answers)1. On a graphical window 800 wide by 600 high the lower right-hand corner is atcoordinates.c. (799, 599)2. The code in Graph.hd. all of the above3. void f(int x); tells usd. f does not return a value4.User-defined typesa
Texas A&M - CSCE - 121
13.An invarianta. is a rule for what constitutes a valid value14.A function activation recordd. is created when a function is called that is not inlined15. Given the codeenum Monthcfw_jan=1,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec;Month f(Month
Texas A&M - CSCE - 121
For questions 24-30 answer "a" for "declaration but not definition" and"b" for "declaration and also definition."24.class Bad_area;"a"25.class Bad_areacfw_;"b"26.int x;"b"27.extern int x;"a"28.void f(double);"a"29.void f(double a)cfw_; "
Texas A&M - CSCE - 121
cin.clear();char ch;while (cin > ch) cfw_if (isdigit(ch) cfw_cin.unget();return;The purpose of the while loop in the above code is toe. point the standard input stream to the first digit in the stream and return42. An important question to rep
Texas A&M - CSCE - 121
50. To convert a double value x to a string in a program usea. string s; ostringstream oss(s); oss < x;OPTIONAL EXTRA CREDIT51. A const variablec. may be initialized, but not assigned to52. Which pair of values is the same in a C+ program?c. 0x4 and
Texas A&M - CSCE - 121
CPSC 121Exam 2 ReviewMultiple Choice1. A while loop may be rewritten as a for loop:a. Alwaysb. Only if there is a variable in the while loop which is incrementedc. Only if there is not a variable in the while loop which is incrementedd. Only if the
Texas A&M - CSCE - 121
CPSC 121Exam 2 Reviewd. Ensure that there is an appropriate number of objects in the classe. (b) and (c) are both true.8. Consider the definition:enum day cfw_ mon, tue, wed, = 5, thur, fri, sat, sun ;What is the value of sun?a. 0b. 1c. 6d. 7e.
Texas A&M - CSCE - 121
CPSC 121Exam 2 Reviewe. This statement causes an error13. The standard library function isgraph(c) returns true if c isa. Any printable character (including space)b. A control characterc. A punctuation characterd. A graphic character (point, line,
Texas A&M - CSCE - 121
CPSC 121Exam 2 Reviewd. declare a new name for an existing variablee. None of the aboveShort answer19. What is wrong with this code fragment?try cfw_/some code goes herecatch() cfw_cerr < Exception!\n;keep_window_open();return 1;catch(const
Texas A&M - CSCE - 121
CPSC 121Exam 2 Reviewcout < oct < 031 < \n;cout < dec < 25 < \n;____23. Explain in detail what cin.unget( ) (or putback) does, since it cant literally put a character back into thekeyboard by popping out the last key pressed.____24. Circle t
Texas A&M - CSCE - 121
CPSC 121Exam 2 Review29. Write a well-designed C+ class named Dog, which has fields for name, weight, and other appropriateitems to create a Dog object. Get and set its fields, and output it with <.__________
Texas A&M - CSCE - 121
CPSC 121Exam 2 Review KeyMultiple Choice1. A while loop may be rewritten as a for loop:a. Alwaysb. Only if there is a variable in the while loop which is incrementedc. Only if there is not a variable in the while loop which is incrementedd. Only if
Texas A&M - CSCE - 121
CPSC 121Exam 2 Review Keyd. Ensure that there is an appropriate number of objects in the classe. (b) and (c) are both true.8. Consider the definition:enum day cfw_ mon, tue, wed = 5, thur, fri, sat, sun ;What is the value of sun?a. 0b. 1c. 6d. 7
Texas A&M - CSCE - 121
CPSC 121Exam 2 Review Keye. This statement causes an error13. The standard library function isgraph(c) returns true if c isa. Any printable character (including space)b. A control characterc. A punctuation characterd. A graphic character (point, li
Texas A&M - CSCE - 121
CPSC 121Exam 2 Review Keyd. declare a new name for an existing variablee. None of the aboveShort answer19. What is wrong with this code fragment?try cfw_/some code goes herecatch() cfw_cerr < Exception!\n;keep_window_open();return 1;catch(co
Texas A&M - CSCE - 121
CPSC 121Exam 2 Review Key23. Explain in detail what cin.unget( ) (or putback) does, since it cant literally put a character back into thekeyboard by popping out the last key pressed.The last character read from cin is placed back into the input buffer