GAT Subject :: All Aptitude Test ::

Hassan
1.Which of the following Boolean algebra rules is wrong?
A. 0 + A = A
B. 1 + A = 1
C. A + A = A
D. 0 + A = A

2.Conversion of an octal number 608 to binary number is
A. 1100002
B. 100112
C. 11001112
D. 1100002

3.Conversion of binary number 11000112 to hexadecimal is
A. 6316
B. 5716
C. 4616
D. 6316

4.Conversion of binary number 11000112 to its decimal number is
A. 2910
B. 9710
C. 9910
D. 2910

5.Conversion of binary number 11000112 to an octal number is
A. 1408
B. 1438
C. 1478
D. 1408

6.A preliminary guide for comparing the simplicity of logic circuits is to count the number of input _____ leads.
A. wire
B. bus
C. gate
D. wire

7.An AND gate has 7 inputs, what is the only input word that produces a 1 output?
A. 0
B. 1111
C. 1110000
D. 0

8.Convert the 1000 0000 0000 1111 signed binary number to decimal number.
A. 15
B. -15
C. -30
D. 15

9.The _____ is a sequence of instructions that tells the computer how to process the data.
A. data
B. program
C. controls
D. data

10.The output of the following gate is 1 only if at least one of its inputs is 0.
A. AND gate
B. OR gate
C. NAND gate
D. AND gate

11.The highest decimal number that can be represented with 10 binary digits is
A. 1023
B. 1024
C. 512
D. 1023

12.The clock signals are used in sequential logic circuits
A. to tell the time of the day
B. to tell how much time has elapsed since the system was turned on
C. to carry serial data signals
D. to tell the time of the day

13.In boolean algebra, the overbar stands for the NOT operation, the plus sign stands for the _____ operation.
A. AND
B. OR
C. NAND
D. AND

14.The reduced form of the Boolean expression (A+B)(A+C) is:
A. AB+AC
B. A+B+C
C. AC+B
D. AB+AC

15.A full-adder adds _____ bits, and producing a SUM and a _____
A. 8, SUBTRACTION
B. 3, CARRY
C. 16, DIVIDE
D. 8, SUBTRACTION

16.The radix of the binary number is:
A. 3
B. 1
C. 2
D. 3

17.The get() function returns _____
A. a character
B. void
C. a reference to the object that invoked it
D. a character

18.The most efficient data type for a variable that the number 20000 is the _____ data type
A. Character
B. Double
C. Float
D. Character

19.The number 5.5e3 is a _____ constant
A. character literal
B. named literal
C. numeric literal
D. character literal

20.The compiler determines the type used in a template function via ___?
A. the name of the function
B. the first variable declared within the function
C. the type of the argument passed to the function
D. the name of the function

21.Simple routines that programmers use as place holders while a system is being tested are called __?
A. stubs
B. stumps
C. holders
D. stubs

22.You can place function templates
A. at the end of main()
B. at the start of a program above main()
C. in two files-one for the definition and one for the function
D. at the end of main()

23.The two operators && an || are
A. arithmetic operators
B. equality operators
C. logical operators
D. arithmetic operators

24.The arguments that determine the state of the cout object are called _____
A. classes
B. manipulators
C. format flags
D. classes

25.Static variables are sometimes called
A. class variables
B. functional variables
C. dynamic variables
D. class variables

26.An expression
A. is a collection of data objects and operators that can be evaluated to a single value
B. is a name that substitutes for a sequence of characters
C. causes the computer to carry out some action
D. is a collection of data objects and operators that can be evaluated to a single value

27.In the C language, the character type of constant is delimited by using
A. single quotes
B. double quotes
C. parenthesis
D. single quotes

28.One way in which a structure differs from an array is that _____
A. a structure may have members of more than one type
B. a structure must have members that; are all the same type
C. art array may have members of more than one type
D. a structure may have members of more than one type

29.A default constructor _____
A. takes no arguments
B. has default values for all its arguments
C. either (a) or (b)
D. takes no arguments

30.The number 125.35 is a _____
A. character literal constant
B. numeric literal constant
C. string literal constant
D. character literal constant


Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers