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
11th CS English Medium

11th Computer Science Half yearly exam important program question PDF 2022-2023

Baskaran J
December 27, 2022 2 Mins Read
1.5K Views
0 Comments

11th Computer Science Half yearly exam important program question

Here we give example Half yearly exam important program question.

  1. Write the C++ program to display the following output

0  1  1  2  3  5 ….. n terms

  1. Initially j is 20 and p is 4, then what will be the value of p=p*++j;?
  2. Write a while loop that displays numbers 5, 10, 15, …..50.
  3. What are the values of variables m and n after the assignments in line (1) and line (3)?m, n : = 4, 10- – m, n = ?, ?m, n : = m + 5, n-2- – m, n =?, ?
  4. Read the following C++ snippet and answer the question given below

class student

{

int m, n;

float calc();

}x1, x2;

  1. i) Identify the members of the class.
  2. ii) What is size of the objects x1, x2 in memory.
  1. After the assignment what values will be stored in the variables m, n?

1) m, n : =10, 5

2) m, n : = m+3, n-2

3) m, n : = ?, ?

  1. How many time the loop is iterated?

m:=10

while(m<5)

m:=m+1

  1. int age[] = {6, 80, 75, 21, 10}; How many elements are there in this array?
  1. int x=10;

int main()

{

int x = 100;

cout<<::x;

}

The output for the above snippet:

  1. What is the size of the objects s1, s2?

class sum

{

int n1,n2;

public:

void add(){int n3=10;n1=n2=10;}

} s1,s2;

21. State the reason for the invalidity of the following code fragment

(i)

class count

{

int first;

int second;

public:

int first;

};

(ii)

class item

{

int prd;

};

item int prdno;

  1. Write a C++ program to add two distances using the following structure definition

struct Distance{

int feet;

float inch;

}d1 , d2, sum;

The pdf is given below. Kindly download and make it useful.

[pdf-embedder url=”https://csknowledgeopener.com/wp-content/uploads/2022/12/XI-CS-CA-Half-Yearly-Exam-Important-Program-Question-2022-2023.pdf” title=”XI – CS & CA Half Yearly Exam Important Program Question 2022-2023″]

Tags:

Question Bank

Share Article

Follow Me Written By

Baskaran J

Other Articles

Previous

12th Computer Applications Half yearly exam Program Question pdf 2022-2023

Next

12th Computer Science public exam important question pdf 2022-2023

Next
December 27, 2022

12th Computer Science public exam important question pdf 2022-2023

Previous
December 22, 2022

12th Computer Applications Half yearly exam Program Question pdf 2022-2023

No Comment! Be the first one.

Leave a Reply Cancel reply

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

two × 2 =

Related Posts

11th CS Board Exam Answer Key Discussion 2024-2025

Baskaran J
March 14, 2025

11th Computer Science Practice One marks question 2024-2025

Baskaran J
February 3, 2025

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

Baskaran J
January 17, 2025

11th computer science English medium new study material 2024-2025

Baskaran J
November 1, 2024

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.