Reharshal For Coding

Quiz
•
Computers
•
University
•
Hard
BENDI MANIDEEP
Used 1+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
1) What is the range of values that can be stored by int datatype in C?
-(2^31) to (2^31) - 1
-256 to 255
-(2^63) to (2^63)-1
O to (2^31) - 1
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
2) How is an array initialized in C language?
int a[3] = {1, 2, 3};
int a = {1, 2, 3};
int a[] = new int[3]
int a(3) = [1, 2, 3];
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
3) What is the output of the following code snippet?
#include <stdio.h>
int main()
{ int a[] = {1, 2, 3, 4};
int sum = 0;
for(int i = 0; i < 4; i++)
{
sum += a[i];
}
printf("%d", sum);
return 0;
}
1
4
20
10
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
4) How are String represented in memory in C?
An array of characters.
The object of some class.
Same as other primitive data types.
LinkedList of characters.
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
5) How is the 3rd element in an array accessed based on pointer notation?
*a +3
*(a + 3)
**(a + 3)
&(a + 3)
Similar Resources on Wayground
9 questions
Trắc nghiệm kiến thức Java Core - Phần II

Quiz
•
University
10 questions
PHP

Quiz
•
University
10 questions
TIU Quiz-10

Quiz
•
University
10 questions
CSC126_Chapter4_Part1

Quiz
•
University
10 questions
ข้อสอบย่อยวิชา จาวาเว็บ ครั้งที่ 6

Quiz
•
University
10 questions
Programming in C

Quiz
•
University
10 questions
K1 - Pemrograman Web

Quiz
•
University
10 questions
Expression in C Programming

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University