Quiz On Computer Programming Basics! Trivia Knowledge Test

36 Questions | Total Attempts: 245

SettingsSettingsSettings
Please wait...
Quiz On Computer Programming Basics! Trivia Knowledge Test

Below is a Trivia Knowledge Test on Computer Programming Basics! A program is a set of instructions given to the computer so that it can perform a specific task, the instructions are written in programming languages. Do you know how to write a functional program? Do take this quiz and get to see how true that is. All the best!


Questions and Answers
  • 1. 
    5, 17, 37, 65, __, 145
  • 2. 
    If x means +,  / means -, - means x, + means /, then      8x7-8+40/2=?
    • A. 

      1

    • B. 

      8 3/5

    • C. 

      7 2/5

    • D. 

      44

  • 3. 
    In the following list of numerals how many 2's are followed by 1's but not preceded by 4? 4 2 1 2 1 4 2 1 1 2 4 4 4 1 2 2 1 2 1 4 4 2 1 4 2 1 2 1 2 4 1 4 2 1 2 4 1 4 6
    • A. 

      4

    • B. 

      3

    • C. 

      5

    • D. 

      More than 5

    • E. 

      None of these

  • 4. 
    Number of letters skipped in between adjacent letters in the series are multiples of 3. which of the following series observes this rule?
    • A. 

      DHLPU

    • B. 

      AELPZ

    • C. 

      GKOTZ

    • D. 

      LORUX

  • 5. 
                A B C D E F G H I J K L M             N O P Q R S T U V W X Y Z Which alphabet comes immediately before the sixth alphabet from the left extreme of the given alphabet?
    • A. 

      E

    • B. 

      F

    • C. 

      G

    • D. 

      V

  • 6. 
    A shepherd had 17 sheep. All but nine died. How many was be left with?
  • 7. 
    36 vehicles are parked in a parking lot in a single row. After first car there is one scooter, After second car there are two scooters, After third car there are 3 scooters and so on. Number of scooters in the second row?
    • A. 

      10

    • B. 

      15

    • C. 

      12

    • D. 

      17

  • 8. 
    Surplus is related to Sufficient as _________ is related to Need
    • A. 

      Excess

    • B. 

      Gathering

    • C. 

      Storage

    • D. 

      Demand

  • 9. 
    Choose the grammatically INCORRECT sentence
    • A. 

      They belonged to Africa

    • B. 

      They migrated from India to Australia

    • C. 

      He is of Asian origin

    • D. 

      She is an European

  • 10. 
    Complete the sentence: Universalism is to particularism as diffuseness is to
    • A. 

      Specificity

    • B. 

      Neutrality

    • C. 

      Generality

    • D. 

      Adaptation

  • 11. 
    In a press meet on the recent scam, the minister said, "The buck stops here". What did the minister convey by the statement?
    • A. 

      He will assume final responsibility

    • B. 

      He will return the money

    • C. 

      He will resist all enquiries

    • D. 

      He wants all the money

  • 12. 
    What will be the output of the following program? void main() { int i=0; for(;i<=2;) printf("%d",++i); getch(); }
    • A. 

      2,3,2

    • B. 

      1,2

    • C. 

      1,2,3

    • D. 

      Error

  • 13. 
    In which stage the following code #include<stdio.h> is replaced by the contents of the file stdio.h
    • A. 

      During execution

    • B. 

      During editing

    • C. 

      During preprocesing

    • D. 

      None of these

  • 14. 
    What is the maximum value that a signed integer constant can have?
    • A. 

      256

    • B. 

      1.7014e+38

    • C. 

      32767

    • D. 

      32768

  • 15. 
    What actually get pass when you pass an array as a function argument?
    • A. 

      First value of the elements of array

    • B. 

      All values of elements of the array

    • C. 

      Address of the last element of the array

    • D. 

      Base address of array

  • 16. 
    What will be the output of the following program int i=4; printf("%d ",i); printf("%d ",++i); printf("%d ",i++);
    • A. 

      4 5 6

    • B. 

      4 5 5

    • C. 

      4 4 5

    • D. 

      4 4 6

  • 17. 
    Any type of modification on the parameter inside the function will reflect the actual variable value can be related to
    • A. 

      Call by value

    • B. 

      Both 1 & 3

    • C. 

      Call by reference

    • D. 

      None of these

  • 18. 
    Evaluate !(1 && !(0 || 1))
    • A. 

      Error

    • B. 

      True

    • C. 

      Cannot be evaluated

    • D. 

      False

  • 19. 
    It is necessary that a loop counter must only be an int. It cannot be a float.
    • A. 

      True

    • B. 

      False

  • 20. 
    A void * is not a valid pointer.
    • A. 

      True

    • B. 

      False

  • 21. 
    Number of keyword in C programming language?
  • 22. 
    The order in which the arguments are evaluated in function call
    • A. 

      From the left

    • B. 

      From right

    • C. 

      Compiler dependent

    • D. 

      None of these

  • 23. 
    Identify the scalar data type in C.
    • A. 

      Double

    • B. 

      Function

    • C. 

      Union

    • D. 

      Array

  • 24. 
    Which of the following comments about loops is correct.
    • A. 

      Index value is retained outside the loop

    • B. 

      Body of the loop cannot be empty

    • C. 

      Goto an be used to jump out of the loop

    • D. 

      Index value can be changed within the loop

  • 25. 
    What will be stored in the variable "ch" if we write the statement char ch="z"?
    • A. 

      The character z

    • B. 

      Z along with single inverted commas

    • C. 

      ASCII value of z

    • D. 

      None of these