Questions

MCQ . (1 Marks)

🎯

Test yourself on this topic

41 questions · timed · auto-graded

MCQ 21 Mark
Use of______ test will help in reducing number of if else statement of program.
  • A
    logical AND
  • B
    B logical OR
  • both A and B
  • D
    If...else
Answer
Correct option: C.
both A and B
c
View full question & answer
MCQ 31 Mark
When no case is found during execution of switch statement the_______ statement block is executed.
  • A
    break
  • default
  • C
    continue
  • D
    none of the given
Answer
Correct option: B.
default
b
View full question & answer
MCQ 51 Mark
In switch statement. switch. case and ______words are used.
  • A
    A break
  • B
    default
  • both A and B
  • D
    If... else
Answer
Correct option: C.
both A and B
c
View full question & answer
MCQ 61 Mark
C provides multiway decision statement _______to make programming easier
  • A
    If
  • B
    if... else
  • C
    Neste If
  • Switch
Answer
Correct option: D.
Switch
d
View full question & answer
MCQ 71 Mark
Switch is used inplace of______.
  • A
    if
  • B
    If else
  • else….. if ladder
  • D
    Neste If
Answer
Correct option: C.
else….. if ladder
c
View full question & answer
MCQ 81 Mark
The______ statement in switch is used to unconditionally transfer the flow of program to the next statement in a program. OR The.......... statement is used to terminate the case statement block
  • A
    exit
  • break
  • C
    loop
  • D
    stop
Answer
Correct option: B.
break
b
View full question & answer
MCQ 91 Mark
After each statement block in switch_______ statement signals the end of case causing the exit from switch statement.
  • A
    default
  • break
  • C
    }
  • D
    :
Answer
Correct option: B.
break
b
View full question & answer
MCQ 101 Mark
There is no need to use braces around the statement block of_______ statements.
  • switch
  • B
    if
  • C
    cise
  • D
    Nested If
Answer
Correct option: A.
switch
a
View full question & answer
MCQ 121 Mark
Each case statement block of switch statement starts after______ sign.
  • : (colon)
  • B
    , (comma)
  • C
    (semicolon)
  • D
    curly bracket)
Answer
Correct option: A.
: (colon)
a
View full question & answer
MCQ 131 Mark
Each case label of switch statement ends with_______.
  • A
    semicolon(;)
  • colon (:)
  • C
    comma (,)
  • D
    D full point (.)
Answer
Correct option: B.
colon (:)
b
View full question & answer
MCQ 141 Mark
Each case option of switch statement contains______.
  • constant
  • B
    variable
  • C
    key
  • D
    condition
Answer
Correct option: A.
constant
a
View full question & answer
MCQ 151 Mark
The argument that are to be used with switch should be….
  • A
    vartable of type integer or character
  • B
    an expression of type Integer or character
  • A or B
  • D
    none of the given
Answer
Correct option: C.
A or B
c
View full question & answer
MCQ 161 Mark
When an action is to be taken based on given multiple choices,______ statement is very useful.
  • A
    if
  • B
    if ….else
  • switch
  • D
    else…..if ladder
Answer
Correct option: C.
switch
c
View full question & answer
MCQ 171 Mark
C language provides multiway decision statement called_________ to simplify the program.
  • A
    if
  • B
    if ….else
  • C
    Nested….. if
  • switch
Answer
Correct option: D.
switch
D
View full question & answer
MCQ 181 Mark
When only else (false) block of nested... if statement gets executed. It becomes ________.
  • A
    A false…if ladder
  • B
    wrong….. If ladder
  • else….. if ladder
  • D
    continue …..if ladder
Answer
Correct option: C.
else….. if ladder
c
View full question & answer
MCQ 191 Mark
When if statement is written using many if statements together it is known as _______.
  • A
    simple if
  • B
    if……else
  • C
    Neste …If
  • else.... if ladder
Answer
Correct option: D.
else.... if ladder
d
View full question & answer
MCQ 201 Mark
The test expression of else. If ladder is evaluated from the ________ in the ladder.
  • top to bottom
  • B
    bottom to top
  • C
    left to right
  • D
    right to left
Answer
Correct option: A.
top to bottom
a
View full question & answer
MCQ 211 Mark
When chain of if statements are used in else (false) block of nested if statements it becomes ________statement.
  • A
    Neste if
  • B
    If cise
  • C
    if
  • else... if ladder
Answer
Correct option: D.
else... if ladder
d
View full question & answer
MCQ 221 Mark
When if statement is used within another if statement. It is called________.
  • A
    Inner… if
  • B
    Loop …If
  • Neste ..if
  • D
    Continuous... if
Answer
Correct option: C.
Neste ..if
c
View full question & answer
MCQ 231 Mark
When both the test expression of if…else are evaluated to false,_______ part gets executed.
  • A
    If
  • B
    else
  • third
  • D
    none of the given
Answer
Correct option: C.
third
c
View full question & answer
MCQ 241 Mark
________is used to perform some process when test expression is evaluated to true and some other process if test expression is evaluated to false.
  • if... else
  • B
    Neste If
  • C
    If
  • D
    else... If ladder
Answer
Correct option: A.
if... else
a
View full question & answer
MCQ 251 Mark
_______ statement has two statement blocks.
  • A
    if
  • if... else
  • C
    Neste.. If
  • D
    else... If ladder
Answer
Correct option: B.
if... else
b
View full question & answer
MCQ 261 Mark
Which of the following cannot be used as test expression with if?
  • A
    n>5
  • a<5
  • C
    n = 5
  • D
    n = = 5
Answer
Correct option: B.
a<5
b
View full question & answer
MCQ 271 Mark
C programming language assumes _______values as false.
  • A
    non-zero
  • B
    B: zero
  • C
    null
  • both B and C
Answer
Correct option: D.
both B and C
d
View full question & answer
MCQ 281 Mark
C programming language assumes any _______values as true.
  • A
    non-zero
  • B
    non-null
  • both A and B
  • D
    zero
Answer
Correct option: C.
both A and B
c
View full question & answer
MCQ 291 Mark
When the statement of if statement are enclosed in ________ they are know compound statements
  • A
    ( )
  • { }
  • C
    [ ]
  • D
    < >
Answer
Correct option: B.
{ }
b
View full question & answer
MCQ 301 Mark
It is necessary to write compound statements of if in________.
  • A
    ( )
  • B
    [ ]
  • C
    <>
  • { }
Answer
Correct option: D.
{ }
D
View full question & answer
MCQ 311 Mark
if statement is considered to be _______statement when the test expression part of if ends with a semicolon.
  • A
    dull
  • null
  • C
    extra
  • D
    conditional
Answer
Correct option: B.
null
b
View full question & answer
MCQ 321 Mark
Test expression of if statement contains the result of the same may be true or false
  • logical operator
  • B
    relational operator
  • C
    logical expression
  • D
    bitwise operator
Answer
Correct option: A.
logical operator
a
View full question & answer
MCQ 331 Mark
Test expression of if statement is always written in _______
  • A
    [ ] brackets
  • B
    <> sign
  • C
    { }brackets
  • ( ) brackets
Answer
Correct option: D.
( ) brackets
d
View full question & answer
MCQ 341 Mark
The statement gets executed only when test expression is true.
  • A
    If else
  • B
    Nested if
  • simple if
  • D
    else if ladder
Answer
Correct option: C.
simple if
c
View full question & answer
MCQ 361 Mark
In simple if statement, there is________ statement block.
  • only one
  • B
    two
  • C
    multiple
  • D
    none of the given
Answer
Correct option: A.
only one
a
View full question & answer
MCQ 371 Mark
Which of the following is the simplest form of decision structure statement?
  • if
  • B
    If else
  • C
    Nested…. If
  • D
    else... if ladder
Answer
Correct option: A.
if
A
View full question & answer
MCQ 381 Mark
The _______ is one of the powerful statement for transfering control of instruction execution.
  • A
    switch
  • if
  • C
    case
  • D
    break
Answer
Correct option: B.
if
b
View full question & answer
MCQ 391 Mark
C language provides_______ basic types of decision structure statements.
  • 2
  • B
    3
  • C
    4
  • D
    5
Answer
Correct option: A.
2
a
View full question & answer
MCQ 401 Mark
Decision structure statements in C are also known as_______ statements.
  • A
    A selective structure
  • B
    branching
  • C
    C control
  • all of the given
Answer
Correct option: D.
all of the given
d
View full question & answer
MCQ 411 Mark
As decision structure statements jump from one part of the program to another part of program based on result of more than one condition, they are also known as _______ statements.
  • A
    A selective structure
  • B
    branching
  • C
    control
  • all of the given
Answer
Correct option: D.
all of the given
d
View full question & answer
MCQ . (1 Marks) - Computer STD 10 Questions - Vidyadip