Si Session 2/8/23

Si Session 2/8/23

University

7 Qs

quiz-placeholder

Similar activities

Java Lesson 4

Java Lesson 4

5th Grade - University

10 Qs

Array

Array

University

7 Qs

Round 3

Round 3

University

11 Qs

CSCI 1301 - Chapter 5 A

CSCI 1301 - Chapter 5 A

University

8 Qs

The Ultimate C++ Quiz

The Ultimate C++ Quiz

5th Grade - Professional Development

7 Qs

ENT116 Quiz 5%

ENT116 Quiz 5%

University - Professional Development

11 Qs

MINDZONE-2.3

MINDZONE-2.3

University

10 Qs

 coding comptition

coding comptition

University

10 Qs

Si Session 2/8/23

Si Session 2/8/23

Assessment

Quiz

Other

University

Hard

Created by

Fernando Hernandez

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Will output 10

Will output 9

Will output 11

I is out of scope

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will output?

x = 1

x=25

x=26

memory address of x

3.

MULTIPLE SELECT QUESTION

1 min • 1 pt

How can we properly declare multiple pointers?

int *myPtr1, *myPtr2;

You cant, must be one at at time

int* myPtr;

int *myPtr2

int* myPointer,myPointer2

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will be the output?

int y=9;   

int yPtr;   

yPtr = &y; 

      cout<<" y = " << y <<endl;   

cout<<" &y = "<< &y  <<" \n ";   

cout<<"yPtr = "<< yPtr <<" \n ";   

cout<< "yPtr = "<<*yPtr<<" \n ";

9

9

0x7fff9942bde4   

0x7fff9942bde4   

9

0x7fff9942bde4   

9

0x7fff9942bde4   

9

9

9

9

9

0x7fff9942bde4   

0x7fff9942bde4   

9

5.

OPEN ENDED QUESTION

3 mins • 1 pt

Media Image

What is the first function called? What is it doing?

Evaluate responses using AI:

OFF

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

int a= 12;

int b= 8;

swapFunc(a,b);

cout<< a << " " << b<<endl;

What will be the output?

12 8

8 12

8 8

12 12

7.

FILL IN THE BLANK QUESTION

3 mins • 1 pt

What will cause the loop to skip all odd numbers

for(int i=0;i<50;i++){

if(i%2!=0){//}

cout<<i<<endl;

}