0% found this document useful (0 votes)
54 views

Coding Contest

This document contains a coding contest from Coding With Sagar with 7 questions to be completed within 45 minutes. The contest includes questions on matching columns, writing programs to find the sum of dictionary values, count even and odd numbers in a list, filling in code-related blanks, multiple choice questions, and writing a program to calculate profit or loss based on input amounts. Contestants are instructed to make a PDF of their answers and submit it for evaluation.

Uploaded by

Lavkush Tyagi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views

Coding Contest

This document contains a coding contest from Coding With Sagar with 7 questions to be completed within 45 minutes. The contest includes questions on matching columns, writing programs to find the sum of dictionary values, count even and odd numbers in a list, filling in code-related blanks, multiple choice questions, and writing a program to calculate profit or loss based on input amounts. Contestants are instructed to make a PDF of their answers and submit it for evaluation.

Uploaded by

Lavkush Tyagi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Coding With Sagar

BEST ONLINE CODING INSTITUTE


www.codingwithsagar.in
[email protected]
+91 9685832822

CODING CONTEST

45 Min 25M Best of luck

* Solve all questions * Make a PDF and submit it * Attend all questions mandatory

Q.1 Match the column: 5M

A B
Float Coding With Sagar
Dictionary 20.3586
Python 3 Release date 3 December 2009
Full form of CWS Coding With Sagar
Founder of python key : value
156
Guido Van Rossum
Dennis Ritchie

Q.2 Write a python program to find the sum of all values in a dictionary.

3M

Example:

Suppose dictionary is {"Sagar":67, "Akul":45, "Disha":89, "Elon":99, "Kunj":55}

Sum of all the values is 355.

Q.3 Python program to count Even and Odd numbers in a List.

3M

Example:

Suppose list is [56, 34, 8, 54, 23, 89, 76, 46, 21, 67, 99] Number of even

numbers are 6 Number of odd numbers are 5

Q.4 What have you learned since the start of this class till now, write the
2M
names of the topics and how was your overall experience in the class.

Q.5 Fill in the blanks: 2M

a- An ordered set of instructions or commands to be executed by


a computer is called a..............

b- Full form of IDLE is ..............

c- ..............is an identifier whose value can change.

d- .............are reserve words.

Q.6 MCQ-
6M

A- Which of the following is true about the code below?

x = 3

if (x > 2):

x = x * 2;

if (x > 4):

x = 0; print(x)

a. x will always equal 0 after this code executes for any value of x

b. if x is greater than 2, the value in x will be doubled after this


code executes

c. if x is greater than 2, x will equal 0 after this code executes

B-True is what type of variable?


A. float

B. string

C. boolean

D. integer

C- What is the output from the following code?

a = 3

b = (a != 3)

print(b)

A. True

B. False

C. 0

D. 3

E. Syntax error

Q.7 Write a python program to calculate profit or loss. Ask input from user.
4M
Example:

Enter purchase amount = 50000 Enter selling amount = 55000 You got profit of 5000

Coding With Sagar


BEST ONLINE CODING INSTITUTE
www.codingwithsagar.in
[email protected]
+91 9685832822

You might also like