CS Knowledge Opener - Logo
CS Knowledge
Opener
Facebook Youtube Telegram
  • Home
  • 12th CS
    • 12th CS English Medium
    • 12th CS Tamil Medium
  • 12th CA
    • 12th CA English Medium
    • 12th CA Tamil Medium
  • 11th CS
    • 11th CS English Medium
    • 11th CS Tamil Medium
  • 11th CA
    • 11th CA English Medium
    • 11th CA Tamil Medium
  • CS / CA Question Bank
  • Other Subjects
  • Student Alerts
  • Govt Exams
  • Home
  • 12th CS
    • 12th CS English Medium
    • 12th CS Tamil Medium
  • 12th CA
    • 12th CA English Medium
    • 12th CA Tamil Medium
  • 11th CS
    • 11th CS English Medium
    • 11th CS Tamil Medium
  • 11th CA
    • 11th CA English Medium
    • 11th CA Tamil Medium
  • CS / CA Question Bank
  • Other Subjects
  • Student Alerts
  • Govt Exams
CS Knowledge Opener - Logo
CS Knowledge
Opener
Facebook Youtube Telegram
  • Home
  • 12th CS
    • 12th CS English Medium
    • 12th CS Tamil Medium
  • 12th CA
    • 12th CA English Medium
    • 12th CA Tamil Medium
  • 11th CS
    • 11th CS English Medium
    • 11th CS Tamil Medium
  • 11th CA
    • 11th CA English Medium
    • 11th CA Tamil Medium
  • CS / CA Question Bank
  • Other Subjects
  • Student Alerts
  • Govt Exams
  • Home
  • 12th CS
    • 12th CS English Medium
    • 12th CS Tamil Medium
  • 12th CA
    • 12th CA English Medium
    • 12th CA Tamil Medium
  • 11th CS
    • 11th CS English Medium
    • 11th CS Tamil Medium
  • 11th CA
    • 11th CA English Medium
    • 11th CA Tamil Medium
  • CS / CA Question Bank
  • Other Subjects
  • Student Alerts
  • Govt Exams
12th CS English Medium

12th Computer Science Public Exam Important Program Question 2023

Baskaran J
January 22, 2023 2 Mins Read
8.8K Views
0 Comments

12th Computer Science Public Exam Important Program Question

  • Hi students we post 12th Computer Science Public Exam Important Program Question 2023.
  • This post is helpful for you to attend the programming questions and to get centum in board exams.
  • Try to go through the hands on practice questions, and book back programs too

In python programming questions are covered under the topics:

  1. List
  2. Tuple
  3. String slicing
  4. Class and object
  5. Inheritance
  6. Pattern using for loop
  7. Pyplot
  8. Overloading

Model Program:

  1. What will be output of the given python program?

Str= “COMPUTER SCIENCE”

  1. a) pirnt(str*2) b) print(str[0:7])
  2. What will be the output of the following code?

list=[3**x for x in range(5)]

print(list)

  1. Write the output of the following program.

Class hosting:

def__init__(self, name):

self.__name=name

def display(self):

print(“Welcome to”, self.__name)

obj=hosting(“Python programming)

obj.display()

  1. What will be the output of the given python program?

a= “computer”

b= “science”

x=a[:4]+b[len(b)-3:]

  1. Write the output for the following program.

i=0

while(i<=6):

for j in range(1,i)

print(j, end=’\t’)

print(end= ‘\n’)

i+=1

  1. Write the output for the following python commands

Str1= “Welcome to Python”

  1. i) print(str1)
  2. ii) print(str1[11:17])

iii) print(str1[11:17:2])

  1. iv) print(str2[: :4])
  2. v) print(str1[: : -4])

8. Write the output for the following python programs

i) j=15

while(j>=10):

print(j, end= ‘\t\’)

j=j-1

else:

print(“\ end of the loop)

ii) k=15

while(k<=9):

for i in range(1,k):

print(i, end= ‘\t\’)

k=k+1

  1. Debug the following program to get the given output:

Output:

Inside add() function x value is:10

In main x value is:10

Program:

x=0

define add:

globally x:

x=x+10

print(“inside add()function x value is:”)

add

print(“In main x value is:”)

  1. Program to check if the accepted number odd or even

a = int(input(“Enter any number :”))

if a%2==0:

print (a, ” is an even number”)

else:

print (a, ” is an odd number”)

11. Program to access each character with its positive subscript of a giving string

str1 = input (“Enter a string: “)

index=0

for i in str1:

print (“Subscript[“,index,”] : “, i)

index + = 1

12. Program to slice substrings using for loop

str1=”COMPUTER”

index=0

for i in str1:

print (str1[:index+1])

index+=1

13. What will be output of the following python snippet?

Str1=”THOLKAPPIYAM”

Print(str1[4:])

Print(str1[4::2])

Print(str1[::3])

Print(str1[::-3])

14. Draw the chart for the given python snippet.

Import matplotlib. Pyplot as plt

Plt.plot([1,2,3,], [1,4,9,16])

Plt.show()

 

[pdf-embedder url=”https://csknowledgeopener.com/wp-content/uploads/2023/01/XII-CS-EM-PROGRAM-QUESTION-2022-2023.pdf” title=”XII – CS EM PROGRAM QUESTION 2022-2023″]

Tags:

Question Bank

Share Article

Follow Me Written By

Baskaran J

Other Articles

Previous

STAFF SELECTION COMMISSIONTENTATIVE CALENDAR OF EXAMINATIONS FOR THE YEAR 2023-2024

Next

Puducherry LDC Previous Year Question Paper 2012

Next
January 22, 2023

Puducherry LDC Previous Year Question Paper 2012

Previous
January 19, 2023

STAFF SELECTION COMMISSIONTENTATIVE CALENDAR OF EXAMINATIONS FOR THE YEAR 2023-2024

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

6 − one =

Related Posts

12th CS Board Exam Answer Key Discussion 2024-2025

Baskaran J
March 14, 2025

12th Computer Science English medium Program Question 2024-2025

Baskaran J
February 23, 2025

12th Computer Science Practice One marks question 2024-2025

Baskaran J
February 3, 2025

12th Computer Science English medium Public Exam Important Important Question 2024-2025

Baskaran J
January 16, 2025

Subscribe to our newsletter and stay updated.

CS Knowledge Opener

CS Knowledge Opener focuses on 11th &12th Computer Science & Computer Applications English Medium & Tamil Medium. Programming Skills and also we are Publishing Study Materials Based on New syllabus introduced by TNSCERT. (TNBOARD).

Quick Links

  • Contact Us
  • About Us
  • Privacy Policy
  • Disclaimer
  • Terms and Conditions
Categories
11th CA English Medium 15
11th CA Tamil Medium 9
11th CS English Medium 21
11th CS Tamil Medium 12
12th CA English Medium 32
12th CA Tamil Medium 8
12th CS English Medium 36
12th CS Tamil Medium 12
Government Exams 36
Notifications 8
Other Subjects 13

Follow Us

Youtube
Facebook
Telegram
CS Knowledge Opener © 2020 - 2025. All Rights Reserved.