Beyond  the classroom

Beyond the classroom

University

10 Qs

quiz-placeholder

Similar activities

Pengantar Coding

Pengantar Coding

University

10 Qs

Critical thinking

Critical thinking

University

11 Qs

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

Jaringan Dasar

Jaringan Dasar

University

10 Qs

HTML DOJO 1

HTML DOJO 1

University

10 Qs

BIM1014 Quiz 2

BIM1014 Quiz 2

KG - University

15 Qs

Chapter 3 Exploring Linux Filesystems

Chapter 3 Exploring Linux Filesystems

11th Grade - University

10 Qs

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

6th Grade - University

14 Qs

Beyond  the classroom

Beyond the classroom

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Prabhakar Mishra

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

#include <stdio.h>

int main() {

int x = 10;

int ptr = &x;

printf("%d", ptr);

return 0;

}

10

Garbage Value

Error

Depends on the compiler

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include <stdio.h>

int main() {

int x = 5;

if (x = 5) printf("Hello");

else printf("World");

return 0;

}

Hello

World

Compile-time error

Runtime error

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

struct Example {

char c;

int i;

double d;

};

9 bytes

10 bytes

12 bytes

13 bytes

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

#include <stdio.h>

int main() {

printf("%d", sizeof(float));

return 0;

}

2

4

8

Depends on the system

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Explain the significance of #include <stdlib.h> in a C program.

It includes standard input/output functions

It includes functions for dynamic memory allocation

It includes functions for string manipulation

It includes functions for mathematical operations

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the void keyword in C?

To specify that a function takes no arguments

To specify that a function returns no value

To declare a pointer

To indicate an empty statement

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is not a valid C keyword?

switch

default

case

function

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Computers