Coding club Summit Online Quiz

Coding club Summit Online Quiz

University

15 Qs

quiz-placeholder

Similar activities

PHP First Internal Practical Viva

PHP First Internal Practical Viva

University

20 Qs

Kuis Freeze Panes di Excel

Kuis Freeze Panes di Excel

7th Grade - University

15 Qs

Terminos ITGS x

Terminos ITGS x

8th Grade - University

20 Qs

Ulangan harian 1 Algoritma dan Pemrograman

Ulangan harian 1 Algoritma dan Pemrograman

12th Grade - University

13 Qs

PHP QUIZ

PHP QUIZ

University

14 Qs

Repaso U1

Repaso U1

University

16 Qs

IT (data, viruses and more)

IT (data, viruses and more)

8th Grade - Professional Development

20 Qs

CSE205-DCN-QUIZ-UNIT-5

CSE205-DCN-QUIZ-UNIT-5

University

10 Qs

Coding club Summit Online Quiz

Coding club Summit Online Quiz

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Amburu Kumar

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In C, what is the purpose of the restrict keyword

Specifies that a pointer is the only pointer to the data

Allocates memory dynamically

Declares a variable as a constant

Specifies that a variable cannot be modified

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the primary use of the setjmp and longjmp functions in C

Memory allocation

Exception handling

Dynamic linking

File I/O operations

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following C code?

 

    #include <stdio.h>

    void main()

    {

        int a[3] = {1, 2, 3};

        int *p = a;

        printf("%p\t%p", p, a);

    }

Same address is printed

Different address is printed

Compile time error

Nothing

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code snippet?

#include <stdio.h>

int main() {

    int a, b = 5;

    a = b + NULL;

    printf("%d", a);

    return 0;

}

Compilation Error      

Runtime Error       

Logical Error        

None of these

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code snippet?

#include <stdio.h>

int main() {

    int x = 10;

    int *ptr = &x;

    printf("%d", *ptr);

    return 0;

}

Memory address of x

10

Compilation error

None of these

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following C code?

void main() {

  char *p;

  p = "Hello";

  printf("%c\n", &p);

}

Hello

E

Some address will be printed

None of these

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following C code?

#include <stdio.h>

    int main()

    {

        int i = 97, *p = &i;

        ABC(&i);

        printf("%d ", *p);

    }

    void ABC(int *p)

    {

        int j = 2;

        p = &j;

        printf("%d ", *p);

    }

2   97

2   2

Compile time error

Segmentation fault/code crash

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?