Quest 1
Quest 1
BIN - DEC
11.Convert the binary number 1101 to decimal. [1101 in decimal is 13]
12.What is the decimal representation of the binary number 10101? [10101 in
decimal is 21]
13.Convert the binary number 111001 to decimal. [111001 in decimal is 57]
14.Find the decimal equivalent of the binary number 10010. [10010 in decimal
is 18]
15.Convert the binary number 110110 to decimal. [110110 in decimal is 54]
16.What is the decimal representation of the binary number 11111? [11111 in
decimal is 31]
17.Convert the binary number 1010101 to decimal. [1010101 in decimal is 85]
18.Find the decimal equivalent of the binary number 110011. [110011 in
decimal is 51]
19.Convert the binary number 1001110 to decimal. [1001110 in decimal is 78]
20.What is the decimal representation of the binary number 111000? [111000 in
decimal is 56]
PROGRAMMING
21.What is the purpose of programming languages?
22.Explain the difference between high-level and low-level programming
languages.
23.What is a variable in programming, and how is it used?
24.Describe the concept of control structures in programming. Give examples
of control structures.
25.What is the difference between procedural programming and object-oriented
programming?
26.Explain what a function or method is in programming and why they are
useful.
27.What is a loop in programming, and how does it work? Give examples of
different types of loops.
28.What is the role of comments in code, and why are they important?
29.Define debugging in programming and explain its significance.
30.Describe the difference between compilation and interpretation in
programming languages.
C++
31.Describe the syntax for declaring and initializing variables in C++.
32.Explain the difference between pass by value and pass by reference in
function parameters, using syntax examples.
33.How are arrays declared and accessed in C++? Provide syntax examples.
34.Discuss the role of the scope resolution operator (::) in C++ and provide
examples of its usage.
35.Explain the difference between pre-increment (++i) and post-increment (i+
+) operators in C++.
36.Describe the syntax for defining and invoking a function in C++. Include
examples of function prototypes and definitions.
37.Discuss the usage of the ternary conditional operator (?:) in C++ and provide
an example.
38.Explain the concept of operator overloading in C++. Provide examples of
overloading arithmetic and comparison operators.
39.Describe the syntax for declaring and defining a class member function in
C++.
40.Discuss the usage of the new and delete operators in dynamic memory
allocation in C++. Provide examples of their usage.
TRUTH TABLE
41.Create a truth table for the logical expression: 𝐴∧𝐵.
42.Construct a truth table for the logical expression: ¬(𝑃∨𝑄)
43.Develop a truth table for the logical expression: (𝑃∧𝑄)∨(¬𝑃∧𝑅)
44.Formulate a truth table for the logical expression: 𝑃⇒𝑄
45.Generate a truth table for the logical expression: (𝑃∧𝑄)⇒(𝑃∨𝑄)
PERMUTATIONS
46.In how many ways can you arrange the letters of the word "APPLE"?
47.A dance troupe consists of 6 dancers. In how many different orders can they
line up for a performance?
48.How many different 4-digit numbers can be formed using the digits 1, 2, 3,
and 4 without repetition?
49.A password consists of 5 characters, where each character is a letter from the
English alphabet. How many different passwords are possible if repetition is
allowed?
50.In a group of 8 people, how many different ways can you select a president,
vice president, and treasurer?
COMBINATIONS
51.In how many ways can you choose 3 different colors from a set of 5 colors?
52.A committee of 4 members is to be selected from a group of 10 people. How
many different committees can be formed?
53.How many different 5-card hands can be dealt from a standard deck of 52
cards?
54.A password consists of 8 characters, where each character is a digit from 0
to 9. How many different passwords are possible?
55.In how many ways can you select 2 books to read from a shelf containing 10
different books?