100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Data Structures II - CP264 QUIZ (Q & A) CA$12.20   Add to cart

Exam (elaborations)

Data Structures II - CP264 QUIZ (Q & A)

 10 views  0 purchase

CP264 Quiz Questions and Answers

Preview 3 out of 29  pages

  • August 30, 2022
  • 29
  • 2020/2021
  • Exam (elaborations)
  • Questions & answers
All documents for this subject (1)
avatar-seller
dg22
var myQuestions = [
{
"question": "Which of the following operations is not supported by C?",
"answers": {
"A": "float division",
"B": "float multiplication",
"C": "float addition",
"D": "float power"
},
"correctAnswer": "D"
},

{
"question": "Given `int a = 3 + 21;` at which time the addition computing will be done?",
"answers": {
"A": "Compiling time",
"B": "Execution time"
},
"correctAnswer": "A"
},

{
"question": "Given `int a = 3; int b = 21; int c = a+b;` the computation of a+b will be done at which time?",
"answers": {
"A": "Compiling time",
"B": "Execution time"
},
"correctAnswer": "B"
},

{
"question": "Given: `int a = 3.5 + 2.5;` the value of a will be",
"answers": {
"A": "4",
"B": "5",
"C": "6"
},
"correctAnswer": "C"
},

{
"question": "Given: `int a = 3.3 + 2.5;` the value of a will be",
"answers": {
"A": "4",
"B": "5",
"C": "6",
"D": "5.8"
},
"correctAnswer": "B"
},

{
"question": "Which of the following can lead to a wrong result of multiplication of two int type values?",
"answers": {

,"A": "underflow",
"B": "overflow",
"C": "casting",
"D": "all of these"
},
"correctAnswer": "B"
},

{
"question": "Given `int a = 3 || 2;` what is the value of a?",
"answers": {
"A": "1",
"B": "2",
"C": "3",
"D": "5"
},
"correctAnswer": "A"
},

{
"question": "Given `int a = 3 | 2;` what is the value of a?",
"answers": {
"A": "1",
"B": "2",
"C": "3",
"D": "5"
},
"correctAnswer": "C"
},

{
"question": "Given `int a = 3 ^ 2;` what is the value of a?",
"answers": {
"A": "9",
"B": "3",
"C": "2",
"D": "1"
},
"correctAnswer": "D"
},

{
"question": "Given `int a = 3 << 2;` what is the value of a?",
"answers": {
"A": "3",
"B": "6",
"C": "12",
"D": "24"
},
"correctAnswer": "C"
},

{
"question": "Given `int a = 3, b=++a;` what is the value of b?",

, "answers": {
"A": "3",
"B": "4",
"C": "2",
"D": "1"
},
"correctAnswer": "B"
},

{
"question": "Which of the following pair of statements is not equivalent?",
"answers": {
"A": "b = a++; <=> b = a; a=a+1;",
"B": "b = a++; <=> b = a+1;",
"C": "b = ++a; <=> a=a+1; b = a;",
"D": "b = ++a; <=> b = a+1; a=a+1;"
},
"correctAnswer": "B"
}


];
var myQuestions = [
{
"question": "The main function in a program defines the starting point of flow control.",
"answers": {
"A": "True",
"B": "False"
},
"correctAnswer": "A"
},

{
"question": "Calling a function will transfer the flow control to the function block.",
"answers": {
"A": "True",
"B": "False"
},
"correctAnswer": "A"
},

{
"question": "Passing by value will make a copy of the value to the function call stack.",
"answers": {
"A": "True",
"B": "False"
},
"correctAnswer": "A"
},

{
"question": "Passing by reference will make a copy of the address of a variable to function call stack.",
"answers": {
"A": "True",

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller dg22. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for CA$12.20. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

79650 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
CA$12.20
  • (0)
  Add to cart