0
0
Testing Fundamentalstesting~20 mins

Testing in the software development lifecycle in Testing Fundamentals - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
SDLC Testing Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
When is integration testing typically performed in the software development lifecycle?

Choose the phase in the software development lifecycle when integration testing is usually done.

AAfter unit testing and before system testing
BBefore unit testing
CAfter system testing and before acceptance testing
DOnly after the software is deployed to production
Attempts:
2 left
💡 Hint

Integration testing checks how different parts work together, so it happens after individual parts are tested.

Predict Output
intermediate
1:30remaining
What is the output of this test execution report summary?

Given the following test execution summary, what is the total number of failed tests?

Testing Fundamentals
Test Suite: User Login Tests
Tests run: 10
Tests passed: 8
Tests failed: 2
Tests skipped: 0
A2
B0
C10
D8
Attempts:
2 left
💡 Hint

Look for the line that says 'Tests failed'.

assertion
advanced
2:00remaining
Which assertion correctly verifies that a function returns a non-empty list?

Choose the assertion statement that correctly checks if the function get_items() returns a list with at least one item.

Testing Fundamentals
def get_items():
    return ['apple', 'banana']
Aassert get_items() == ''
Bassert get_items() == []
Cassert get_items() is None
Dassert len(get_items()) > 0
Attempts:
2 left
💡 Hint

Think about how to check the size of a list.

🔧 Debug
advanced
2:00remaining
Identify the error in this test case code snippet

What error will this test code raise when executed?

Testing Fundamentals
def test_divide():
    result = divide(10, 0)
    assert result == 0
AAssertionError because result is not 0
BNameError because 'divide' function is not defined
CZeroDivisionError because of division by zero
DNo error, test passes
Attempts:
2 left
💡 Hint

Check if the function used is defined anywhere.

framework
expert
2:30remaining
In a CI/CD pipeline, which testing stage should run immediately after code commit to catch errors early?

Choose the testing stage that is best suited to run right after a developer commits code to the repository in a Continuous Integration/Continuous Deployment (CI/CD) pipeline.

ASystem testing
BUser acceptance testing
CUnit testing
DPerformance testing
Attempts:
2 left
💡 Hint

Think about fast, automated tests that check small pieces of code.