Skip to main content

Posts

Understanding Sorting_ MCQ_XI(C.B.S.C)_Computer Science (Code 083)

  Multiple choice Questions:  1. Arranging elements of an array or a list in an order is known as ________.    (a) Searching    (b) Sorting    (c) Merging    (d) Arranging Arranging elements of an array or a list in an order is known as Sorting. Answer: (b) Sorting 2. Which of the following are sorting algorithms?    (a) Insertion    (b) BFS    (c) round robin    (d) Bubble Insertion and Bubble are both standard sorting algorithms. Since only one option can be chosen and both (a) and (d) are correct, and they appear in separate options, there might be an error in the question structure or a missing option that includes both. However, since the question later specifically asks about Bubble and Insertion sort, we will assume the intended answers are those that are sorting algorithms. Answer: Both (a) Insertion and (d) Bubble are correct sorting algorithms. 3.How many passes does an insertion sort alg...
Recent posts

SAMPLE QUESTION PAPER XI(CBSE)- FLOW OF CONTROL

Section A: Multiple Choice Questions (1 Mark Each) (Total Marks: 5) 1.Which of the following is an entry-controlled loop in Python?  a) for loop b) while loop c) do-while loop d) Both a and b 2.What is the output of the following code snippet? i = 1 while i < 5:     print(i, end=' ')     i += 1 a) 1 2 3 4 b) 1 2 3 4 5 c) 1 2 3 d) 1 2 3 4 5 3.Which statement is used to exit from a loop prematurely? a) continue b) pass c) break d) exit 4.In a Python if-elif-else ladder, how many elif blocks can there be?  a) One b) Zero or one c) Zero or more d) Only two 5.What will be the value of x after the following code is executed? x = 10 if x > 5:     x = x + 5 elif x < 15:     x = x + 10 else:     x = x - 5 a) 15 b) 20 c) 5 d) 10 Section B: Short Answer Questions (2 Marks Each) (Total Marks: 10) 1.Differentiate between the break and continue statements in Python with a suitable example for each. 2.Explain the purpose of the pas...

Student Award List using IF function with Scatter and Rader Diagram (Print) {Functions should be written with syntax and variables with cell name, Provide conditions also}

Student Award List Using the IF Function in Excel To create a student award list, you can use the IF function to evaluate student scores and assign a corresponding award or grade. A nested IF statement is used when there are multiple conditions to check. Problem: We have a list of students with their final scores. We want to assign an award based on the following conditions:  ▪️Scores of 90 or more: " Excellent "  ▪️Scores of 80 to 89: " Good "  ▪️ Scores of 70 to 79: " Fair "  ▪️ Scores below 70: " Needs Improvement " Excel Setup: Let's assume your data is organized as follows, with student names in column A and scores in column B . We will place the award list in column C . The IF Function Syntax: =IF(logical_test, value_if_true, value_if_false)  ▪️logical_test: The condition to check (e.g., B2 >= 90).  ▪️value_if_true: What to return if the condition is TRUE.  ▪️ value_if_false: What to return if the condition is FALSE. Nest...

Business Data Management এর "Expert System" এর সম্পর্কে ধারণা

 ◾ Expert System কী?  এক্সপার্ট সিস্টেম (Expert System) হলো একটি কম্পিউটার-ভিত্তিক পদ্ধতি যা নির্দিষ্ট ক্ষেত্রের মানব বিশেষজ্ঞদের জ্ঞান ও অভিজ্ঞতা ধারণ এবং উপস্থাপন করে। এটি একটি নলেজ বেস (Knowledge Base) ব্যবহার করে, যেখানে বিভিন্ন নিয়ম (rules) এবং তথ্য (facts) থাকে। এর সাথে একটি ইনফারেন্স ইঞ্জিন (Inference Engine) যুক্ত থাকে, যা এই নলেজ বেসের উপর যুক্তি প্রয়োগ করে সিদ্ধান্ত গ্রহণ ও পরামর্শ দেয়। এক্সপার্ট সিস্টেমগুলো মূলত জটিল সমস্যা সমাধান, সুপারিশ প্রদান এবং সিদ্ধান্ত গ্রহণের প্রক্রিয়ায় সহায়তা করার জন্য ডিজাইন করা হয়েছে। ◾ এক্সপার্ট সিস্টেমের প্রধান উপাদানগুলো হলো: ১. নলেজ বেস (Knowledge Base): এটি এক্সপার্ট সিস্টেমের মূল অংশ, যা নির্দিষ্ট ক্ষেত্রের সমস্ত জ্ঞান ধারণ করে। এতে মানব বিশেষজ্ঞদের দেওয়া তথ্য (facts), ডেটা, এবং নিয়ম (rules) থাকে। এটি সিস্টেমের দীর্ঘমেয়াদী মেমরি (long-term memory) হিসেবে কাজ করে। ২. ইনফারেন্স ইঞ্জিন (Inference Engine) এই উপাদানটি এক্সপার্ট সিস্টেমের মস্তিষ্কের মতো কাজ করে। এটি নলেজ বেসের জ্ঞানকে ব্যবহার করে সমস্যার সমাধান করে। এটি একটি য...

Python ফ্লো অফ কন্ট্রোলের Practical Programming

1. Program that takes a number and checks wheather the given number is odd or even. OUTPUT: 2. Program to accept three integers and print the largest of three. Make use of only if statement. OUTPUT:

পাইথন এ লিষ্ট এর ডেটা কীভাবে একসেস করবো:( How to Access data from Python List)

ডেটা গুলো অ্যাক্সেস করার প্রধান উপায় হল ইনডেক্সিং (indexing) । প্রতিটি আইটেম তার অবস্থানের উপর ভিত্তি করে একটি নির্দিষ্ট ইনডেক্স নাম্বার পায়। এই ইনডেক্স নাম্বার ব্যবহার করে আপনি লিস্টের যে কোন আইটেম এক্সেস পরিবর্তন বা ডিলিট করতে পারেন।  ▪️ ইনডেক্সিং এর মাধ্যমে কিভাবে আমরা ডেটা এক্সেস করি:   লিস্টের প্রথম আইটেমের ইনডেক্স হয় 0। এরপরের আইটেমের ইনডেক্স হয় 1, তারপর 2, এবং এভাবে চলতে থাকে। ইনডেক্স নম্বর স্কয়ার ব্র্যাকেটের [ ] মাধ্যমে ব্যবহার করতে হয়।  ১)  পজিটিভ ইনডেক্সিং: বৃষ্টির শুরু থেকে আইটেম এক্সেস করার জন্য পজিটিভ ইনডেক্স ব্যবহার করা হয়। এটি 0 থেকে শুরু হয়।  উদাহরণ:  my_list=["apple","banana","cherry"'"orange"] #প্রথম আইটেম অ্যাক্সেস করা  print(my_list[0]) #আউটপুট: apple  #লিস্ট এর দ্বিতীয় আইটেম এক্সেস করা print(my_list[1]) #আউটপুট: banana  ২) নেগেটিভ ইনডেক্সিং:  লিস্টের শেষ থেকে আইটেম এক্সেস করবার জন্য নেগেটিভ ইনডেক্স ব্যবহার করা হয়। শেষ আইটেমের ইনডেক্স হয় -1, শেষের আগেরটি -2, এবং এভাবে চলতে থাকে।  উদাহরণ: my_list=["appl...

Python List Manipulation( পাইথন এর লিস্ট)

 ▪️ ধারণা: ধরুন আপনি কোথাও বাজারে যাচ্ছেন, এবং কিছু জিনিস কেনাকাটা করবার একটি তালিকা তৈরি করতে চাইছেন। অথবা ধরুন, কোন বিদ্যালয় কোন একটি পরীক্ষায় শিক্ষার্থীদের প্রাপ্ত নম্বর গুলি শিক্ষক একটি লিস্টে সংরক্ষণ করছে। অথবা আপনার কাছে থাকা বইগুলির একটি লিস্ট আপনি বানাচ্ছেন। আবার যে বইগুলি পড়া শেষ হয়ে গেছে সেগুলি লিস্ট থেকে বাদ দিয়ে দিচ্ছেন।            আমরা বাস্তবে এরকম অনেক ধরনের লিস্ট এর সাথে প্রতিদিন নিযুক্ত থাকি। কম্পিউটারে পাইথন প্রোগ্রামিং এর মাধ্যমে আমরা এই ধরনের লিস্ট বানাতে পারি।  ▪️ সংজ্ঞা : পাইথন লিস্ট হলো পাইথনের একটি ডেটা স্ট্রাকচার যা একাধিক আইটেম বা ডেটা একক ভেরিয়েবলে সংরক্ষণ করতে ব্যবহৃত হয়।  ▪️ Python এ List কিভাবে তৈরী করবো: পাইথনে লিস্ট তৈরি করা খুব সহজ। এটি ডাটা সংরক্ষণ এর একটি গুরুত্বপূর্ণ পদ্ধতি, যা বিভিন্ন ধরনের ডেটা আইটেমকে একটি নির্দিষ্টক্রমে রাখতে সাহায্য করে।        পাইথনে লিস্ট তৈরি করবার সবচেয়ে সাধারণ এবং সহজ উপায় হল স্কোয়ার ব্র্যাকেট [ ] ব্যবহার করা। এর মধ্যে আপনি কমা (,) দিয়ে আলাদা করে যে ক...