Trivia(Explore in depth)

Trivia(Explore in depth)

University

40 Qs

quiz-placeholder

Similar activities

Technical Training Test for III BTech - VCE - CSE

Technical Training Test for III BTech - VCE - CSE

University

45 Qs

Java Control Structures

Java Control Structures

11th Grade - Professional Development

39 Qs

Mind Scribble On C Lang

Mind Scribble On C Lang

University

40 Qs

Python Operators

Python Operators

University

35 Qs

OOPS quiz-1

OOPS quiz-1

University

35 Qs

Loop Control Statement in C

Loop Control Statement in C

University

41 Qs

9th Grade - IT Programming - 2nd Cycle Exam

9th Grade - IT Programming - 2nd Cycle Exam

9th Grade - University

40 Qs

Test 2

Test 2

University

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

Discover more resources for Computers