100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Data Structures II - CP264 QUIZ (Q & A)

Rating
-
Sold
-
Pages
29
Grade
A+
Uploaded on
30-08-2022
Written in
2020/2021

CP264 Quiz Questions and Answers

Institution
Course










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Course

Document information

Uploaded on
August 30, 2022
Number of pages
29
Written in
2020/2021
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

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",
$8.49
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
dg22
1.0
(1)

Get to know the seller

Seller avatar
dg22 Wilfrid Laurier University
Follow You need to be logged in order to follow users or courses
Sold
6
Member since
3 year
Number of followers
2
Documents
31
Last sold
1 day ago

1.0

1 reviews

5
0
4
0
3
0
2
0
1
1

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions