【面向对象】面向对象程序设计测试题8-对象之间one-to-many关系测试题
生活随笔
收集整理的這篇文章主要介紹了
【面向对象】面向对象程序设计测试题8-对象之间one-to-many关系测试题
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
Test8:對(duì)象之間one-to-many關(guān)系測(cè)試題
問題 1
A collection typically models a _____ relationship.
A. many-to-many
B. zero-to-one
C. one-to-many
D. one-to-one
答案:
C
問題 2
Consider the following method call, where c is an instance of the class java.util.ArrayList.
This method call returns the number of
A. times that the method c.add has been called
B. elements in the ArrayList represented by c
C. ArrayList objects that have been instantiated
D. bytes used by c
答案:
B
問題 3
請(qǐng)看下圖:
總結(jié)
以上是生活随笔為你收集整理的【面向对象】面向对象程序设计测试题8-对象之间one-to-many关系测试题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【Java】浅谈JavaDoc文档注释
- 下一篇: 【Python】Matplotlib使用