Even I have faced this kind of question in some comparative exams and can be solved with some assumptions.
Assume:
Cache is empty
Solution:
2-way set associative with 4 blocks (empty cache) gives
╔═══════════════╗
║ Cache ║
╠═══════╤═══════╣
║ Set 1 │ Set 2 ║
╟───────┼───────╢
║ - │ - ║
╟───────┼───────╢
║ - │ - ║
╟───────┼───────╢
║ - │ - ║
╟───────┼───────╢
║ - │ - ║
╚═══════╧═══════╝
Input : 0, 8, 0, 6, 8
Inserting one by one
Inserting : 0 (cache miss)
0 % 4 = 0 (goes to Block 0 Set 1)
╔═══════════════╗
║ Cache ║
╠═══════╤═══════╣
║ Set 1 │ Set 2 ║
╟───────┼───────╢
║ 0 │ - ║
╟───────┼───────╢
║ - │ - ║
╟───────┼───────╢
║ - │ - ║
╟───────┼───────╢
║ - │ - ║
╚═══════╧═══════╝
Inserting : 8 (cache miss)
8 % 4 = 0 (goes to Block 0 Set 2)
╔═══════════════╗
║ Cache ║
╠═══════╤═══════╣
║ Set 1 │ Set 2 ║
╟───────┼───────╢
║ 0 │ 8 ║
╟───────┼───────╢
║ - │ - ║
╟───────┼───────╢
║ - │ - ║
╟───────┼───────╢
║ - │ - ║
╚═══════╧═══════╝
Inserting : 0 (cache hit)
0 % 4 = 0
╔═══════════════╗
║ Cache ║
╠═══════╤═══════╣
║ Set 1 │ Set 2 ║
╟───────┼───────╢
║ 0 │ 8 ║
╟───────┼───────╢
║ - │ - ║
╟───────┼───────╢
║ - │ - ║
╟───────┼───────╢
║ - │ - ║
╚═══════╧═══════╝
Inserting : 6 (cache miss)
6 % 4 = 2 (goes to Block 2 Set 1)
╔═══════════════╗
║ Cache ║
╠═══════╤═══════╣
║ Set 1 │ Set 2 ║
╟───────┼───────╢
║ 0 │ 8 ║
╟───────┼───────╢
║ - │ - ║
╟───────┼───────╢
║ 6 │ - ║
╟───────┼───────╢
║ - │ - ║
╚═══════╧═══════╝
Inserting : 8 (cache hit)
8 % 4 = 0
╔═══════════════╗
║ Cache ║
╠═══════╤═══════╣
║ Set 1 │ Set 2 ║
╟───────┼───────╢
║ 0 │ 8 ║
╟───────┼───────╢
║ - │ - ║
╟───────┼───────╢
║ 6 │ - ║
╟───────┼───────╢
║ - │ - ║
╚═══════╧═══════╝
Answer : 3 misses and 2 hits (option B)