CUET Computer Science MCQs Chapter 6 Understanding Data

Refer to CUET Computer Science MCQs Chapter 6 Understanding Data provided below available for download in Pdf. The MCQ Questions for UG Computer Science with answers are aligned as per the latest syllabus and exam pattern suggested by CUET, NCERT and KVS. Multiple Choice Questions for Chapter 6 Understanding Data are an important part of exams for UG Computer Science and if practiced properly can help you to improve your understanding and get higher marks. Refer to more Chapter-wise MCQs for CUET UG Computer Science and also download more latest study material for all subjects

MCQ for UG Computer Science Chapter 6 Understanding Data

UG Computer Science students should refer to the following multiple-choice questions with answers for Chapter 6 Understanding Data in UG.

Chapter 6 Understanding Data MCQ Questions UG Computer Science with Answers

MCQ Questions CUET C Data Types

Question. Predict the output of following program. Assume that the numbers are stored in 2\'s complement form.
#include<stdio.h>
int main()
{
unsigned int x = -1;
int y = ~0;
if (x == y)
printf(\"same\");
else
printf(\"not same\");
return 0;
}
a) same
b) not same

Answer : A

Question. Predict the output of following C program
#include <stdio.h>
int main()
{
char a = 012;
printf(\"%d\", a);
return 0;
}
a) Compiler Error
b) 12
c) 10
d) Empty

Answer : C

Question. Output of following program? 
#include<stdio.h>
int main()
{
float x = 0.1;
if ( x == 0.1 )
printf(\"IF\");
else if (x == 0.1f)
printf(\"ELSE IF\");
else
printf(\"ELSE\");
}
a) ELSE IF
b) IF
c) ELSE

Answer : A

Question. In a C program, following variables are defined:
float x = 2.17;
double y = 2.17;
long double z = 2.17;
Which of the following is correct way for printing these variables via printf.
a) printf("%f %lf %Lf",x,y,z);
b) printf(“%f %f %f”,x,y,z);
c) printf("%f %ff %fff",x,y,z);
d) printf("%f %lf %llf",x,y,z);

Answer : A

Question. Which of the following is not a valid declaration in C?
1. short int x;
2. signed short x;
3. short x;
4. unsigned short x;
a) 3 and 4
b) 2
c) 1
d) All are valid

Answer : D

Question. In a C program snippet, followings are used for definition of Integer variables?
signed s;
unsigned u;
long l;
long long ll;
Pick the best statement for these.
a) All of the above variable definitions are incorrect because basic data type int is missing.
b) All of the above variable definitions are correct because int is implicitly assumed in all of these.
c) Only “long l;” and “long long ll;” are valid definitions of variables.
d) Only “unsigned u;” is valid definition of variable.

Answer : B

Question. Assume that the size of char is 1 byte and negatives are stored in 2\'s complement form
#include<stdio.h>
int main()
{
char c = 125;
c = c+10;
printf(\"%d\", c);
return 0;
}
a) 135
b) +INF
c) -121
d) -8

Answer : C

Question. Suppose a C program has floating constant 1.414, what\'s the best way to convert this as "float" data type?
a) (float)1.414
b) float(1.414)
c) 1.414f or 1.414F
d) 1.414 itself of "float" data type i.e. nothing else required.

Answer : C

Question. Predict the output
#include <stdio.h>
int main()
{
float c = 5.0;
printf (\"Temperature in Fahrenheit is %.2f\", (9/5)*c + 32);
return 0;
}
a) Temperature in Fahrenheit is 41.00
b) Temperature in Fahrenheit is 37.00
c) Temperature in Fahrenheit is 0.00
d) Compiler Error

Answer : B

Question. #include <stdio.h>
int main()
{
if (sizeof(int) > -1)
printf(\"Yes\");
else
printf(\"No\");
return 0;
}
a) Yes
b) No
c) Compiler Error
d) Runtime Error

Answer : B

Question. “typedef” in C basically works as an alias. Which of the following is correct for “typedef”?
a) typedef can be used to alias compound data types such as struct and union.
b) typedef can be used to alias both compound data types and pointer to these compound types.
c) typedef can be used to alias a function pointer.
d) typedef can be used to alias an array.
e) All of the above.

Answer : D

Question. Output?
int main()
{
void *vptr, v;
v = 0;
vptr = &v;
printf(\"%v\", *vptr);
getchar();
return 0;
}
a) 0
b) Compiler Error
c) Garbage Value

Answer : B

Question. Suppose n and p are unsigned int variables in a C program. We wish to set p to nC3. If n is large, which of the following statements is most likely to set p correctly?
a) p = n * (n-1) * (n-2) / 6;
b) p = n * (n-1) / 2 * (n-2) / 3;
c) p = n * (n-1) / 3 * (n-2) / 2;
d) p = n * (n-1) * (n-2) / 6.0;

Answer : B

MCQ Questions CUET Java Data Types

Question. class Main {
public static void main(String args[]) {
int t;
System.out.println(t);
}
}

a) 0
b) garbage value
c) a) compiler error
d) runtime error

Answer : C

Question. Predict the output of the following program. class Test
{
public static void main(String[] args)
{
Double object = new Double(\"2.4\");
int a = object.intValue();

byte b = object.byteValue();
float d = object.floatValue();
double c = object.doubleValue();
System.out.println(a + b + c + d );
}
}

a) 8
b) 8.8
c) 8.800000095367432

Answer : D

Question. Predict the output of following Java program.
class Test {
public static void main(String[] args) {
for(int i = 0; 0; i++)
{
System.out.println(\"Hello\");
break;
}
}
}

a) Hello
b) Empty Output
c) Compiler error
d) Runtime error\

Answer : C

Question. Which of the following statements is/are TRUE regarding JAVA ? (a) Constants that cannot be changed are declared using the ‘static’ keyword. (b) A class can only inherit one class but can implement multiple interfaces.
a) Only (a) is TRUE.
b) Only (b) is TRUE.
c) Both (a) and (b) are TRUE.
d) Neither (a) nor (b) are TRUE.

Answer : B

MCQ Questions CUET Python Data Type

Question. Which of these is not a core data type?
a) Lists
b) Dictionary
c) Tuples
d) Class

Answer : D

Question. Which of the following function convert a string to a float in python?
a) int(x [,base])
b) long(x [,base] )
c) float(x)
d) str(x)

Answer : C

Question. Question 6:Find the output of the following program:
a = {i: i * i for i in range(6)}
print (a)
a) Dictionary comprehension doesn’t exist
b) {0: 0, 1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6:36}
c) {0: 0, 1: 1, 4: 4, 9: 9, 16: 16, 25: 25}
d) {0: 0, 1: 1, 2: 4, 3: 9, 4: 16, 5: 25}

Answer : D

Question. What data type is the object below ? L = [1, 23, ‘hello’, 1]
a) List
b) Dictionary
c) Tuple
d) Array

Answer : A

Question. Find the output of the following program:
D = dict()
for x in enumerate(range(2)):
D[x[0]] = x[1]
D[x[1]+7] = x[0]
print(D)
a) {0: 1, 7: 0, 1: 1, 8: 0}
b) {1: 1, 7: 2, 0: 1, 8: 1}
c) {0: 0, 7: 0, 1: 1, 8: 1}
d) KeyError

Answer : C

Question. Which of the following statement(s) is TRUE?
A hash function takes a message of arbitrary length and generates a fixed length code.
A hash function takes a message of fixed length and generates a code of variable length.
A hash function may give the same hash value for distinct messages.
a) I only
b) II and III only
c) I and III only
d) II only

Answer : C

Question. Find the output of the following program:
nameList = [\'Harsh\', \'Pratik\', \'Bob\', \'Dhruv\']
pos = nameList.index(\"GeeksforGeeks\")
print (pos * 3)
a) GeeksforGeeks GeeksforGeeks GeeksforGeeks
b) Harsh
c) Harsh Harsh Harsh
d) ValueError: \'GeeksforGeeks\' is not in list

Answer : D

MCQs for Chapter 6 Understanding Data Computer Science UG

Expert teachers of studiestoday have referred to NCERT book for UG Computer Science to develop the Computer Science UG MCQs. If you download MCQs with answers for the above chapter you will get higher and better marks in UG test and exams in the current year as you will be able to have stronger understanding of all concepts. Daily Multiple Choice Questions practice of Computer Science will help students to have stronger understanding of all concepts and also make them expert on all critical topics. After solving the questions given in the MCQs which have been developed as per latest books also refer to the NCERT solutions for UG Computer Science. We have also provided lot of MCQ questions for UG Computer Science so that you can solve questions relating to all topics given in each chapter. After solving these you should also refer to UG Computer Science MCQ Test for the same chapter.

Where can I download latest CUET MCQs for UG Computer Science Chapter 6 Understanding Data

You can download the CUET MCQs for UG Computer Science Chapter 6 Understanding Data for latest session from StudiesToday.com

Are the UG Computer Science Chapter 6 Understanding Data MCQs available for the latest session

Yes, the MCQs issued by CUET for UG Computer Science Chapter 6 Understanding Data have been made available here for latest academic session

Where can I find CUET UG Computer Science Chapter 6 Understanding Data MCQs online?

You can find CUET UG Computer Science Chapter 6 Understanding Data MCQs on educational websites like studiestoday.com, online tutoring platforms, and in sample question papers provided on this website.

How can I prepare for Chapter 6 Understanding Data UG MCQs?

To prepare for Chapter 6 Understanding Data MCQs, refer to the concepts links provided by our teachers and download sample papers for free.

Are there any online resources for CUET UG Computer Science Chapter 6 Understanding Data?

Yes, there are many online resources that we have provided on studiestoday.com available such as practice worksheets, question papers, and online tests for learning MCQs for UG Computer Science Chapter 6 Understanding Data