60:00
0/30 Attempted
Your Progress
Attempted 0
Correct 0
Incorrect 0
Skipped 0
Score 0
Marks 0

FPSC- Programmer (BS-17) - PMD High Yield - 2026 — Test 8

Page 1 of 3

Review Skipped Questions

0
Question 1
In VB, how many times does For i = 1 To 10 Step 2 run, and what is i after the loop?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 2
What does Val("12abc") return in VB?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 3
What does Mid("Pakistan", 3, 4) return in VB?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 4
What does this print? g = (x for x in range(3)) print(list(g), list(g))
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 5
What does list(zip([1, 2, 3], 'ab')) return?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 6
What is b after a, *b = [1, 2, 3]?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 7
What does [1].append([2, 3]) produce, compared with [1].extend([2, 3])?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 8
What does "a,b,,c".split(",") return?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 9
What is the difference between "abc".find("z") and "abc".index("z")?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 10
In Python 3, does the variable of a list comprehension leak into the enclosing scope? x = 10 [x for x in range(3)] print(x)
FPSC- Programmer (BS-17) - PMD High Yield - 2026