Skip to content

Latest commit

 

History

History
65 lines (55 loc) · 1.6 KB

File metadata and controls

65 lines (55 loc) · 1.6 KB
  1. Which of the following is a high-level programming language?

    • A) Assembly
    • B) C
    • C) Python ✓
    • D) Machine Language
  2. Which of the following is an example of a front-end programming language?

    • A) PHP
    • B) Java
    • C) HTML ✓
    • D) SQL
  3. Which of the following is used to store data in a programming language?

    • A) Variables ✓
    • B) Arrays ✓
    • C) Loops
    • D) Conditionals
  4. Which statement will print 'The joy of computing'?

    • A) print(The joy of computing)
    • B) print The joy of computing
    • C) printf('The joy of computing')
    • D) print('The joy of computing') ✓
  5. What should be the value of _ to print all numbers from 0-10? ![[Pasted image 20231029092657.jpg]]

    • A) 10
    • B) 9
    • C) 11 ✓
    • D) None of the above
  6. Which of the following keyword is used to declare a function in a programming language?

    • A) def ✓
    • B) var
    • C) int
    • D) float
  7. What will be the output of the following code? ![[Pasted image 20231029092749.jpg]]

    • A) 0
    • B) 45 ✓
    • C) 43
    • D) 50
  8. What value will c store in it after the execution of the below code?  c = b ** 3

    • A) Cube of b ✓
    • B) Value of b multiplied by 3
    • C) Value of b multiplied with 3 twice
    • D) It will throw an error
  9. What will be the output? Suppose the input is 30. ![[Pasted image 20231029092924.jpg]]

    • A) 60
    • B) Error
    • C) 3030 ✓
    • D) 30
  10. What is the output for the following program? ![[Pasted image 20231029092942.jpg]]

    • A) True
    • B) False ✓
    • C) It will display an error message
    • D) Boolean