Python-by-codemistic / 8-weeks-of-python

Learn Python from basics to intermediate in 8 weeks.
MIT License
0 stars 11 forks source link

MCQ on Statement , Comment and Variables #3

Open sheetalparmar99 opened 4 years ago

sheetalparmar99 commented 4 years ago
  1. Which of the following symbol are used for comment in python ? A. # B. " " " C. A and B D. None of the above.
  2. Most of the programming languages like C, C++, and Java use braces { } to define a block of code. Python, however, uses ____. A. Indentation B.Semi-Colon C.Parentheses D.None of the above
  3. Which of the following will give error? A. a=b=c=1 B. a,b,c=1 C. a,b,c=1, "Hello", 1.5 D. None of the above
  4. Which one of the following is correct way of declaring and initialising a variable, x with value 5? A. int x x=5 B. int x=5 C. x=5 D.declare x=5
  5. In Python, a variable must be declared before it is assigned a value: A. True. B. False
Amanpr94 commented 4 years ago

Aman Prakash MCA and 2nd year LNCT

aswani-prashant commented 4 years ago

Name- Prashant Aswani Branch - CSE year - 3 Clg - LNCTS Answer - 1 - c 2 - a 3 - b 4 - c 5 - a

AyushPurwar525 commented 4 years ago

Name:- Ayush Purwar Branch and Year:- ECE, 2nd year College:- LNCT Answers:-

  1. A
  2. A
  3. B
  4. C
  5. A
mohdayankhan999 commented 4 years ago

Name:- Mohd Ayan Khan Branch and Year:- cse , 2nd year College:- LNCT&s Answers:- 1.A 2.A 3.B 4.C 5.A

MuskanAthghara commented 4 years ago

Name- Muskan Athghara Branch and year- CSE, 2nd year College- LNCTS

  1. C
  2. A
  3. B
  4. C 5.B
codethat-vivek commented 4 years ago

Name:- Vivek Kumar Branch and Year:- Cse, 3rd year College:- LNCT Answers:

  1. A
  2. A
  3. B
  4. C
  5. B
sakshi-jain24 commented 4 years ago

Name- Sakshi Jain Branch - CSE year - 3 Clg - Samrat ashoka technological institute VIDISHA Answer - 1 - C 2 - A 3 - B 4 - C 5 - B

AnuragKumar5 commented 4 years ago

Name- Anurag Kumar Branch and year- CSE, 2nd year College- LNCT

  1. C
  2. A
  3. B
  4. C
  5. B