Trivia(Explore in depth)

Trivia(Explore in depth)

University

40 Qs

quiz-placeholder

Similar activities

Final Exam - BECC0302

Final Exam - BECC0302

University

35 Qs

Introduction to Python Programming (BPCLK205B)

Introduction to Python Programming (BPCLK205B)

University

40 Qs

Latihan 1 PBO XI RPL 2

Latihan 1 PBO XI RPL 2

10th Grade - University

40 Qs

PROGRAMMING Reviewer

PROGRAMMING Reviewer

University

38 Qs

Arrays and ArryList

Arrays and ArryList

University

40 Qs

CC102 - Quiz 2 Finals

CC102 - Quiz 2 Finals

12th Grade - University

37 Qs

Exception in Java

Exception in Java

University

41 Qs

Test

Test

University

35 Qs

Trivia(Explore in depth)

Trivia(Explore in depth)

Assessment

Quiz

Computers

University

Hard

Created by

Pranavika BN

Used 1+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the correct syntax to declare an integer variable in c?

int x;

integer x;

x as int;

int = x;

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which function is used to print output in c?

print()

cout <<

printf()

cin<<

Answer explanation

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following code?

2.5

2

3

Error

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the correct syntax to declare a pointer to an integer in c?

int *ptr;

int ptr*;

int &ptr;

pointer int *ptr;

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following code?

True

False

May be True

May be False

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is used to dynamically allocate memory in c?

alloc()

new

malloc()

create()

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of this code?

21

22

20

Undefined Behavior

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?