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

Quiz
•
Professional Development
•
Professional Development
•
Medium
KVCH CORPORATE
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
18 questions
Тесть по PHP #1

Quiz
•
Professional Development
15 questions
C Programming Tutorial 1 (Chapter 2)

Quiz
•
Professional Development
15 questions
C Operators

Quiz
•
University - Professi...
20 questions
CPR_Quiz_Arrays and strings

Quiz
•
Professional Development
15 questions
CPR_Quiz_Chapter4_function

Quiz
•
Professional Development
25 questions
PSUEDOCODE 2 CAPGEMINI

Quiz
•
Professional Development
20 questions
Aptitude

Quiz
•
Professional Development
15 questions
SQL Statements and Queries

Quiz
•
Professional Development
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade