Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a. bool duplicate (p1p2) : b. bool duplicate (pl operator p2) : C, bool duplicate-p1 (p2); d. bool duplicate pi.operator (p2) : 34. Given the

image text in transcribed
image text in transcribed
a. bool duplicate (p1p2) : b. bool duplicate (pl operator p2) : C, bool duplicate-p1 (p2); d. bool duplicate pi.operator (p2) : 34. Given the following enumeration: enum class Terms ( net 30_days, net 60 days, net 90_ days Which statement would you use to assign the value of the net 30 days enumerator to a variable nam terms? a. Terms terms Terms: :net_30_days b, Taras terns Taras . net-30-days: c. Torms terms - Terms (net 30 days) r 35. How would you modify the following enumeration to change the underlying enumerator type to char? enun class Suit f dianonds d hearts'h clubs- ,c.. spades ' a onun class : char Suit t c enus elass Suit char diamonds'd heartsh hearts = " h , spades 's b. enus class Suit clubs-,c' , spades d. enue olass suit char t char diamonds'd char hearts'h', char elubs '' char apades s diamondsd hearts clubs 'e spades ' l a 36. Why is the iterator that's returned by the endO member function typically called the off-the-end iterator? a Because it points to the last memory location in RAM b. Because it points to a memory location that isn't accessible by program code c. Because it points one memory location past the last element in the container d. Because it points one memory location past the memory used by the program 37. A queue container provides a. last-in, first-out access b. last-in, last out access first-in, last-out access first-in, first-out access c. d. wages 1.merge (wages 2): ages 1.remove (18.5) vages 1.pop_frontO a. 12.5, 14.5, 18.5, 21.5, 24.5 b. 12.5, 14.5, 15.5, 21.5, 24.5 c. 10.5, 12.5, 12.5, 14.5, 14.5, 15.5, 21.5,24.5 d. 10.5, 12.5, 14.5, 15.5, 21.5, 24.5 43. What are the values of the elements in the stack named products after the executed? following code is stack years2016, 1985, 2001 : yoars.insert(1992) years.insert (2001) auto iter years. find (1985); if (iter t years.end O) years.erase (iter) a. 2016, 2001, 2001, 1992 b. 2016, 2001, 1992 c. d. 1992, 2001, 2001, 2016 1992, 2001, 2016 45. Why is static cast-sint (19.23) preferred over (int) 19.237 a. (int) 19.23 leads to data loss due to demoting a double to an integer. b. (int) 19.23 forces the compiler to choose from several types of casts. c. static _cst

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions