引導式測驗 · 中等 等級

AI 測試產生測驗

評估測試預言機限制、特徵測試、符號和 ​​LLM 測試生成、模糊測試和覆蓋率指導。檢查實際限制。

相關引導路徑AI測試生成
問題 1 的 8

AI 測試生成中的「預言機問題」是什麼?

預覽每個問題8 問題

當您參加測驗時,就會出現答案和解釋。

  1. AI 測試生成中的「預言機問題」是什麼?
    • 了解給定輸入的正確預期輸出
    • 產生足夠的隨機輸入來運行程序
    • 將測試運行器連接到資料庫
    • 選擇要測試的程式語言
  2. “特徵測試”鎖定什麼?
    • 最快的運行時間
    • 代碼的當前行為作為回歸基線
    • 原作者的編碼風格
    • 正確性的正式數學證明
  3. What programming language did the TestPilot study implement and evaluate its LLM test-generation approach for?
    • 鐵鏽
    • Fortran
    • JavaScript
    • SQL only
  4. 在未經審查的情況下接受人工智慧產生的測試的一個主要風險是它們可能:
    • 運行太慢而無用
    • 自動刪除原始碼
    • 只在週末工作
    • 斷言並凍結現有錯誤,就好像它們是正確的一樣
  5. 像 Copilot 這樣的 LLM 測試助理通常如何進行測試?
    • 透過從函數和周圍上下文預測測試程式碼
    • 透過形式化證明代碼是正確的
    • 透過測量CPU溫度
    • 透過錄製開發者的螢幕
  6. 覆蓋引導的模糊測試使用以下方式引導隨機輸入:
    • 用戶星級評價
    • 用於測量哪些分支受到攻擊的程式碼偵測
    • 月相
    • 僅檔案名稱
  7. What did the TestPilot evaluation report as its median statement and branch coverage?
    • 100% statement and branch coverage on every package
    • 0% statement coverage and 52.8% branch coverage
    • 70.2% statement coverage and 52.8% branch coverage across its studied packages
    • The paper did not measure code coverage
  8. What does mutation testing assess about a test suite?
    • Whether every test uses the same name
    • Whether a characterization test preserves all current behavior
    • Whether the fuzzer can reach a branch without running tests
    • Whether tests detect small, deliberate changes made to the program