Pre-Assessment- C,C++, Data Structure & SQL_10th June 24

Pre-Assessment- C,C++, Data Structure & SQL_10th June 24

Professional Development

20 Qs

quiz-placeholder

Similar activities

CPA MS-Office Hotkeys Quiz

CPA MS-Office Hotkeys Quiz

8th Grade - Professional Development

21 Qs

2PM Pub Quiz Sample Questions

2PM Pub Quiz Sample Questions

Professional Development

15 Qs

Silver Label Course 301-302

Silver Label Course 301-302

Professional Development

15 Qs

General knowledge Quiz 1

General knowledge Quiz 1

Professional Development

20 Qs

Cycle 1 - Session 1 Quiz - Problem solving and critiquing

Cycle 1 - Session 1 Quiz - Problem solving and critiquing

Professional Development

17 Qs

E-ARF

E-ARF

Professional Development

15 Qs

FOL. UF1 AEA2. COWORKING.

FOL. UF1 AEA2. COWORKING.

Professional Development

15 Qs

PTY 104 Piagets Theory of Cognitive Development

PTY 104 Piagets Theory of Cognitive Development

University - Professional Development

20 Qs

Pre-Assessment- C,C++, Data Structure & SQL_10th June 24

Pre-Assessment- C,C++, Data Structure & SQL_10th June 24

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Medium

Created by

KVCH CORPORATE

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax to include a header file in a C program?

#header <stdio.h>

#include stdio.h

#include <stdio.h>

#include "stdio.h"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is correct about a do-while loop in C?

The loop condition is checked before the loop is executed.

The loop condition is checked after the loop is executed.

It is similar to a for loop.

It can only be used to iterate through arrays.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly declares and initializes an array of integers in C?

int arr = {1, 2, 3};

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

int arr[3] = 1, 2, 3;

int arr(3) = {1, 2, 3};

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly defines a structure in C?

struct { int a; float b; }

struct myStruct { int a; float b; };

structure myStruct { int a; float b; }

struct { int a; float b; } myStruct;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct mode to open a file for reading and writing in C, where the file is created if it does not exist?

"r+"

"w+"

"a+"

"rw"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following functions is used to allocate memory dynamically in C?

alloc()

malloc()

calloc()

memalloc()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to free dynamically allocated memory in C?

release(ptr);

free(ptr);

delete(ptr);

dealloc(ptr);

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

Already have an account?