PCDS Lab Quiz

PCDS Lab Quiz

University

5 Qs

quiz-placeholder

Similar activities

Pre Test ComputerProgramming

Pre Test ComputerProgramming

University

10 Qs

Excel - 1

Excel - 1

KG - University

10 Qs

Algo 1

Algo 1

University

10 Qs

C++ : Assignment 6

C++ : Assignment 6

University

10 Qs

Foundation In Digital Media

Foundation In Digital Media

University

10 Qs

Funciones y Procedimientos Almacenados SQL

Funciones y Procedimientos Almacenados SQL

University

10 Qs

Seatwork for Data Storage

Seatwork for Data Storage

University

10 Qs

Kuis Dasinkel Minggu 6

Kuis Dasinkel Minggu 6

University

10 Qs

PCDS Lab Quiz

PCDS Lab Quiz

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Debi 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...

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

char txt [20] = “Hello world!\0”;

How many bytes are allocated by the definition above?

11 bytes

12 bytes

13 bytes

20 bytes

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which one of the following statements allocates enough space to hold an array of 10 integers that are initialized to 0?

int ptr = (int ) malloc(10, sizeof(int));

int ptr = (int ) calloc(10, sizeof(int));

int ptr = (int ) malloc(10*sizeof(int));

int ptr = (int ) alloc(10*sizeof(int));

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be output if you will execute following c code?

20

11

12

22

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the given code?

c questions

c (null)

(null) (null)

Compilation error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the given code?

4

24

25

Infinite loop