A comment in some vb.net code is as follows:

> 現在の時刻が設定時間と一致している **か** 確認する

Meaning, (the following bit of code) checks if the current time matches the
configured one.

According to what I learnt from textbooks etc, the か in there should be a
かどうか, because theres no question word in the sentence, making this incorrect
Japanese. Is that right? I'm confused because this was written by a native
Japanese speaker.
CC BY-SA 3.0
2017-09-28T22:00:09.747
53531
2017-09-29T21:25:32.077
2017-09-29T21:25:32.077
16132
question
grammar questions particle-か subordinate-clauses
"correct" formation of questions
It is the question marker か. Think of it like this, posed as a normal
question:

> 現在の時刻が設定時間と一致している **か** → Does the current time match the configured time?

Then you're just adding 確認する to that, making it

> Check "does the current time match the configured time?" → Check
> if/that/whether the current time matches to configured time.

This か is very close to かどうか. In fact, there would not be much semantic
difference if かどうか were used here. It's equivalent to the difference between
saying "check whether" and "check whether or not" in English.
CC BY-SA 3.0
2017-09-28T22:10:00.617
53532
2017-09-28T22:10:00.617
78
53531
answer
That sentence is grammatical and natural-sounding. In fact, all of the
following patters are grammatical.

> 1) 「Mini-Sentence + か + 確認{かくにん}する」
>
> 2) 「Mini-Sentence + か + を + 確認する」
>
> 3) 「Mini-Sentence + か + どうか + 確認する」
>
> 4) 「Mini-Sentence + か + どうか + を + 確認する」

1) and 2) are used (far) more often than 3) and 4) as using 「どうか」 could at
times make it sound a bit wordy and slightly too conversational in business
situations.

Versions using 「を」 would sound a tiny bit more formal than those without it.
CC BY-SA 3.0
2017-09-28T22:33:18.950
53533
2017-09-28T22:33:18.950
53531
answer