Coders' Club Contest

35 Questions | Attempts: 143
Share

SettingsSettingsSettings
Coders Club Contest - Quiz

Time limit : 20 mins.


Questions and Answers
  • 1. 

    Possible Outcome?

    • A.

      20

    • B.

      18

    • C.

      22

    • D.

      21

    • E.

      24

    Correct Answer
    C. 22
  • 2. 

    What is the output of this code?

    • A.

      6

    • B.

      5

    • C.

      0

    • D.

      Varies

    Correct Answer
    A. 6
  • 3. 

    What is the output of this code?

    • A.

      1

    • B.

      4

    • C.

      8

    • D.

      2

    Correct Answer
    C. 8
  • 4. 

    What is the precedence of the following operators? ('()', /, *, %, &)

    • A.

      () , %, /, *, &

    • B.

      &, /, (), *, %

    • C.

      (), %, *, /, &

    • D.

      () , *, /, %, &

    Correct Answer
    D. () , *, /, %, &
  • 5. 

    Order of Associativity of Boolean operators

    • A.

      NOT, OR, AND

    • B.

      AND, OR, NOT

    • C.

      OR, AND, NOT

    • D.

      NOT, AND, OR

    Correct Answer
    A. NOT, OR, AND
  • 6. 

    What is the output of this code?

    • A.

      127

    • B.

      128

    • C.

      0

    • D.

      Program never ends

    Correct Answer
    D. Program never ends
  • 7. 

    What is the output of this code?

    • A.

      1

    • B.

      Undefined Behaviour

    • C.

      0

    • D.

      Compile Time error

    Correct Answer
    C. 0
  • 8. 

    Assume A and B are non-zero positive integers. The following code segment

    • A.

      Computes the LCM of the two numbers

    • B.

      Divides the larger number by the smaller number

    • C.

      Computes the GCD of two numbers

    • D.

      Finds the smaller of two numbers

    Correct Answer
    C. Computes the GCD of two numbers
  • 9. 

    A class of 30 students occupy a classroom containing 5 rows of seats, with 8 seats in each row. If the students seat themselves at random, the probability that the sixth seat in the fifth row will be empty is

    • A.

      1/5

    • B.

      1/3

    • C.

      1/4

    • D.

      2/5

    Correct Answer
    C. 1/4
  • 10. 

    How many times the output is 'yes'?

    • A.

      8 times

    • B.

      4 times

    • C.

      2 times

    • D.

      Only Once

    Correct Answer
    D. Only Once
  • 11. 

    Possible outcome

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    • E.

      E

    Correct Answer
    C. C
  • 12. 

    Possible outcome

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    • E.

      E

    Correct Answer
    E. E
  • 13. 

    How is my mother's mother's only son-in-law's daughter related to me?

    • A.

      Mother-in-law

    • B.

      Mother

    • C.

      Sister

    • D.

      Aunt

    • E.

      Cousin

    Correct Answer
    C. Sister
  • 14. 

    What is the output of this code?

    • A.

      1

    • B.

      Compilation error

    • C.

      Run time error

    • D.

      4

    Correct Answer
    C. Run time error
  • 15. 

    What is the output of this code?

    • A.

      %%%

    • B.

      %%

    • C.

      %

    • D.

      No output

    Correct Answer
    C. %
  • 16. 

    What is the output of this code?

    • A.

      2

    • B.

      3

    • C.

      4

    • D.

      None

    Correct Answer
    D. None
  • 17. 

    What is the output of this code?

    • A.

      Its zero

    • B.

      Run time error

    • C.

      Its not zero

    • D.

      None

    Correct Answer
    C. Its not zero
  • 18. 

    What is self-referential structure?

    • A.

      A structure having too many members

    • B.

      A structure having a pointer as a member pointing a same structure datatype

    • C.

      A structure pointing to another pointer datatype

    • D.

      A structure having a void pointer as member

    Correct Answer
    B. A structure having a pointer as a member pointing a same structure datatype
  • 19. 

    What is the default package in Java?

    • A.

      Java.awt

    • B.

      Java.lang

    • C.

      Java.io

    • D.

      Java.util

    Correct Answer
    B. Java.lang
  • 20. 

    C is ?

    • A.

      Method Oriented Language

    • B.

      Function Oriented Language

    • C.

      Procedure Oriented Language

    • D.

      Object Oriented Language

    Correct Answer(s)
    B. Function Oriented Language
    C. Procedure Oriented Language
  • 21. 

    Expand IDE?

    • A.

      Integrated Developing Environment

    • B.

      Internal Development Executioner

    • C.

      Integrated Development Environment

    • D.

      Interpreted Designed E-compiler

    Correct Answer
    C. Integrated Development Environment
  • 22. 

    Major Difference among C, C++ and Java is :

    Correct Answer
    Inheritance, Obejct oriented, Security issues
  • 23. 

    Is ',' (comma) a operator in C?

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
  • 24. 

    What does type casting operator does?

    • A.

      Gives the size of the variable

    • B.

      Gives the datatype of given variable

    • C.

      Gives the address of the given variable

    • D.

      Gives True or False

    Correct Answer
    B. Gives the datatype of given variable
  • 25. 

    How can you assign a user defined name to a predefined datatype?

    • A.

      By using keyword 'Enum'

    • B.

      By using keyword 'Assign'

    • C.

      By using keyword 'typedef'

    • D.

      By using directive '#Define'

    Correct Answer
    C. By using keyword 'typedef'
  • 26. 

    What is the Output of this code?

    • A.

      Coders' Club Contest

    • B.

      AbCoders' Club Contest

    • C.

      Run time Error

    • D.

      Compile time Error

    Correct Answer
    C. Run time Error
  • 27. 

    What do you mean by the word 'Odin'?

    Correct Answer
    Software, God, Father of Thor
  • 28. 

    12, 14, 15, 16, 18, 20, ___?

    • A.

      22

    • B.

      23

    • C.

      21

    • D.

      24

    Correct Answer
    C. 21
  • 29. 

    97, 83, 73, 67, 59, ___?

    • A.

      53

    • B.

      43

    • C.

      47

    • D.

      51

    Correct Answer
    C. 47
  • 30. 

    What is the output of this code?

    • A.

      String ending with " I see you"

    • B.

      String starting with "I see you"

    • C.

      String starting with "I see you"

    • D.

      String ending with "I see you"

    Correct Answer
    B. String starting with "I see you"
  • 31. 

    What is the possible output of this code

    • A.

      2

    • B.

      6

    • C.

      5

    • D.

      4

    Correct Answer
    B. 6
  • 32. 

    Type your details in the given order Name, Year, Section

    Correct Answer
    Name, Year, Section
  • 33. 

    How many times does the hands of the clock cross each other in a single day?

    • A.

      24

    • B.

      23

    • C.

      22

    • D.

      21

    Correct Answer
    C. 22
  • 34. 

    What do you mean by the word " Error "

    • A.

      Mistake

    • B.

      Exception

    • C.

      Blunder

    • D.

      None

    Correct Answer(s)
    A. Mistake
    B. Exception
  • 35. 

    Decrypt the code from the picture

    • A.

      @##&*

    • B.

      QEENY

    • C.

      Q33NY

    • D.

      @%%$*

    Correct Answer
    C. Q33NY

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Aug 18, 2018
    Quiz Edited by
    ProProfs Editorial Team
  • Aug 10, 2018
    Quiz Created by
    Prakash5
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.