Quiz 3 CMSC 330 100% CORRECT.pdf

Quiz 3 CMSC 330 100% CORRECT.pdf - Quiz 3 CMSC 330 Question...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Quiz 3 CMSC 330 Question 1 (5 points) In the representation of floating point data types, which part of the representation controls the precision? Question 1 options: Correct: The mantissa The sign bit The exponent Both the mantissa and exponent Question 2 (5 points) Which of the following is not a scalar data type? Question 2 options: Correct: Record Types Integer types Enumerated types Boolean types Question 3 (5 points) In which of the following languages, can subscripting not be used to select a single character with in a string? Question 3 options:
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
C C++ Ada Correct: Java Question 4 (5 points) Which of the following types is intended to be used for nonnumeric data? Question 4 options: Integer types Floating point types Correct: Enumerated types Decimal types Question 5 (5 points) When a two-dimensional array is stored in row major order, which of the following values is needed to compute the location of an array element? Question 5 options:
Image of page 2
Correct: The number of columns Question 6 (5 points) What is the difference between a discriminated and free union? Question 6 options: Correct: A discriminated union has a tag or discriminant field Question 7 (5 points) Half the total number of elements in the array The number of rows The number of columns The total number of elements in the array A discriminated union has a tag or discriminant field
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern