III Part 3

III Part 3

University

10 Qs

quiz-placeholder

Similar activities

DSA- Activity 1

DSA- Activity 1

University

10 Qs

Dasar Pemrograman PSDKU LUMAJANG

Dasar Pemrograman PSDKU LUMAJANG

University

10 Qs

Java Reserved Words

Java Reserved Words

University

10 Qs

Basic Circuit & Kirchhoff Law

Basic Circuit & Kirchhoff Law

University

9 Qs

PR EidP Quiz Seminar 3

PR EidP Quiz Seminar 3

University

6 Qs

JavaScript - WAC (Day 2)

JavaScript - WAC (Day 2)

10th Grade - University

8 Qs

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

University

12 Qs

C# dolgozat

C# dolgozat

11th Grade - University

15 Qs

III Part 3

III Part 3

Assessment

Quiz

Education

University

Hard

Created by

ARAVINTH B

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code? int main() { int a = 5; printf("%d", a++); return 0; }

5

6

Compiler error

Undefined behavior

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following Python code? a = {1: 'A', 2: 'B'} print(a[1])

B

1

A

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid C storage class?

auto

static

register

mutable

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the continue statement do in a loop?

Stops the loop entirely

Skips the current iteration and moves to the next one

Jumps to the end of the loop

Exits the loop

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used for dynamic memory allocation in C?

malloc()

calloc()

realloc()

All of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following C code? int main() { int a = 10; int *p = &a; printf("%d", *p); return 0; }

10

Address of a

Undefined behavior

Compiler error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to comment multiple lines in C?

//

/* /

/* */

#

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?