CÂU TRẢ LỜI MÀU ĐỎ CÓ KHẢ NĂNG PHẦN LỚN
LÀ ĐÚNG. HY VỌNG LÀ ĐÚNG HẾT THẬT^^

1


    The relational operators > >= < <= have the same precedence.
    False
    True
2
                           The Repeat?Until loop exits when the condition
                           evaluates to _________.


                            False
                            True
3


    We cannot use nested if statements in a Pseudocode.
    False
    True
4
                   In C, ' = =' and ' = ' both mean the same.


                    No. In C, '= =' is used as the operator to check the equality of
                    two variables and '=' for assigning values to variables only
                    No. In C, '= =' is used as a comparison operator & '=' as the
                    operator to check the equality of two variables
                    No. In C, '= =' is used as the equality operator & '=' as the
                    comparison operator
5
    Is the following a valid pseudocode?

    BEGIN
    INPUT P1,P2,P3
    ADD=P1 + P2 +P3
    PER=ADD / 5
    IF PER >= 60
    DISPLAY "FIRST CLASS"
    ELSE IF PER >= 50
    DISPLAY "SECOND CLASS"
    ELSE IF PER >= 40
    DISPLAY "PASS CLASS"
    ELSE
    DISPLAY "FAIL"

    Can't say
    No
    Yes
6
    What will be the output?




    BEGIN
    i=1
    WHILE ( i < = 5)
    DO
    DISPLAY "A"
    END DO
    END

    1. A
       A
       A
       A
       A

    2. A
       A
       A
       A

    3. A A A A

    4. A A A A A



    1
    2
    3
    4

7
           ___________ variables are must in the FOR loop.


           control
           counter
           end
           start
8
                      To calculate the square of a specified number, which
                      library should we include in our code?


                       conio.h
                       None of the above
                       stdlib.h
                       string.h
9
     In Pseudocode, to accept values from the user which terms are used?


      Enter
      Input
      Read
      Write
10
     Which among these are not binary
     operators?


     Decrement operator
     Increment operator
     MOD
     Multiplication
11
     Which of the following is/are the tool/s for debugging?


     Break point
     Check point
     Error Tracing
     Simulator
     Trace routines
12
                               The keyword/s used to take user input in a
                               Pseudocode is/are


                                  Accept
                                  Input
                                  Prompt
                                  Read
                                  Take
13
     The Logical operators are:


     And
     False
     Not
     Or
     True
14
                  Identify the methods used for debugging.


                   Dry Run
                   Independent Inspection
                   Structured walk through
                   Testing
                   Tracing
15
     Which of the following are the delimiters used in programming languages?


      ()
      <     >
      []
      {}
      Tracing
16
     Which of the following will generate a
     Logical error?


     avg=a+b c (c=0)
     IF (A<     >0 AND A<    >1) Then??.
     Infinite loop
     Read Abc.doc (abc.doc does not exist)
     Tracing
17
     Which of the following statements are true?


      The # symbol may not be used as the first character of a variable
      The $ symbol may not be used as the first character of a variable
      The % is used to calculate a percentage thus: 10 % 20=50
      The / operator is used to divide one value by another
18


     A flowchart can have more than one START &
     one STOP.
      False
     True
19


     When the loop encounters a break statement, it immediately exits the program.
     False
     True
20


     The subprogram in a pseudocode can be further divided into smaller programs.
     False
     True
21


      Address of a floating-point variable is always a whole number.
      False
      True
22


     Validation of a program code can be termed as
     testing.
      False
     True

De so 1

  • 1.
    CÂU TRẢ LỜIMÀU ĐỎ CÓ KHẢ NĂNG PHẦN LỚN LÀ ĐÚNG. HY VỌNG LÀ ĐÚNG HẾT THẬT^^ 1 The relational operators > >= < <= have the same precedence. False True 2 The Repeat?Until loop exits when the condition evaluates to _________. False True 3 We cannot use nested if statements in a Pseudocode. False True 4 In C, ' = =' and ' = ' both mean the same. No. In C, '= =' is used as the operator to check the equality of two variables and '=' for assigning values to variables only No. In C, '= =' is used as a comparison operator & '=' as the operator to check the equality of two variables No. In C, '= =' is used as the equality operator & '=' as the comparison operator
  • 2.
    5 Is the following a valid pseudocode? BEGIN INPUT P1,P2,P3 ADD=P1 + P2 +P3 PER=ADD / 5 IF PER >= 60 DISPLAY "FIRST CLASS" ELSE IF PER >= 50 DISPLAY "SECOND CLASS" ELSE IF PER >= 40 DISPLAY "PASS CLASS" ELSE DISPLAY "FAIL" Can't say No Yes
  • 3.
    6 What will be the output? BEGIN i=1 WHILE ( i < = 5) DO DISPLAY "A" END DO END 1. A A A A A 2. A A A A 3. A A A A 4. A A A A A 1 2 3 4 7 ___________ variables are must in the FOR loop. control counter end start
  • 4.
    8 To calculate the square of a specified number, which library should we include in our code? conio.h None of the above stdlib.h string.h 9 In Pseudocode, to accept values from the user which terms are used? Enter Input Read Write 10 Which among these are not binary operators? Decrement operator Increment operator MOD Multiplication 11 Which of the following is/are the tool/s for debugging? Break point Check point Error Tracing Simulator Trace routines
  • 5.
    12 The keyword/s used to take user input in a Pseudocode is/are Accept Input Prompt Read Take 13 The Logical operators are: And False Not Or True 14 Identify the methods used for debugging. Dry Run Independent Inspection Structured walk through Testing Tracing
  • 6.
    15 Which of the following are the delimiters used in programming languages? () < > [] {} Tracing 16 Which of the following will generate a Logical error? avg=a+b c (c=0) IF (A< >0 AND A< >1) Then??. Infinite loop Read Abc.doc (abc.doc does not exist) Tracing 17 Which of the following statements are true? The # symbol may not be used as the first character of a variable The $ symbol may not be used as the first character of a variable The % is used to calculate a percentage thus: 10 % 20=50 The / operator is used to divide one value by another 18 A flowchart can have more than one START & one STOP. False True
  • 7.
    19 When the loop encounters a break statement, it immediately exits the program. False True 20 The subprogram in a pseudocode can be further divided into smaller programs. False True 21 Address of a floating-point variable is always a whole number. False True 22 Validation of a program code can be termed as testing. False True