Practice Tests For IT & Nursing
Question # 51

What is the output?

x ← 0

FOR i FROM 1 TO 5

IF i MOD 2 = 1

x ← x + i

END IF

END FOR

OUTPUT x

Options:

A.

5

B.

9

C.

15

D.

25

Question # 52

Which statement BEST reflects a decomposition step in designing a weather-forecasting app?

Options:

A.

Writing pseudocode for bubble sort.

B.

Breaking the app into modules: data collection, prediction, and user display.

C.

Choosing colors for the interface.

D.

Testing the app on one city only.

Question # 53

Which is the BEST example of a constraint in a streaming service app?

Options:

A.

Each user account can stream on a maximum of two devices simultaneously.

B.

The logo should be red and white.

C.

The app should be written in Python.

D.

The app must be fun to use.

Question # 54

What is the output of the following with 1-based indexing?

L ← [3, 1, 4, 1, 5]

sum ← 0

FOR i FROM 2 TO 4

sum ← sum + L[i]

END FOR

OUTPUT sum

Options:

A.

8

B.

6

C.

10

D.

12

Question # 55

Which search algorithm guarantees finding the smallest index of a target value in a sorted list?

Options:

A.

Linear search from the end of the list

B.

Linear search from the beginning of the list

C.

Binary search

D.

Random search

Viewing question 11 out of 14 questions


Go to CSP Exam Main Page

Don't just take our word for it. Industry research shows that targeted CSP practice test dramatically increases pass rates for the Certified Safety Professional. Our platform is built on this principle, offering the most realistic simulations available to give you that proven advantage.


CSP Overview

Name Certified Safety Professional
Code CSP
Vendor Construction and Industry
Certification Board of Certified Safety Professionals (BCSP)

Our free CSP exam questions are your personalized diagnostic tool. Get an instant, honest snapshot of your readiness for the Certified Safety Professional certification exam and identify the specific topics that need your focus.

CSP Questions

What You Get with Full Access:

Complete Questions Bank

Timed Exam Simulator

Smart Performance Dashboard

Identify Weak Spots

Verified Answer & Explanations

Unlimited Reattempts

Mobile-Friendly Study

Regular Content Updates



1 Month Access

$19.99

Buy Now


12 Months Access

$49.99

Buy Now

CSP Complete Package

Choose a plan and prepare with realistic CSP practice exam designed to mirror test-day conditions. Every plan includes a full Certified Safety Professional question bank, a timed exam simulator, performance tracking, detailed answer explanations, and the ability to reattempt questions to improve accuracy and confidence.

257 Practice Questions - Flexible Quiz Modes - Unlimited Attempts