Trivia(Explore in depth)

Trivia(Explore in depth)

University

40 Qs

quiz-placeholder

Similar activities

AP Java Exam

AP Java Exam

8th Grade - University

35 Qs

Elements of a C# program

Elements of a C# program

University

40 Qs

Python Basics till Logical Operators

Python Basics till Logical Operators

University

35 Qs

Operators in Python

Operators in Python

University

43 Qs

standard input output

standard input output

University

41 Qs

I/O and Operators in C

I/O and Operators in C

University

43 Qs

AP CS A unit 1

AP CS A unit 1

11th Grade - University

36 Qs

TECHNICAL QUIZ

TECHNICAL QUIZ

University

45 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?