Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
27 views
Cs
Uploaded by
kssajmal786
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save cs For Later
Download
Save
Save cs For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
27 views
Cs
Uploaded by
kssajmal786
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save cs For Later
Carousel Previous
Carousel Next
Save
Save cs For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 3
Search
Fullscreen
NANDHA CENTRAL SCHOOL XI - COMPUTER SCIENCE (083) I st 50% ASSESMENT EXAMINATION-23 aRRSZ : TIME: 3 Hrs ATE: 26 -0§ 2023, - WARKS | Q.NO Section -A ALLOCATED T |The operators that act on one operand are referred to as ‘a)Binary operator b)Unary operator c)Relation operator d) Arithmetic operator 2 |ifa=18.9 & b=3 .then all b will be evaluated as as Ja) 6.0 b) 6.3 c)0.3%d)none of these +6.3) &j=4"6 3j.then what will be the value of print (==), ‘a)True b) False e) 1 di] iUwill be the output of the Tollow' 4 Ja=bool (' ') and 5<8 then print (a) a)False b)True c) answer may vary d) none of these \ 3 |ira=2*°2 then prini(a) will be “To | 1a) 64 b) 12 ¢)256*d) none of these I | 6 {ifathellot.b~"boys!then the expression a and b wil yi a)true byfatse ejhello I boys | 7 [python files are saved with the extension as, a.python by.pe €)-py @)-pi 7 it. "7 Which ofthe following isthe correct way tgjntialize multiple variables withacommon value? | 8 |ays=yynd5 byxy=z—ds®rqziy=znd5: dhRaeyder=45, \ 9 [Error due to logic of the program |h)semantic error b)syntax error ¢)runtime error d)AIl type of errors [An appropriate statement for a loop to be repeated 50 times fa) for jin range (0,50): b ) for iin range (1,50): €)) for in range (1.51): d)) None of these 10 ! |What will be the output of the following code: i=1 11 hileGi< 10): print" Bi.end="_") =i" 2)1248 )1369 6)369 d)36 suppose a=2 ~ 2 write what will be the ouput af print ("%d" %a(a+5)) fa) 7 b)8 ©)9 d) None of these| The equivalent for loop for the following while loop is i=l philerie=20) 2 ator iin range (1 efor Lin (1.20.2): |b} for Lin range (0.20.2): _» djNone of these IF variable sum is equal to 20 and total less than 50 The above statement expressed in python as: a) if (sum==20) and (total <30): by if -20) and (total <50): jc) if (sum==20) and (total +50): $e) if (sum==20) and (total <50): Predict the output of the following code or x in range (3): \prints) 1234 8) OL ©) 012345 d) 12345 [Find the out the following : For tr in range (-600.0.200) [print trend =" *) 16 4a)-6010 400-200 }-200-400-600 e}-200-600 )-400-600 1 [17 Fhe Toop that is best suited to handle iterations is| 1 $2) while loop 6) for loop €) if d) ifelse “Tifa break statements is written inside a nested loop .on execution it will ‘aystop the |exccution of outer loop. b) stop the execution of inner loop i yver may vary - . Section-B ine looping, Write two Tooping statements that are used in python. 2 | ag. | Whats statement 2 called as? fier executing the all the given statements what will be the % | 7° Wvatue ot y? i Dhow bella _od{ fond che Ba || Write the conditional statements for the following situations: | ay jis is greater than or equal to y 2 | i) x is fess than y and x is less than z. - — - 5 5 i \Write an appropriate for oF while loop for the following situations: | |i) A toop is to be repeated 200 times. | 59 [ity A loop is tobe repeated 200 times,but the loop is to be terminated if the value of variable | 2 | |becomes 175 | | }What output Will be the following code fragment produce? n=1000 | ‘val=int(input( "enter & value:")) res=400 if (n+val>1750)else200 print(res) | ‘vif the input is 2 : | 23. jit the input is 2 | ! t [723] What is script?where can you write the python code? 2 a 2 2 What are the keywords? Write some commonly used keywords in python?Section -C What will be the output of the following ? Also state the reason, i) print (“introduction to python \n programming") ii)print("100=200") iii)print( 100/11) avelllad Write python statements for the follow [b)To print the character variable letter, ))To read a float variable into the variable discount_rate +a)To print the walue of the integer variable sum, [Find the output of the following #1 print(x) i +5-7*8/5%10 %.26"%x) ii =IHANS -3+4-78/5%10 print("%.2P"%a) [What is the difference between logical and syntactical error?give examples. | Rewrite the following program using for loop: isum=I.0 | while(i<=10): sum=sum+l i+=1 Iprint("sum is :%d % sum) —___L Find the error (s).,fany in the following program: i(("enter value of a:")) u=10.0 Iwhile(ac=3) a=a++ u=uta print("%d %a) prine(".2¢".9%u) Section-D Write a program to enter three subject marks and calculate the total of entered marks and grades lt the total marks are more than 250 then grade is’ other wise'B’ fwrite a program to calculate the factorial of a number. Write a program to check whether a number is prime or not, [A library issues books on rentall basis as 1% charge on the cost pi can be issued for 5 days without any late fee.tf the book is returned after 5 days a late fee will be charged for the above 5 days as per the given table Issue days Late fee per day 1tos 3 | 6 to 10 35 | more than 10 55 ce of the book per day A book |
You might also like
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Mark Manson
4/5 (6134)
Principles: Life and Work
From Everand
Principles: Life and Work
Ray Dalio
4/5 (627)
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Brene Brown
4/5 (1148)
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
Chris Voss
4.5/5 (935)
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Jeannette Walls
4/5 (8215)
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Angela Duckworth
4/5 (631)
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
Jesmyn Ward
4/5 (1253)
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Stephen Chbosky
4/5 (8365)
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Phil Knight
4.5/5 (860)
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Carmen Maria Machado
4/5 (877)
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Ben Horowitz
4.5/5 (361)
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
Margot Lee Shetterly
4/5 (954)
Steve Jobs
From Everand
Steve Jobs
Walter Isaacson
4/5 (2923)
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
Ashlee Vance
4.5/5 (484)
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Siddhartha Mukherjee
4.5/5 (277)
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Fredrik Backman
4.5/5 (4973)
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
Frank McCourt
4.5/5 (444)
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
Colm Toibin
3.5/5 (2061)
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
Garth Stein
4/5 (4281)
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
Sarah M. Broom
4/5 (100)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
Meik Wiking
3.5/5 (447)
Yes Please
From Everand
Yes Please
Amy Poehler
4/5 (1988)
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
Gilbert King
4.5/5 (278)
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Thomas L. Friedman
3.5/5 (2283)
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Roxane Gay
4/5 (1068)
The Outsider: A Novel
From Everand
The Outsider: A Novel
Stephen King
4/5 (1993)
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
Ruth Ware
3.5/5 (2641)
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
Betty Smith
4.5/5 (1936)
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
Viet Thanh Nguyen
4.5/5 (125)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Dave Eggers
3.5/5 (692)
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Doris Kearns Goodwin
4.5/5 (1912)
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
Hilary Mantel
4/5 (4074)
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Naomi Klein
4/5 (75)
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Bob Woodward
3.5/5 (830)
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
Jennifer Egan
3.5/5 (901)
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Jay Sekulow
3.5/5 (143)
John Adams
From Everand
John Adams
David McCullough
4.5/5 (2544)
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
M L Stedman
4.5/5 (790)
M-1 NEET Chemistery
PDF
No ratings yet
M-1 NEET Chemistery
184 pages
Complex Number
PDF
No ratings yet
Complex Number
27 pages
Chem
PDF
No ratings yet
Chem
1 page
Chemical Bonding 2
PDF
No ratings yet
Chemical Bonding 2
32 pages
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
George Packer
4/5 (45)
Little Women
From Everand
Little Women
Louisa May Alcott
4/5 (105)
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel
John le Carré
3.5/5 (109)