欢迎来到计算机考试题库网 计算机题库官网
logo
全部科目 > 计算机考试试题及答案解析

单项选择题

YouworkasanapplicationdeveloperatCertkiller.com.YouaredevelopinganapplicationthatmakesuseofaQueueclassobjectnamedMyQueue.ThisQueueclassobjectwillbeusedtostoremessagessentbytheuserduringapplicationruntime.Youwouldliketoaccessthemessageatthebeginningofthequeue,priortoprocessingtheusermessages,withoutremovingit.Whatshouldyoudo?()
A.UsetheEnqueuemethodoftheMyQueueobject.
B.UsetheContainsmethodoftheMyQueueobject.
C.UsetheDequeuemethodoftheMyQueueobject.
D.UsethePeekmethodoftheMyQueueobject.

    A.com.YouaredevelopinganapplicationthatmakesuseofaQueueclassobjectnamedMyQueue.ThisQueueclassobjectwillbeusedtostoremessagessentbytheuserduringapplicationruntime.Youwouldliketoaccessthemessageatthebeginningofthequeue,priortoprocessingtheusermessages,withoutremovingit.Whatshouldyoudo?()
    A.UsetheEnqueuemethodoftheMyQueueobject.
    B.UsetheContainsmethodoftheMyQueueobject.
    C.UsetheDequeuemethodoftheMyQueueobject.
    D.UsethePeekmethodoftheMyQueueobject.
点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题